|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.scheduler.schema.SchedulerDatabaseSchema
A SchedulerDatabaseSchema
describes all the tables and columns
of a database and its associated cache entries.
Field Summary | |
private TransactionExclusiveLock |
lock
|
private java.util.ArrayList |
tables
ArrayList of SchedulerDatabaseTable . |
Constructor Summary | |
SchedulerDatabaseSchema(DatabaseSchema schema)
Creates a new SchedulerDatabaseSchema instance by cloning an
existing DatabaseSchema . |
Method Summary | |
void |
addTable(SchedulerDatabaseTable table)
Adds a SchedulerDatabaseTable describing a table of the
database. |
boolean |
equals(java.lang.Object other)
Two SchedulerDatabaseSchema are equals if they have the same
tables. |
java.lang.String |
getInformation(boolean longFormat)
Returns information about the database schema. |
TransactionExclusiveLock |
getLock()
Returns the lock for this table. |
SchedulerDatabaseTable |
getTable(java.lang.String tableName)
Returns the SchedulerDatabaseTable object matching the given
table name or null if not found. |
java.util.ArrayList |
getTables()
Returns an ArrayList of SchedulerDatabaseTable
objects describing the database. |
boolean |
hasTable(java.lang.String tableName)
Returns true if the given TableName is found
in this schema. |
void |
mergeSchema(SchedulerDatabaseSchema databaseSchema)
Merge the given schema with the current one. |
void |
removeTable(SchedulerDatabaseTable table)
Removes a SchedulerDatabaseTable describing a table of the
database. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.ArrayList tables
ArrayList
of SchedulerDatabaseTable
.
private TransactionExclusiveLock lock
Constructor Detail |
public SchedulerDatabaseSchema(DatabaseSchema schema)
SchedulerDatabaseSchema
instance by cloning an
existing DatabaseSchema
.
schema
- the database schema to cloneMethod Detail |
public void addTable(SchedulerDatabaseTable table)
SchedulerDatabaseTable
describing a table of the
database.
table
- the table to addpublic void removeTable(SchedulerDatabaseTable table)
SchedulerDatabaseTable
describing a table of the
database.
table
- the table to removepublic void mergeSchema(SchedulerDatabaseSchema databaseSchema)
databaseSchema
- the schema to mergepublic java.util.ArrayList getTables()
ArrayList
of SchedulerDatabaseTable
objects describing the database.
ArrayList
of SchedulerDatabaseTable
public SchedulerDatabaseTable getTable(java.lang.String tableName)
SchedulerDatabaseTable
object matching the given
table name or null
if not found. Matching is case insensitive.
tableName
- the table name to look for
SchedulerDatabaseTable
value or nullpublic boolean hasTable(java.lang.String tableName)
true
if the given TableName
is found
in this schema.
tableName
- the name of the table you are looking for
true
if the table has been foundpublic TransactionExclusiveLock getLock()
TransactionExclusiveLock
instanceTransactionExclusiveLock
public boolean equals(java.lang.Object other)
SchedulerDatabaseSchema
are equals if they have the same
tables.
other
- the object to compare with
public java.lang.String getInformation(boolean longFormat)
longFormat
- true
for a long
format,
false
for a short summary
String
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |