Package org.opencms.setup.db
Class A_CmsUpdateDBPart
java.lang.Object
org.opencms.setup.db.A_CmsUpdateDBPart
- All Implemented Interfaces:
I_CmsUpdateDBPart
- Direct Known Subclasses:
CmsUpdateDBAlterTables,CmsUpdateDBCmsUsers,CmsUpdateDBContentTables,CmsUpdateDBCreateIndexes7,CmsUpdateDBDropBackupTables,CmsUpdateDBDropOldIndexes,CmsUpdateDBDropUnusedTables,CmsUpdateDBHistoryPrincipals,CmsUpdateDBHistoryTables,CmsUpdateDBNewTables,CmsUpdateDBNewTables,CmsUpdateDBProjectId,CmsUpdateDBUpdateOU,CmsUpdatePasswordColumn
Represent a part of the database update process.
- Since:
- 6.9.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the update part.Returns the database pool Data.protected StringReturns the default property file location.protected abstract voidinternalExecute(CmsSetupDb setupDb) Does the hard work.protected booleanReturns the keep History parameter value.protected voidloadQueryProperties(String propertyFilename) Loads a Java properties hash containing SQL queries.Searches for the SQL query with the specified key.
-
Field Details
-
m_poolData
The connection data to use. -
m_queries
A map holding all SQL queries.
-
-
Constructor Details
-
A_CmsUpdateDBPart
public A_CmsUpdateDBPart()Default constructor.
-
-
Method Details
-
execute
Description copied from interface:I_CmsUpdateDBPartExecutes the update part.- Specified by:
executein interfaceI_CmsUpdateDBPart- Parameters:
dbPoolData- the database pool data- See Also:
-
getPoolData
Returns the database pool Data.- Returns:
- the database pool Data
-
readQuery
Searches for the SQL query with the specified key.- Parameters:
queryKey- the SQL query key- Returns:
- the the SQL query in this property list with the specified key
-
getPropertyFileLocation
Returns the default property file location.- Returns:
- the default property file location
-
internalExecute
Does the hard work.- Parameters:
setupDb- the db connection interface- Throws:
SQLException- if something goes wrong
-
isKeepHistory
Returns the keep History parameter value.- Returns:
- the keep History parameter value
-
loadQueryProperties
Loads a Java properties hash containing SQL queries.- Parameters:
propertyFilename- the package/filename of the properties hash- Throws:
IOException- if the sql queries property file could not be read
-