org.opencms.setup.update6to7.oracle
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.oracle.CmsUpdateDBCmsUsers
All Implemented Interfaces:
I_CmsUpdateDBPart

public class CmsUpdateDBCmsUsers
extends CmsUpdateDBCmsUsers

Oracle implementation of the generic update class for the Users.

Since:
7.0.0
Version:
$Revision: 1.2 $
Author:
Roland Metzler, Peter Bonrad

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()
          Constructor.
 
Method Summary
protected  void createUserDataTable(CmsSetupDb dbCon)
          Creates the CMS_USERDATA table if it does not exist yet.
protected  void writeUserInfo(CmsSetupDb dbCon, java.lang.String id, java.lang.String key, java.lang.Object value)
          Writes one set of additional user info (key and its value) to the CMS_USERDATA table.
 
Methods inherited from class org.opencms.setup.update6to7.generic.CmsUpdateDBCmsUsers
internalExecute
 
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
Constructor.

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

createUserDataTable

protected void createUserDataTable(CmsSetupDb dbCon)
                            throws java.sql.SQLException
Description copied from class: CmsUpdateDBCmsUsers
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
See Also:
CmsUpdateDBCmsUsers.createUserDataTable(org.opencms.setup.CmsSetupDb)

writeUserInfo

protected void writeUserInfo(CmsSetupDb dbCon,
                             java.lang.String id,
                             java.lang.String key,
                             java.lang.Object value)
Description copied from class: CmsUpdateDBCmsUsers
Writes one set of additional user info (key and its value) to the CMS_USERDATA table.

Overrides:
writeUserInfo in class CmsUpdateDBCmsUsers
Parameters:
dbCon - the db connection interface
id - the user id
key - the data key
value - the data value
See Also:
CmsUpdateDBCmsUsers.writeUserInfo(org.opencms.setup.CmsSetupDb, java.lang.String, java.lang.String, java.lang.Object)