|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.generic.CmsUserDriver
org.opencms.db.oracle.CmsUserDriver
public class CmsUserDriver
Oracle implementation of the user driver methods.
Field Summary |
---|
Fields inherited from class org.opencms.db.generic.CmsUserDriver |
---|
m_driverManager, m_sqlManager, ORGUNIT_BASE_FOLDER, REQ_ATTR_DONT_DIGEST_PASSWORD |
Fields inherited from interface org.opencms.db.I_CmsUserDriver |
---|
DRIVER_TYPE_ID |
Fields inherited from interface org.opencms.db.I_CmsDriver |
---|
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITION |
Constructor Summary | |
---|---|
CmsUserDriver()
|
Method Summary | |
---|---|
static java.io.OutputStream |
getOutputStreamFromBlob(java.sql.ResultSet res,
java.lang.String name)
Generates an Output stream that writes to a blob, also truncating the existing blob if required. |
CmsSqlManager |
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver. |
protected void |
internalUpdateUserInfo(CmsDbContext dbc,
CmsUUID userId,
java.lang.String key,
java.lang.Object value)
Updates the given user information entry. |
void |
writeUserInfo(CmsDbContext dbc,
CmsUUID userId,
java.lang.String key,
java.lang.Object value)
Writes an user additional information entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opencms.db.I_CmsDriver |
---|
toString |
Constructor Detail |
---|
public CmsUserDriver()
Method Detail |
---|
public static java.io.OutputStream getOutputStreamFromBlob(java.sql.ResultSet res, java.lang.String name) throws java.sql.SQLException
Apparently Oracle requires some non-standard handling here.
res
- the result set where the blob is located inname
- the name of the database column where the blob is located
java.sql.SQLException
- if something goes wringpublic CmsSqlManager initSqlManager(java.lang.String classname)
I_CmsUserDriver
To obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.
initSqlManager
in interface I_CmsUserDriver
initSqlManager
in class CmsUserDriver
classname
- the classname of the SQL manager
I_CmsUserDriver.initSqlManager(String)
public void writeUserInfo(CmsDbContext dbc, CmsUUID userId, java.lang.String key, java.lang.Object value) throws CmsDataAccessException
I_CmsUserDriver
writeUserInfo
in interface I_CmsUserDriver
writeUserInfo
in class CmsUserDriver
dbc
- the current database contextuserId
- the id of the user to updatekey
- the key of the info to writevalue
- the value of the info to write
CmsDataAccessException
- if something goes wrongI_CmsUserDriver.writeUserInfo(CmsDbContext, CmsUUID, String, Object)
protected void internalUpdateUserInfo(CmsDbContext dbc, CmsUUID userId, java.lang.String key, java.lang.Object value) throws CmsDataAccessException
internalUpdateUserInfo
in class CmsUserDriver
dbc
- the current database contextuserId
- the id of the user to updatekey
- the user info entry keyvalue
- the user info entry value
CmsDataAccessException
- if something goes wrong
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |