|
||||||
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.CmsUpdateDBContentTables
public class CmsUpdateDBContentTables
This class creates the table CMS_CONTENTS and fills it with data from the tables CMS_BACKUP_CONTENTS and CMS_ONLINE_CONTENTS.
Field Summary | |
---|---|
protected static java.lang.String |
QUERY_CREATE_CMS_CONTENTS_TABLE
Constant for the sql query to create the CMS_CONTENTS table. |
protected static java.lang.String |
QUERY_TRANSFER_ONLINE_CONTENTS
Constant for the sql query to transfer the online contents. |
protected static java.lang.String |
TABLE_CMS_CONTENTS
Constant for the table CMS_CONTENTS. |
Fields inherited from class org.opencms.setup.update6to7.A_CmsUpdateDBPart |
---|
m_poolData, m_queries, QUERY_PROPERTIES_PREFIX |
Constructor Summary | |
---|---|
CmsUpdateDBContentTables()
Constructor. |
Method Summary | |
---|---|
protected void |
createContentsTable(CmsSetupDb dbCon)
Creates the CMS_CONTENTS table if it does not exist yet. |
protected void |
internalExecute(CmsSetupDb dbCon)
Does the hard work. |
protected void |
transferOnlineContents(CmsSetupDb dbCon,
int pubTag)
Transfers the online content. |
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 |
Field Detail |
---|
protected static final java.lang.String QUERY_CREATE_CMS_CONTENTS_TABLE
protected static final java.lang.String QUERY_TRANSFER_ONLINE_CONTENTS
protected static final java.lang.String TABLE_CMS_CONTENTS
Constructor Detail |
---|
public CmsUpdateDBContentTables() throws java.io.IOException
java.io.IOException
- if the query properties cannot be readMethod Detail |
---|
protected void createContentsTable(CmsSetupDb dbCon) throws java.sql.SQLException
dbCon
- the db connection interface
java.sql.SQLException
- if soemthing goes wrongprotected void internalExecute(CmsSetupDb dbCon) throws java.sql.SQLException
A_CmsUpdateDBPart
internalExecute
in class A_CmsUpdateDBPart
dbCon
- the db connection interface
java.sql.SQLException
- if somethign goes wrongA_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)
protected void transferOnlineContents(CmsSetupDb dbCon, int pubTag) throws java.sql.SQLException
dbCon
- the db connection interfacepubTag
- the publish tag to use
java.sql.SQLException
- if something goes wrong
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |