Method Summary |
|
public synchronized void | addProcedure(DatabaseProcedure procedure) Adds a DatabaseProcedure describing a procedure of the
database. |
public synchronized void | addTable(DatabaseTable table) Adds a DatabaseTable describing a table of the database. |
public boolean | allTablesAreUnlockedOrLockedByTransaction(AbstractRequest request) Returns true if all tables are not locked by anyone. |
public boolean | equals(Object other) Two DatabaseSchema are considered equal if they have the
same tables and the same procedures. |
public TransactionLogicalLock | getLock() Returns the lock for this table. |
public DatabaseProcedure | getProcedure(String procedureKey) Returns the DatabaseProcedure object matching the given
procedure name or null if not found. |
public DatabaseProcedure | getProcedure(DatabaseProcedure procedure) Returns the DatabaseProcedure object matching the given
procedure or null if not found. |
public HashMap | getProcedures() Returns an HashMap of DatabaseProcedure
objects describing the database. |
public DatabaseTable | getTable(String tableName) Returns the DatabaseTable object matching the given table
name or null if not found. |
public DatabaseTable | getTable(String tableName, boolean isCaseSensitive) Returns the DatabaseTable object matching the given table
name or null if not found. |
public synchronized HashMap | getTables() Returns an HashMap of DatabaseTable objects
describing the database. |
final public String | getVirtualDatabaseName() Returns the virtual database name value. |
public String | getXml() Get xml information about this schema. |
public boolean | hasATableLockedByTransaction(long transactionId) Returns true if the given transaction locks (or wait for a lock) on any of
the table of this schema. |
public boolean | hasProcedure(String procedureName, int nbOfParameters) Returns true if the given ProcedureName is
found in this schema. |
public boolean | hasTable(String tableName) Returns true if the given TableName is found
in this schema. |
public boolean | isCompatibleSubset(DatabaseSchema other) Checks if this DatabaseSchema is a compatible subset of a
given schema. |
public boolean | isCompatibleWith(DatabaseSchema other) Checks if this DatabaseSchema is compatible with the given
schema. |
public List | lockAllTables(AbstractRequest request) Lock all tables that are not already locked by this transaction (assumes
that locks are free). |
public void | mergeSchema(DatabaseSchema databaseSchema) Merges the given schema with the current one. |
public void | releaseLocksOnAllTables(long transactionId) Release locks held by the given transaction on all tables. |
public synchronized boolean | removeProcedure(DatabaseProcedure procedure) removes a DatabaseProcedure describing a procedure of the
database. |
public synchronized boolean | removeTable(DatabaseTable table) Removes a DatabaseTable describing a table of the database. |
public synchronized void | removeTableFromDependingTables(DatabaseTable table) Removes a DatabaseTable from the depending tables list of
all tables in the schema. |
public void | setLocks(DatabaseSchema oldSchema) When the database schema is reloaded, the locks held by active transactions
must be retained. |
public void | updateSchema(DatabaseSchema databaseSchema) Updates the given schema with the current one. |