public class CmsUpdateDBProjectId extends CmsUpdateDBProjectId
It creates new UUIDs for each existing project and stores it into a temporary table.
For each table using a project id a new column for the UUID is added and the according data is transferred.
After that the original indexes and the column for the project id index is dropped and the new column with the project uuid becomes the primary key.
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 |
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.
|
addPrimaryKey, addUUIDColumnToTable, checkColumnTypeProjectId, getColumnProjectIdResourcePath, internalExecute, needsUpdating, transferDataToHistoryTable
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
public CmsUpdateDBProjectId() throws java.io.IOException
java.io.IOException
- if the query properties cannot be readprotected void createHistProjectsTable(CmsSetupDb dbCon) throws java.sql.SQLException
createHistProjectsTable
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacejava.sql.SQLException
- if something goes wrongprotected void createTempTable(CmsSetupDb dbCon) throws java.sql.SQLException
createTempTable
在类中 CmsUpdateDBProjectId
dbCon
- the db connection interfacejava.sql.SQLException
- if something goes wrong