Package org.datanucleus.store.rdbms
Class ValidateTableSchemaTransaction
- java.lang.Object
-
- org.datanucleus.store.rdbms.AbstractSchemaTransaction
-
- org.datanucleus.store.rdbms.ValidateTableSchemaTransaction
-
public class ValidateTableSchemaTransaction extends AbstractSchemaTransaction
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
Fields Modifier and Type Field Description protected TableImpltableTable to be validated.-
Fields inherited from class org.datanucleus.store.rdbms.AbstractSchemaTransaction
isolationLevel, maxRetries, mconn, rdbmsMgr
-
-
Constructor Summary
Constructors Constructor Description ValidateTableSchemaTransaction(RDBMSStoreManager rdbmsMgr, int isolationLevel, TableImpl table)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidrun(org.datanucleus.ClassLoaderResolver clr)Implements the body of the transaction.StringtoString()Returns a description of the management transaction.-
Methods inherited from class org.datanucleus.store.rdbms.AbstractSchemaTransaction
execute, getCurrentConnection
-
-
-
-
Field Detail
-
table
protected TableImpl table
Table to be validated.
-
-
Constructor Detail
-
ValidateTableSchemaTransaction
public ValidateTableSchemaTransaction(RDBMSStoreManager rdbmsMgr, int isolationLevel, TableImpl table)
Constructor.- Parameters:
rdbmsMgr- Store ManagerisolationLevel- Connection isolation leveltable- The table to validate
-
-
Method Detail
-
run
protected void run(org.datanucleus.ClassLoaderResolver clr) throws SQLExceptionDescription copied from class:AbstractSchemaTransactionImplements the body of the transaction.- Specified by:
runin 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
public String toString()
Description copied from class:AbstractSchemaTransactionReturns a description of the management transaction. Subclasses should override this method so that transaction failures are given an appropriate exception message.- Specified by:
toStringin classAbstractSchemaTransaction- Returns:
- A description of the management transaction.
-
-