|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.store.RetryableTransaction
com.triactive.jdo.store.StoreManager.MgmtTransaction
An abstract base class for StoreManager transactions that perform some management function on the database.
Management transactions may be retried in the face of SQL exceptions to work around failures caused by transient conditions, such as DB deadlocks.
Field Summary |
Fields inherited from class com.triactive.jdo.store.RetryableTransaction |
conn |
Constructor Summary | |
StoreManager.MgmtTransaction(int isolationLevel)
|
|
StoreManager.MgmtTransaction(int isolationLevel,
int maxRetries)
|
Method Summary | |
void |
addMapTable(FieldMetaData fmd)
Called by Mapping objects in the midst of StoreManager.addClasses() to request the creation of a map table. |
void |
addSetTable(FieldMetaData fmd)
Called by Mapping objects in the midst of StoreManager.addClasses() to request the creation of a set table. |
java.util.List |
getColumnInfo(TableName tableName)
Returns the column info for a database table. |
protected InitializedConnectionFactory |
getConnectionFactory()
Returns the connection factory from which this object obtains its JDBC connections. |
DatabaseAdapter |
getDatabaseAdapter()
Returns the database adapter associated with connections provided by this object's connection factory. |
java.util.List |
getForeignKeyInfo(TableName tableName)
Returns the foreign key info for a database table. |
java.util.List |
getIndexInfo(TableName tableName)
Returns the index info for a database table. |
java.util.List |
getPrimaryKeyInfo(TableName tableName)
Returns the primary key info for a database table. |
SchemaTable |
getSchemaTable(boolean ifItExists)
Returns the schema table (JDO_TABLE). |
StoreManager |
getStoreManager()
Returns the store manager that initiated this transaction. |
int |
getTableType(TableName tableName)
Returns the type of a database table. |
boolean |
tableExists(TableName tableName)
Tests if a database table exists. |
Methods inherited from class com.triactive.jdo.store.RetryableTransaction |
execute, execute, executeStatements, getConnection, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StoreManager.MgmtTransaction(int isolationLevel)
public StoreManager.MgmtTransaction(int isolationLevel, int maxRetries)
Method Detail |
protected InitializedConnectionFactory getConnectionFactory()
RetryableTransaction
getConnectionFactory
in class RetryableTransaction
public DatabaseAdapter getDatabaseAdapter()
RetryableTransaction
getDatabaseAdapter
in class RetryableTransaction
public StoreManager getStoreManager()
public SchemaTable getSchemaTable(boolean ifItExists) throws java.sql.SQLException
ifItExists
- If true
only return the schema table if it exists.
If false
always return it, making sure it exists
and is validated, creating it if necessary if auto-create mode
is enabled.
null
if it doesn't exist and
ifItExists is true
.
java.sql.SQLException
public boolean tableExists(TableName tableName) throws java.sql.SQLException
tableName
- The name of the table (or view).
java.sql.SQLException
public int getTableType(TableName tableName) throws java.sql.SQLException
tableName
- The name of the table (or view).
Table
.
java.sql.SQLException
Table
public java.util.List getColumnInfo(TableName tableName) throws java.sql.SQLException
tableName
- The name of the table (or view).
java.sql.SQLException
ColumnInfo
public java.util.List getPrimaryKeyInfo(TableName tableName) throws java.sql.SQLException
tableName
- The name of the table (or view).
java.sql.SQLException
PrimaryKeyInfo
public java.util.List getForeignKeyInfo(TableName tableName) throws java.sql.SQLException
tableName
- The name of the table (or view).
java.sql.SQLException
ForeignKeyInfo
public java.util.List getIndexInfo(TableName tableName) throws java.sql.SQLException
tableName
- The name of the table (or view).
java.sql.SQLException
IndexInfo
public void addSetTable(FieldMetaData fmd)
fmd
- The field metadata describing the set field.public void addMapTable(FieldMetaData fmd)
fmd
- The field metadata describing the map field.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |