org.hsqldb.dbinfo
Class DatabaseInformation
- java.lang.Object
-
- org.hsqldb.dbinfo.DatabaseInformation
-
public class DatabaseInformation extends java.lang.ObjectBase 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.
- Since:
- 1.7.2
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description TablegetSystemTable(Session session, java.lang.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 ofwithContent.static DatabaseInformationnewDatabaseInformation(Database db)Factory method returns the fullest system table producer implementation available.voidsetStore(Session session, Table table, PersistentStore store)Sets the store for the given session, populates the store if necessary.voidsetWithContent(boolean withContent)Switches this table producer between producing empty (surrogate) or contentful tables.
-
-
-
Method Detail
-
newDatabaseInformation
public static final DatabaseInformation newDatabaseInformation(Database db)
Factory method returns 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- Returns:
- the fullest system table producer implementation available
-
getSystemTable
public Table getSystemTable(Session session, java.lang.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 ofwithContent.- Parameters:
session- the context in which to produce the tablename- the name of the table to produce- Returns:
- a table corresponding to the name and session arguments, or
nullif there is no such table to be produced
-
setStore
public void setStore(Session session, Table table, PersistentStore store)
Sets the store for the given session, populates the store if necessary.
-
setWithContent
public final void setWithContent(boolean withContent)
Switches this table producer between producing empty (surrogate) or contentful tables.- Parameters:
withContent- if true, then produce contentful tables, else produce emtpy (surrogate) tables
-
-
DataMelt 3.0 © DataMelt by jWork.ORG