Documentation of 'org.hsqldb.dbinfo.DatabaseInformation' Java class
DatabaseInformation
org.hsqldb.dbinfo

Class DatabaseInformation



  • public class DatabaseInformation
    extends java.lang.Object
    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.

    Since:
    1.7.2
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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 of withContent.
      static DatabaseInformation newDatabaseInformation(Database db)
      Factory method returns the fullest system table producer implementation available.
      void setStore(Session session, Table table, PersistentStore store)
      Sets the store for the given session, populates the store if necessary.
      void setWithContent(boolean withContent)
      Switches this table producer between producing empty (surrogate) or contentful tables.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 of withContent.

        Parameters:
        session - the context in which to produce the table
        name - the name of the table to produce
        Returns:
        a table corresponding to the name and session arguments, or null if 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

Ads help maintain this website.