public class CmsUpdateDBDropOldIndexes extends A_CmsUpdateDBPart
This is done so that the indexes can be updated to the version 6.2.3 and afterwards to version 7
限定符和类型 | 字段和说明 |
---|---|
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.
|
m_poolData, m_queries
构造器和说明 |
---|
CmsUpdateDBDropOldIndexes()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
internalExecute(CmsSetupDb dbCon)
Does the hard work.
|
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
protected static final java.lang.String[] CMS_TABLES
protected static final java.util.List<java.lang.String> CMS_TABLES_LIST
protected static final java.lang.String QUERY_DROP_INDEX
protected static final java.lang.String QUERY_SHOW_INDEX
protected static final java.lang.String REPLACEMENT_TABLENAME
public CmsUpdateDBDropOldIndexes() throws java.io.IOException
java.io.IOException
- if the query properties cannot be readprotected void internalExecute(CmsSetupDb dbCon)
A_CmsUpdateDBPart
internalExecute
在类中 A_CmsUpdateDBPart
dbCon
- the db connection interfaceA_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)