Package org.datanucleus.store.rdbms
Class ValidateTableSchemaTransaction
java.lang.Object
org.datanucleus.store.rdbms.AbstractSchemaTransaction
org.datanucleus.store.rdbms.ValidateTableSchemaTransaction
Schema transaction to validate the specified table.
This is useful where we have made an update to the columns in a table and want to
apply the updates to the datastore.
-
Field Summary
FieldsFields inherited from class org.datanucleus.store.rdbms.AbstractSchemaTransaction
isolationLevel, maxRetries, mconn, rdbmsMgr
-
Constructor Summary
ConstructorsConstructorDescriptionValidateTableSchemaTransaction
(RDBMSStoreManager rdbmsMgr, int isolationLevel, TableImpl table) Constructor. -
Method Summary
Methods inherited from class org.datanucleus.store.rdbms.AbstractSchemaTransaction
execute, getCurrentConnection
-
Field Details
-
table
Table to be validated.
-
-
Constructor Details
-
ValidateTableSchemaTransaction
public ValidateTableSchemaTransaction(RDBMSStoreManager rdbmsMgr, int isolationLevel, TableImpl table) Constructor.- Parameters:
rdbmsMgr
- Store ManagerisolationLevel
- Connection isolation leveltable
- The table to validate
-
-
Method Details
-
run
Description copied from class:AbstractSchemaTransaction
Implements the body of the transaction.- Specified by:
run
in classAbstractSchemaTransaction
- Parameters:
clr
- the ClassLoaderResolver- Throws:
SQLException
- Thrown if the transaction fails due to a database error that should allow the entire transaction to be retried.
-
toString
Description copied from class:AbstractSchemaTransaction
Returns a description of the management transaction. Subclasses should override this method so that transaction failures are given an appropriate exception message.- Specified by:
toString
in classAbstractSchemaTransaction
- Returns:
- A description of the management transaction.
-