Class DeleteTablesSchemaTransaction


  • public class DeleteTablesSchemaTransaction
    extends AbstractSchemaTransaction
    Schema transaction for deleting all known tables/views.
    • Constructor Detail

      • DeleteTablesSchemaTransaction

        public DeleteTablesSchemaTransaction​(RDBMSStoreManager rdbmsMgr,
                                             int isolationLevel,
                                             org.datanucleus.store.StoreDataManager dataMgr)
        Constructor.
        Parameters:
        rdbmsMgr - Store manager
        isolationLevel - Connection isolation level
        dataMgr - StoreData manager
    • Method Detail

      • setWriter

        public void setWriter​(Writer writer)
      • run

        protected void run​(org.datanucleus.ClassLoaderResolver clr)
                    throws SQLException
        Description copied from class: AbstractSchemaTransaction
        Implements the body of the transaction.
        Specified by:
        run in class AbstractSchemaTransaction
        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: 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
        Returns:
        A description of the management transaction.