public class CmsUpdateDBProjectId extends CmsUpdateDBProjectId
COLUMN_PROJECT_ID, COLUMN_PROJECT_LASTMODIFIED, COLUMN_PROJECT_UUID, COLUMN_TEMP_PROJECT_UUID, HISTORY_PROJECTS_TABLE, QUERY_ADD_PRIMARY_KEY, QUERY_ADD_TEMP_UUID_COLUMN, QUERY_CREATE_HISTORY_PROJECTS_TABLE, QUERY_CREATE_TEMP_TABLE_UUIDS, QUERY_DESCRIBE_TABLE, QUERY_READ_MAX_PUBTAG, REPLACEMENT_COLUMN, REPLACEMENT_NEW_COLUMN, REPLACEMENT_OLDID, REPLACEMENT_PRIMARY_KEY, REPLACEMENT_TABLENAME, RESOURCE_TABLES, RESOURCES_TABLES_LIST, TABLES, TABLES_LIST, TEMP_UUID_COLUMN, TEMPORARY_TABLE_NAME
m_poolData, m_queries
构造器和说明 |
---|
CmsUpdateDBProjectId()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
addPrimaryKey(CmsSetupDb dbCon,
java.lang.String tablename,
java.lang.String primaryKey)
Adds a new primary key to the given table.
|
protected void |
addUUIDColumnToTable(CmsSetupDb dbCon,
java.lang.String tablename,
java.lang.String column)
Adds the new column for the uuids to a table.
|
protected boolean |
checkColumnTypeProjectId(int type)
Check if the column type of the project id is incorrect.
|
protected void |
createHistProjectsTable(CmsSetupDb dbCon)
Creates the CMS_HISTORY_PROJECTS table if it does not exist yet.
|
protected void |
createTempTable(CmsSetupDb dbCon)
Creates the temp table for project ids if it does not exist yet.
|
protected java.lang.String |
getColumnProjectIdResourcePath()
Returns the columns for the primary key of the project resources table.
|
protected boolean |
needsUpdating(CmsSetupDb dbCon,
java.lang.String tablename)
Checks if the given table needs an update of the uuids.
|
internalExecute, transferDataToHistoryTable
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
public CmsUpdateDBProjectId() throws java.io.IOException
java.io.IOException
- if the sql queries properties file could not be readprotected void addPrimaryKey(CmsSetupDb dbCon, java.lang.String tablename, java.lang.String primaryKey) throws java.sql.SQLException
CmsUpdateDBProjectId
addPrimaryKey
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacetablename
- the table to add the primary key toprimaryKey
- the new primary keyjava.sql.SQLException
- if something goes wrongCmsUpdateDBProjectId.addPrimaryKey(org.opencms.setup.CmsSetupDb, java.lang.String, java.lang.String)
protected void addUUIDColumnToTable(CmsSetupDb dbCon, java.lang.String tablename, java.lang.String column) throws java.sql.SQLException
CmsUpdateDBProjectId
addUUIDColumnToTable
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacetablename
- the table to add the column tocolumn
- the new colum to addjava.sql.SQLException
- if something goes wrongCmsUpdateDBProjectId.addUUIDColumnToTable(org.opencms.setup.CmsSetupDb, java.lang.String, java.lang.String)
protected boolean checkColumnTypeProjectId(int type)
CmsUpdateDBProjectId
checkColumnTypeProjectId
在类中 CmsUpdateDBProjectId
type
- the type of the column from the meta dataCmsUpdateDBProjectId.checkColumnTypeProjectId(int)
protected void createHistProjectsTable(CmsSetupDb dbCon) throws java.sql.SQLException
CmsUpdateDBProjectId
createHistProjectsTable
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacejava.sql.SQLException
- if soemthing goes wrongCmsUpdateDBProjectId.createHistProjectsTable(org.opencms.setup.CmsSetupDb)
protected void createTempTable(CmsSetupDb dbCon) throws java.sql.SQLException
CmsUpdateDBProjectId
createTempTable
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacejava.sql.SQLException
- if soemthing goes wrongCmsUpdateDBProjectId.createTempTable(org.opencms.setup.CmsSetupDb)
protected java.lang.String getColumnProjectIdResourcePath()
CmsUpdateDBProjectId
getColumnProjectIdResourcePath
在类中 CmsUpdateDBProjectId
CmsUpdateDBProjectId.getColumnProjectIdResourcePath()
protected boolean needsUpdating(CmsSetupDb dbCon, java.lang.String tablename) throws java.sql.SQLException
CmsUpdateDBProjectId
needsUpdating
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacetablename
- the table to checkjava.sql.SQLException
- if something goes wrongCmsUpdateDBProjectId.needsUpdating(org.opencms.setup.CmsSetupDb, java.lang.String)