|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.setup.update6to7.A_CmsUpdateDBPart
public abstract class A_CmsUpdateDBPart
Represent a part of the database update process.
Field Summary | |
---|---|
protected java.util.Map |
m_poolData
The connection data to use. |
protected java.util.Map |
m_queries
A map holding all SQL queries. |
protected static java.lang.String |
QUERY_PROPERTIES_PREFIX
The filename/path of the SQL query properties. |
Constructor Summary | |
---|---|
A_CmsUpdateDBPart()
Default constructor. |
Method Summary | |
---|---|
void |
execute()
Executes the update part. |
I_CmsUpdateDBPart |
getDbInstance(java.lang.String dbName,
java.util.Map dbPoolData)
Returns the right instance based on the database name. |
java.util.Map |
getPoolData()
Returns the database pool Data. |
protected abstract void |
internalExecute(CmsSetupDb setupDb)
Does the hard work. |
protected boolean |
isKeepHistory()
Returns the keep History parameter value. |
protected void |
loadQueryProperties(java.lang.String propertyFilename)
Loads a Java properties hash containing SQL queries. |
java.lang.String |
readQuery(java.lang.String queryKey)
Searches for the SQL query with the specified key. |
void |
setPoolData(java.util.Map poolData)
Sets the database pool Data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String QUERY_PROPERTIES_PREFIX
protected java.util.Map m_poolData
protected java.util.Map m_queries
Constructor Detail |
---|
public A_CmsUpdateDBPart()
Method Detail |
---|
public void execute()
I_CmsUpdateDBPart
execute
in interface I_CmsUpdateDBPart
I_CmsUpdateDBPart.execute()
public I_CmsUpdateDBPart getDbInstance(java.lang.String dbName, java.util.Map dbPoolData)
I_CmsUpdateDBPart
getDbInstance
in interface I_CmsUpdateDBPart
dbName
- the database namedbPoolData
- the database pool data
I_CmsUpdateDBPart.getDbInstance(String, Map)
public java.util.Map getPoolData()
public java.lang.String readQuery(java.lang.String queryKey)
queryKey
- the SQL query key
public void setPoolData(java.util.Map poolData)
I_CmsUpdateDBPart
setPoolData
in interface I_CmsUpdateDBPart
poolData
- the database pool Data to setI_CmsUpdateDBPart.setPoolData(java.util.Map)
protected abstract void internalExecute(CmsSetupDb setupDb) throws java.sql.SQLException
setupDb
- the db connection interface
java.sql.SQLException
- if somethign goes wrongprotected boolean isKeepHistory()
protected void loadQueryProperties(java.lang.String propertyFilename) throws java.io.IOException
propertyFilename
- the package/filename of the properties hash
java.io.IOException
- if the sql queries property file could not be read
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |