Class ValidateTableSchemaTransaction

  extended by
      extended by

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
protected static org.datanucleus.util.Localiser LOCALISER
          Localiser for messages.
protected  TableImpl table
          Table to be validated.
Fields inherited from class
isolationLevel, maxRetries, mconn, rdbmsMgr
Constructor Summary
ValidateTableSchemaTransaction(RDBMSManager rdbmsMgr, int isolationLevel, TableImpl table)
Method Summary
protected  void run(org.datanucleus.ClassLoaderResolver clr)
          Implements the body of the transaction.
 java.lang.String toString()
          Returns a description of the management transaction.
Methods inherited from class
execute, getCurrentConnection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


protected static final org.datanucleus.util.Localiser LOCALISER
Localiser for messages.


protected TableImpl table
Table to be validated.

Constructor Detail


public ValidateTableSchemaTransaction(RDBMSManager rdbmsMgr,
                                      int isolationLevel,
                                      TableImpl table)
rdbmsMgr -
isolationLevel -
Method Detail


protected void run(org.datanucleus.ClassLoaderResolver clr)
            throws java.sql.SQLException
Description copied from class: AbstractSchemaTransaction
Implements the body of the transaction.

Specified by:
run in class AbstractSchemaTransaction
clr - the ClassLoaderResolver
java.sql.SQLException - Thrown if the transaction fails due to a database error that should allow the entire transaction to be retried.


public java.lang.String 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 class AbstractSchemaTransaction
A description of the management transaction.

Copyright © 2009. All Rights Reserved.