Java Doc for ReadTNS.java in  » Database-Client » SQLMinus » isql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database Client » SQLMinus » isql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.


Field Summary
final public static  StringP
    
 String_inifile
     name of base ini file.
 List_sourcedfilenames
     list of all files sourced including base one, so that user can add to any of them.
 MaphtAbbrs
    
 BindingshtBindings
    
 MaphtBookmarks
    
 MaphtFilters
    
 MaphtLinks
    
 MaphtParams
    
 MaphtSorts
    
 ListliActions
    

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.

Method Summary
public  MapgetAbbreviations()
    
public  ListgetActions()
     returns a list of actions for application to create actions on menu.
public  StringgetBaseFileName()
    
public  BindingsgetBindings()
     return key bindings read from ini file. Format for bindings is as follows: bind
 bind .
public  MapgetBookmarks()
    
public  MapgetFilters()
    
public  MapgetLinks()
    
public  MapgetParams()
    
public static  StringgetRestOfLine(StringTokenizer st)
     returns the rest of the line, some commands need this.
public  MapgetSorts()
    
public  ListgetSourcedFileNames()
    
public static  voidmain(String args)
    
public  voidparseFile()
     method to parse the ini file, after using the constructor that takes a filename.
public  voidparseFile(String newfile)
     parse the given file.

Field Detail
P
final public static String P(Code)



_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.



htAbbrs
Map htAbbrs(Code)



htBindings
Bindings htBindings(Code)



htBookmarks
Map htBookmarks(Code)



htFilters
Map htFilters(Code)



htLinks
Map htLinks(Code)



htParams
Map htParams(Code)



htSorts
Map htSorts(Code)



liActions
List liActions(Code)
list of actions to be created




Constructor Detail
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




Method Detail
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



getBaseFileName
public String getBaseFileName()(Code)



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



getFilters
public Map getFilters()(Code)



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.



getSorts
public Map getSorts()(Code)



getSourcedFileNames
public List getSourcedFileNames()(Code)



main
public static void main(String args)(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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.