Package org.opencms.setup.db.update6to7
Class CmsUpdateDBDropOldIndexes
- java.lang.Object
-
- org.opencms.setup.db.A_CmsUpdateDBPart
-
- org.opencms.setup.db.update6to7.CmsUpdateDBDropOldIndexes
-
- All Implemented Interfaces:
I_CmsUpdateDBPart
- Direct Known Subclasses:
CmsUpdateDBDropOldIndexes
,CmsUpdateDBDropOldIndexes
,CmsUpdateDBDropOldIndexes
public class CmsUpdateDBDropOldIndexes extends A_CmsUpdateDBPart
This class drops all indexes of each table of the database.This is done so that the indexes can be updated to the version 6.2.3 and afterwards to version 7
- Since:
- 7.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]
CMS_TABLES
Constant array of the base tables of the OpenCms 7.0.x installation.protected static java.util.List<java.lang.String>
CMS_TABLES_LIST
Constant ArrayList of the tables of the base OpenCms 7.0.x installation.protected static java.lang.String
QUERY_DROP_INDEX
Constant for the sql query to drop an index from a table.protected static java.lang.String
QUERY_SHOW_INDEX
Constant for the sql query to show the indexes of a table.protected static java.lang.String
REPLACEMENT_TABLENAME
Constant for the sql query replacement of the tablename.-
Fields inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
m_poolData, m_queries
-
-
Constructor Summary
Constructors Constructor Description CmsUpdateDBDropOldIndexes()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
internalExecute(CmsSetupDb dbCon)
Does the hard work.-
Methods inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
-
-
-
-
Field Detail
-
CMS_TABLES
protected static final java.lang.String[] CMS_TABLES
Constant array of the base tables of the OpenCms 7.0.x installation.
-
CMS_TABLES_LIST
protected static final java.util.List<java.lang.String> CMS_TABLES_LIST
Constant ArrayList of the tables of the base OpenCms 7.0.x installation.
-
QUERY_DROP_INDEX
protected static final java.lang.String QUERY_DROP_INDEX
Constant for the sql query to drop an index from a table.- See Also:
- Constant Field Values
-
QUERY_SHOW_INDEX
protected static final java.lang.String QUERY_SHOW_INDEX
Constant for the sql query to show the indexes of a table.- See Also:
- Constant Field Values
-
REPLACEMENT_TABLENAME
protected static final java.lang.String REPLACEMENT_TABLENAME
Constant for the sql query replacement of the tablename.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsUpdateDBDropOldIndexes
public CmsUpdateDBDropOldIndexes() 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 classA_CmsUpdateDBPart
- Parameters:
dbCon
- the db connection interface- See Also:
A_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)
-
-