|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.setup.update6to7.CmsUpdateDBManager
public class CmsUpdateDBManager
This manager controls the update of the database from OpenCms 6 to OpenCms 7.
Constructor Summary | |
---|---|
CmsUpdateDBManager()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getDbDriver(java.lang.String pool)
Returns the configured jdbc driver for the given pool. |
java.lang.String |
getDbName()
Returns the database name. |
java.lang.String |
getDbParams(java.lang.String pool)
Returns the configured jdbc url parameters for the given pool. |
java.lang.String |
getDbUrl(java.lang.String pool)
Returns the configured jdbc connection url for the given pool. |
java.lang.String |
getDbUser(java.lang.String pool)
Returns the configured database user for the given pool. |
java.util.List |
getPools()
Returns all configured database pools. |
java.lang.String |
htmlPool(java.lang.String pool)
Generates html code for the given db pool. |
void |
initialize(CmsUpdateBean updateBean)
Initializes the Update Manager object with the updateBean to get the database connection. |
boolean |
needUpdate()
Checks if an update is needed. |
void |
run()
Updates all database pools. |
void |
updateDatabase(java.lang.String pool)
Updates the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsUpdateDBManager()
Method Detail |
---|
public java.lang.String getDbDriver(java.lang.String pool)
pool
- the db pool to get the driver for
public java.lang.String getDbName()
public java.lang.String getDbParams(java.lang.String pool)
pool
- the db pool to get the params for
public java.lang.String getDbUrl(java.lang.String pool)
pool
- the db pool to get the url for
public java.lang.String getDbUser(java.lang.String pool)
pool
- the db pool to get the user for
public java.util.List getPools()
String
objectspublic java.lang.String htmlPool(java.lang.String pool) throws java.lang.Exception
pool
- the db pool to generate html for
java.lang.Exception
- if something goes wrongpublic void initialize(CmsUpdateBean updateBean) throws java.lang.Exception
updateBean
- the update bean with the database connection
java.lang.Exception
- if the setup bean is not initializedpublic boolean needUpdate()
public void run()
public void updateDatabase(java.lang.String pool)
pool
- the database pool to update
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |