|
||||||
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.CmsUpdateDBCmsUsers
public class 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.
Field Summary | |
---|---|
protected static java.lang.String |
QUERY_CREATE_TABLE_USERDATA
Constant for the query to create the user data table. |
protected static java.lang.String |
QUERY_INSERT_CMS_USERDATA
Constant for the query to insert the new user data into the new table 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. |
void |
internalExecute(CmsSetupDb dbCon)
Does the hard work. |
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.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_TABLE_USERDATA
protected static final java.lang.String QUERY_INSERT_CMS_USERDATA
Constructor Detail |
---|
public CmsUpdateDBCmsUsers() throws java.io.IOException
java.io.IOException
- if the default sql queries property file could not be readMethod Detail |
---|
public void internalExecute(CmsSetupDb dbCon)
A_CmsUpdateDBPart
internalExecute
in class A_CmsUpdateDBPart
dbCon
- the db connection interfaceA_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)
protected void createUserDataTable(CmsSetupDb dbCon) throws java.sql.SQLException
dbCon
- the db connection interface
java.sql.SQLException
- if soemthing goes wrongprotected void writeUserInfo(CmsSetupDb dbCon, java.lang.String id, java.lang.String key, java.lang.Object value)
dbCon
- the db connection interfaceid
- the user idkey
- the data keyvalue
- the data value
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |