| java.lang.Object isql.ReadTNS
ReadTNS | public class ReadTNS (Code) | | reads up the rcfile and populates preferences
Added hook feature on 2001-11-18 - but this is minimal. we still need
to load all hooks so that they can be used at runtime. This would
include table hooks, column hooks, database hooks, user hooks,
database version hooks etc.
RK added on 20040111 13:14:22
Major restructuring done to enable us to source a file fro the main
ini file. The const only initializes, and doesnt do any work (the
right way). parseFile does the work.
|
Constructor Summary | |
public | ReadTNS(String outfile) ReadTNS takes the foll parameters:
String - name of file containing Oracle locations and db params -
the base ini file.
Ideally this should throw a FNF exception.
// HashMap - to return the key and value of params. |
_inifile | String _inifile(Code) | | name of base ini file.
will be required by other programs to append a property.
|
_sourcedfilenames | List _sourcedfilenames(Code) | | list of all files sourced including base one, so that user can
add to any of them.
|
liActions | List liActions(Code) | | list of actions to be created
|
ReadTNS | public ReadTNS(String outfile)(Code) | | ReadTNS takes the foll parameters:
String - name of file containing Oracle locations and db params -
the base ini file.
Ideally this should throw a FNF exception.
// HashMap - to return the key and value of params. We assume one param per key
|
getAbbreviations | public Map getAbbreviations()(Code) | | returns list of abbreviations
|
getActions | public List getActions()(Code) | | returns a list of actions for application to create actions on
menu.
RK added on 20040104 23:08:09
|
getBindings | public Bindings getBindings()(Code) | | return key bindings read from ini file.
Format for bindings is as follows:
bind
bind . control-z sort-action
bind table control-s sort-action
bind frame alt-s reverse-sort-action
bind (table|frame) alt-d showdata-action
This map contains lists of bindings named "input", "table" and
"frame", containing their respective bindings.
|
getBookmarks | public Map getBookmarks()(Code) | | returns list of bookmarks
|
getLinks | public Map getLinks()(Code) | | returns list of links
|
getParams | public Map getParams()(Code) | | returns list of parameters
|
getRestOfLine | public static String getRestOfLine(StringTokenizer st)(Code) | | returns the rest of the line, some commands need this.
we could also try just changing the tokenizer.
|
getSourcedFileNames | public List getSourcedFileNames()(Code) | | |
parseFile | public void parseFile()(Code) | | method to parse the ini file, after using the constructor that
takes a filename.
|
parseFile | public void parseFile(String newfile)(Code) | | parse the given file.
This file will not be stored as the ini file, since this could be
a sourced file.
This restructuring was done so that we can source a file from the
base ini file.
|
|
|