org.opencms.setup.update6to7.generic
Class CmsUpdateDBDropBackupTables

java.lang.Object
  extended by org.opencms.setup.update6to7.A_CmsUpdateDBPart
      extended by org.opencms.setup.update6to7.generic.CmsUpdateDBDropBackupTables
All Implemented Interfaces:
I_CmsUpdateDBPart
Direct Known Subclasses:
CmsUpdateDBDropBackupTables, CmsUpdateDBDropBackupTables

public class CmsUpdateDBDropBackupTables
extends A_CmsUpdateDBPart

This class drops the CMS_BACKUP tables that are no longer used after all the transfers are finished.

The tables to drop are

Since:
7.0.0
Version:
$Revision: 1.2 $
Author:
Roland Metzler

Field Summary
protected static java.lang.String[] BACKUP_TABLES
          Array of the BACKUP tables that are to be dropped.
protected static java.util.List BACKUP_TABLES_LIST
          Constant ArrayList of the BACKUP_TABLES that are to be dropped.
protected static java.lang.String REPLACEMENT_TABLENAME
          Constant for the replacement of the tablename in the sql query.
 
Fields inherited from class org.opencms.setup.update6to7.A_CmsUpdateDBPart
m_poolData, m_queries, QUERY_PROPERTIES_PREFIX
 
Constructor Summary
CmsUpdateDBDropBackupTables()
          Constructor.
 
Method Summary
protected  void internalExecute(CmsSetupDb dbCon)
          Does the hard work.
 
Methods inherited from class org.opencms.setup.update6to7.A_CmsUpdateDBPart
execute, getDbInstance, getPoolData, isKeepHistory, loadQueryProperties, readQuery, setPoolData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKUP_TABLES

protected static final java.lang.String[] BACKUP_TABLES
Array of the BACKUP tables that are to be dropped.


BACKUP_TABLES_LIST

protected static final java.util.List BACKUP_TABLES_LIST
Constant ArrayList of the BACKUP_TABLES that are to be dropped.


REPLACEMENT_TABLENAME

protected static final java.lang.String REPLACEMENT_TABLENAME
Constant for the replacement of the tablename in the sql query.

See Also:
Constant Field Values
Constructor Detail

CmsUpdateDBDropBackupTables

public CmsUpdateDBDropBackupTables()
                            throws java.io.IOException
Constructor.

Throws:
java.io.IOException - if the query properties cannot be read
Method Detail

internalExecute

protected void internalExecute(CmsSetupDb dbCon)
Description copied from class: A_CmsUpdateDBPart
Does the hard work.

Specified by:
internalExecute in class A_CmsUpdateDBPart
Parameters:
dbCon - the db connection interface
See Also:
A_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)