|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.setup.update6to7.A_CmsUpdateDBPart
org.opencms.setup.update6to7.generic.CmsUpdateDBProjectId
org.opencms.setup.update6to7.oracle.CmsUpdateDBProjectId
public class CmsUpdateDBProjectId
Oracle implementation to update the project ids to uuids.
Field Summary |
---|
Fields inherited from class org.opencms.setup.update6to7.A_CmsUpdateDBPart |
---|
m_poolData, m_queries, QUERY_PROPERTIES_PREFIX |
Constructor Summary | |
---|---|
CmsUpdateDBProjectId()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opencms.setup.update6to7.generic.CmsUpdateDBProjectId |
---|
internalExecute, transferDataToHistoryTable |
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 |
Constructor Detail |
---|
public CmsUpdateDBProjectId() throws java.io.IOException
java.io.IOException
- if the sql queries properties file could not be readMethod Detail |
---|
protected void addPrimaryKey(CmsSetupDb dbCon, java.lang.String tablename, java.lang.String primaryKey) throws java.sql.SQLException
CmsUpdateDBProjectId
addPrimaryKey
in class CmsUpdateDBProjectId
dbCon
- the db connection interfacetablename
- the table to add the primary key toprimaryKey
- the new primary key
java.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
in class CmsUpdateDBProjectId
dbCon
- the db connection interfacetablename
- the table to add the column tocolumn
- the new colum to add
java.sql.SQLException
- if something goes wrongCmsUpdateDBProjectId.addUUIDColumnToTable(org.opencms.setup.CmsSetupDb, java.lang.String, java.lang.String)
protected boolean checkColumnTypeProjectId(int type)
CmsUpdateDBProjectId
checkColumnTypeProjectId
in class CmsUpdateDBProjectId
type
- the type of the column from the meta data
CmsUpdateDBProjectId.checkColumnTypeProjectId(int)
protected void createHistProjectsTable(CmsSetupDb dbCon) throws java.sql.SQLException
CmsUpdateDBProjectId
createHistProjectsTable
in class CmsUpdateDBProjectId
dbCon
- the db connection interface
java.sql.SQLException
- if soemthing goes wrongCmsUpdateDBProjectId.createHistProjectsTable(org.opencms.setup.CmsSetupDb)
protected void createTempTable(CmsSetupDb dbCon) throws java.sql.SQLException
CmsUpdateDBProjectId
createTempTable
in class CmsUpdateDBProjectId
dbCon
- the db connection interface
java.sql.SQLException
- if soemthing goes wrongCmsUpdateDBProjectId.createTempTable(org.opencms.setup.CmsSetupDb)
protected java.lang.String getColumnProjectIdResourcePath()
CmsUpdateDBProjectId
getColumnProjectIdResourcePath
in class CmsUpdateDBProjectId
CmsUpdateDBProjectId.getColumnProjectIdResourcePath()
protected boolean needsUpdating(CmsSetupDb dbCon, java.lang.String tablename) throws java.sql.SQLException
CmsUpdateDBProjectId
needsUpdating
in class CmsUpdateDBProjectId
dbCon
- the db connection interfacetablename
- the table to check
java.sql.SQLException
- if something goes wrongCmsUpdateDBProjectId.needsUpdating(org.opencms.setup.CmsSetupDb, java.lang.String)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |