org.opencms.setup.update6to7.mysql
Class CmsUpdateDBContentTables

java.lang.Object
  extended by org.opencms.setup.update6to7.A_CmsUpdateDBPart
      extended by org.opencms.setup.update6to7.generic.CmsUpdateDBContentTables
          extended by org.opencms.setup.update6to7.mysql.CmsUpdateDBContentTables
All Implemented Interfaces:
I_CmsUpdateDBPart

public class CmsUpdateDBContentTables
extends CmsUpdateDBContentTables

This class creates the table CMS_CONTENTS and fills it with data from the tables CMS_BACKUP_CONTENTS and CMS_ONLINE_CONTENTS.

Author:
metzler

Field Summary
 
Fields inherited from class org.opencms.setup.update6to7.generic.CmsUpdateDBContentTables
QUERY_CREATE_CMS_CONTENTS_TABLE, QUERY_TRANSFER_ONLINE_CONTENTS, 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.
 
Methods inherited from class org.opencms.setup.update6to7.generic.CmsUpdateDBContentTables
internalExecute, transferOnlineContents
 
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
 

Constructor Detail

CmsUpdateDBContentTables

public CmsUpdateDBContentTables()
                         throws java.io.IOException
Constructor.

Throws:
java.io.IOException - if the query properties cannot be read
Method Detail

createContentsTable

protected void createContentsTable(CmsSetupDb dbCon)
                            throws java.sql.SQLException
Creates the CMS_CONTENTS table if it does not exist yet.

Overrides:
createContentsTable in class CmsUpdateDBContentTables
Parameters:
dbCon - the db connection interface
Throws:
java.sql.SQLException - if soemthing goes wrong