org.opencms.setup.update6to7.mysql
Class CmsUpdateDBCmsUsers

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

public class CmsUpdateDBCmsUsers
extends CmsUpdateDBCmsUsers

This class makes an update of the CMS_USERS table splitting it up into CMS_USERS and CMS_USERDATA.

Unnecessary colums from CMS_USERS will be deleted and the new column USER_DATECREATED is added.

Author:
metzler

Field Summary
 
Fields inherited from class org.opencms.setup.update6to7.generic.CmsUpdateDBCmsUsers
QUERY_CREATE_TABLE_USERDATA, QUERY_INSERT_CMS_USERDATA
 
Fields inherited from class org.opencms.setup.update6to7.A_CmsUpdateDBPart
m_poolData, m_queries, QUERY_PROPERTIES_PREFIX
 
Constructor Summary
CmsUpdateDBCmsUsers()
          Default constructor.
 
Method Summary
protected  void createUserDataTable(CmsSetupDb dbCon)
          Creates the CMS_USERDATA table if it does not exist yet.
 
Methods inherited from class org.opencms.setup.update6to7.generic.CmsUpdateDBCmsUsers
internalExecute, writeUserInfo
 
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

CmsUpdateDBCmsUsers

public CmsUpdateDBCmsUsers()
                    throws java.io.IOException
Default constructor.

Throws:
java.io.IOException - if the default sql queries property file could not be read
Method Detail

createUserDataTable

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

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