Package org.opencms.setup.db.update6to7
Class CmsUpdateDBContentTables
java.lang.Object
org.opencms.setup.db.A_CmsUpdateDBPart
org.opencms.setup.db.update6to7.CmsUpdateDBContentTables
- All Implemented Interfaces:
I_CmsUpdateDBPart
- Direct Known Subclasses:
CmsUpdateDBContentTables
,CmsUpdateDBContentTables
,CmsUpdateDBContentTables
This class creates the table CMS_CONTENTS and fills it with data from the tables CMS_BACKUP_CONTENTS and CMS_ONLINE_CONTENTS.
- Since:
- 7.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Constant for the sql query to create the CMS_CONTENTS table.protected static final String
Constant for the sql query to transfer the online contents.protected static final String
Constant for the table CMS_CONTENTS.Fields inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
m_poolData, m_queries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.db.A_CmsUpdateDBPart
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
-
Field Details
-
QUERY_CREATE_CMS_CONTENTS_TABLE
Constant for the sql query to create the CMS_CONTENTS table.- See Also:
-
QUERY_TRANSFER_ONLINE_CONTENTS
Constant for the sql query to transfer the online contents.- See Also:
-
TABLE_CMS_CONTENTS
Constant for the table CMS_CONTENTS.- See Also:
-
-
Constructor Details
-
CmsUpdateDBContentTables
Constructor.- Throws:
IOException
- if the query properties cannot be read
-
-
Method Details
-
createContentsTable
Creates the CMS_CONTENTS table if it does not exist yet.- Parameters:
dbCon
- the db connection interface- Throws:
SQLException
- if something goes wrong
-
internalExecute
Description copied from class:A_CmsUpdateDBPart
Does the hard work.- Specified by:
internalExecute
in classA_CmsUpdateDBPart
- Parameters:
dbCon
- the db connection interface- Throws:
SQLException
- if something goes wrong- See Also:
-
transferOnlineContents
Transfers the online content.- Parameters:
dbCon
- the db connection interfacepubTag
- the publish tag to use- Throws:
SQLException
- if something goes wrong
-