Java Doc for DatabaseInformation.java in  » Database-DBMS » hsql » org » hsqldb » 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 DBMS » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.DatabaseInformation

All known Subclasses:   org.hsqldb.DatabaseInformationMain,
DatabaseInformation
class DatabaseInformation (Code)
Base class for system tables. Includes a factory method which returns the most complete implementation available in the jar. This base implementation knows the names of all system tables but returns null for any system table.

This class has been developed from scratch to replace the previous DatabaseInformation implementations.


author:
   boucherb@users
version:
   1.8.0
since:
   1.7.2



Field Summary
final protected static  intSYSTEM_ALIASES
    
final protected static  intSYSTEM_ALLTYPEINFO
    
final protected static  intSYSTEM_AUTHORIZATIONS
    
final protected static  intSYSTEM_BESTROWIDENTIFIER
    
final protected static  intSYSTEM_BYTECODE
    
final protected static  intSYSTEM_CACHEINFO
    
final protected static  intSYSTEM_CATALOGS
    
final protected static  intSYSTEM_CHECK_COLUMN_USAGE
    
final protected static  intSYSTEM_CHECK_CONSTRAINTS
    
final protected static  intSYSTEM_CHECK_ROUTINE_USAGE
    
final protected static  intSYSTEM_CHECK_TABLE_USAGE
    
final protected static  intSYSTEM_CLASSPRIVILEGES
    
final protected static  intSYSTEM_COLLATIONS
    
final protected static  intSYSTEM_COLUMNPRIVILEGES
    
final protected static  intSYSTEM_COLUMNS
    
final protected static  intSYSTEM_CROSSREFERENCE
    
final protected static  intSYSTEM_INDEXINFO
    
final protected static  intSYSTEM_PRIMARYKEYS
    
final protected static  intSYSTEM_PROCEDURECOLUMNS
    
final protected static  intSYSTEM_PROCEDURES
    
final protected static  intSYSTEM_PROPERTIES
    
final protected static  intSYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS
    
final protected static  intSYSTEM_SCHEMAS
    
final protected static  intSYSTEM_SCHEMATA
    
final protected static  intSYSTEM_SEQUENCES
    
final protected static  intSYSTEM_SESSIONINFO
    
final protected static  intSYSTEM_SESSIONS
    
final protected static  intSYSTEM_SUPERTABLES
    
final protected static  intSYSTEM_SUPERTYPES
    
final protected static  intSYSTEM_TABLEPRIVILEGES
    
final protected static  intSYSTEM_TABLES
    
final protected static  intSYSTEM_TABLETYPES
    
final protected static  intSYSTEM_TABLE_CONSTRAINTS
    
final protected static  intSYSTEM_TEXTTABLES
    
final protected static  intSYSTEM_TRIGGERCOLUMNS
    
final protected static  intSYSTEM_TRIGGERS
    
final protected static  intSYSTEM_TYPEINFO
    
final protected static  intSYSTEM_UDTATTRIBUTES
    
final protected static  intSYSTEM_UDTS
    
final protected static  intSYSTEM_USAGE_PRIVILEGES
    
final protected static  intSYSTEM_USERS
    
final protected static  intSYSTEM_VERSIONCOLUMNS
    
final protected static  intSYSTEM_VIEWS
    
final protected static  intSYSTEM_VIEW_COLUMN_USAGE
    
final protected static  intSYSTEM_VIEW_ROUTINE_USAGE
    
final protected static  intSYSTEM_VIEW_TABLE_USAGE
    
final protected  Databasedatabase
    
protected  booleanisDirty
     Simple object-wide flag indicating that all of this object's cached data is dirty.
final protected static  String[]sysTableNames
    
final protected static  IntValueHashMapsysTableNamesMap
    
protected  booleanwithContent
     state flag -- if true, contentful tables are to be produced, else empty (surrogate) tables are to be produced.

Constructor Summary
 DatabaseInformation(Database db)
     Constructs a new DatabaseInformation instance which knows the names of all system tables (isSystemTable()) but simpy returns null for all getSystemTable() requests.

Method Summary
static  intgetSysTableID(String token)
    
 TablegetSystemTable(Session session, String name)
     Retrieves a table with the specified name whose content may depend on the execution context indicated by the session argument as well as the current value of withContent.
final  booleanisSystemTable(String name)
     Tests if the specified name is that of a system table.
final static  DatabaseInformationnewDatabaseInformation(Database db)
     Factory method retuns the fullest system table producer implementation available.
final  voidsetDirty()
     Controls caching of all tables produced by this object.
final  voidsetWithContent(boolean withContent)
     Switches this table producer between producing empty (surrogate) or contentful tables.

Field Detail
SYSTEM_ALIASES
final protected static int SYSTEM_ALIASES(Code)



SYSTEM_ALLTYPEINFO
final protected static int SYSTEM_ALLTYPEINFO(Code)



SYSTEM_AUTHORIZATIONS
final protected static int SYSTEM_AUTHORIZATIONS(Code)



SYSTEM_BESTROWIDENTIFIER
final protected static int SYSTEM_BESTROWIDENTIFIER(Code)



SYSTEM_BYTECODE
final protected static int SYSTEM_BYTECODE(Code)



SYSTEM_CACHEINFO
final protected static int SYSTEM_CACHEINFO(Code)



SYSTEM_CATALOGS
final protected static int SYSTEM_CATALOGS(Code)



SYSTEM_CHECK_COLUMN_USAGE
final protected static int SYSTEM_CHECK_COLUMN_USAGE(Code)



SYSTEM_CHECK_CONSTRAINTS
final protected static int SYSTEM_CHECK_CONSTRAINTS(Code)



SYSTEM_CHECK_ROUTINE_USAGE
final protected static int SYSTEM_CHECK_ROUTINE_USAGE(Code)



SYSTEM_CHECK_TABLE_USAGE
final protected static int SYSTEM_CHECK_TABLE_USAGE(Code)



SYSTEM_CLASSPRIVILEGES
final protected static int SYSTEM_CLASSPRIVILEGES(Code)



SYSTEM_COLLATIONS
final protected static int SYSTEM_COLLATIONS(Code)



SYSTEM_COLUMNPRIVILEGES
final protected static int SYSTEM_COLUMNPRIVILEGES(Code)



SYSTEM_COLUMNS
final protected static int SYSTEM_COLUMNS(Code)



SYSTEM_CROSSREFERENCE
final protected static int SYSTEM_CROSSREFERENCE(Code)



SYSTEM_INDEXINFO
final protected static int SYSTEM_INDEXINFO(Code)



SYSTEM_PRIMARYKEYS
final protected static int SYSTEM_PRIMARYKEYS(Code)



SYSTEM_PROCEDURECOLUMNS
final protected static int SYSTEM_PROCEDURECOLUMNS(Code)



SYSTEM_PROCEDURES
final protected static int SYSTEM_PROCEDURES(Code)



SYSTEM_PROPERTIES
final protected static int SYSTEM_PROPERTIES(Code)



SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS
final protected static int SYSTEM_ROLE_AUTHORIZATION_DESCRIPTORS(Code)



SYSTEM_SCHEMAS
final protected static int SYSTEM_SCHEMAS(Code)



SYSTEM_SCHEMATA
final protected static int SYSTEM_SCHEMATA(Code)



SYSTEM_SEQUENCES
final protected static int SYSTEM_SEQUENCES(Code)



SYSTEM_SESSIONINFO
final protected static int SYSTEM_SESSIONINFO(Code)



SYSTEM_SESSIONS
final protected static int SYSTEM_SESSIONS(Code)



SYSTEM_SUPERTABLES
final protected static int SYSTEM_SUPERTABLES(Code)



SYSTEM_SUPERTYPES
final protected static int SYSTEM_SUPERTYPES(Code)



SYSTEM_TABLEPRIVILEGES
final protected static int SYSTEM_TABLEPRIVILEGES(Code)



SYSTEM_TABLES
final protected static int SYSTEM_TABLES(Code)



SYSTEM_TABLETYPES
final protected static int SYSTEM_TABLETYPES(Code)



SYSTEM_TABLE_CONSTRAINTS
final protected static int SYSTEM_TABLE_CONSTRAINTS(Code)



SYSTEM_TEXTTABLES
final protected static int SYSTEM_TEXTTABLES(Code)



SYSTEM_TRIGGERCOLUMNS
final protected static int SYSTEM_TRIGGERCOLUMNS(Code)



SYSTEM_TRIGGERS
final protected static int SYSTEM_TRIGGERS(Code)



SYSTEM_TYPEINFO
final protected static int SYSTEM_TYPEINFO(Code)



SYSTEM_UDTATTRIBUTES
final protected static int SYSTEM_UDTATTRIBUTES(Code)



SYSTEM_UDTS
final protected static int SYSTEM_UDTS(Code)



SYSTEM_USAGE_PRIVILEGES
final protected static int SYSTEM_USAGE_PRIVILEGES(Code)



SYSTEM_USERS
final protected static int SYSTEM_USERS(Code)



SYSTEM_VERSIONCOLUMNS
final protected static int SYSTEM_VERSIONCOLUMNS(Code)



SYSTEM_VIEWS
final protected static int SYSTEM_VIEWS(Code)



SYSTEM_VIEW_COLUMN_USAGE
final protected static int SYSTEM_VIEW_COLUMN_USAGE(Code)



SYSTEM_VIEW_ROUTINE_USAGE
final protected static int SYSTEM_VIEW_ROUTINE_USAGE(Code)



SYSTEM_VIEW_TABLE_USAGE
final protected static int SYSTEM_VIEW_TABLE_USAGE(Code)



database
final protected Database database(Code)
Database for which to produce tables



isDirty
protected boolean isDirty(Code)
Simple object-wide flag indicating that all of this object's cached data is dirty.



sysTableNames
final protected static String[] sysTableNames(Code)
system table names strictly in order of their ids



sysTableNamesMap
final protected static IntValueHashMap sysTableNamesMap(Code)
Map: table name => table id



withContent
protected boolean withContent(Code)
state flag -- if true, contentful tables are to be produced, else empty (surrogate) tables are to be produced. This allows faster database startup where user views reference system tables and faster system table structural reflection for table metadata.




Constructor Detail
DatabaseInformation
DatabaseInformation(Database db) throws HsqlException(Code)
Constructs a new DatabaseInformation instance which knows the names of all system tables (isSystemTable()) but simpy returns null for all getSystemTable() requests.


Parameters:
  db - The Database object for which to produce system tables
throws:
  HsqlException - never (required for descendents)





Method Detail
getSysTableID
static int getSysTableID(String token)(Code)



getSystemTable
Table getSystemTable(Session session, String name) throws HsqlException(Code)
Retrieves a table with the specified name whose content may depend on the execution context indicated by the session argument as well as the current value of withContent.


Parameters:
  session - the context in which to produce the table
Parameters:
  name - the name of the table to produce
throws:
  HsqlException - if a database access error occurs a table corresponding to the name and session arguments, ornull if there is no such table to be produced




isSystemTable
final boolean isSystemTable(String name)(Code)
Tests if the specified name is that of a system table.


Parameters:
  name - the name to test true if the specified name is that of a system table




newDatabaseInformation
final static DatabaseInformation newDatabaseInformation(Database db) throws HsqlException(Code)
Factory method retuns the fullest system table producer implementation available. This instantiates implementations beginning with the most complete, finally choosing an empty table producer implemenation (this class) if no better instance can be constructed.
Parameters:
  db - The Database object for which to produce system tables the fullest system table producerimplementation available
throws:
  HsqlException - never - required by constructor



setDirty
final void setDirty()(Code)
Controls caching of all tables produced by this object.

Subclasses are free to ignore this, since they may choose an implementation that does not dynamically generate and/or cache table content on an as-needed basis.

If not ignored, this call indicates to this object that all cached table data may be dirty, requiring a complete cache clear at some point.

Subclasses are free to delay cache clear until next getSystemTable(). However, subclasses may have to be aware of additional methods with semantics similar to getSystemTable() and act accordingly (e.g. clearing earlier than next invocation of getSystemTable()).




setWithContent
final void setWithContent(boolean withContent)(Code)
Switches this table producer between producing empty (surrogate) or contentful tables.


Parameters:
  withContent - if true, then produce contentful tables, elseproduce emtpy (surrogate) tables




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.