|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.db.generic.CmsVfsDriver
org.opencms.db.oracle.CmsVfsDriver
public class CmsVfsDriver
Oracle implementation of the VFS driver methods.
| Field Summary |
|---|
| Fields inherited from class org.opencms.db.generic.CmsVfsDriver |
|---|
BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, m_driverManager, m_sqlManager |
| Fields inherited from interface org.opencms.db.I_CmsVfsDriver |
|---|
DRIVER_TYPE_ID |
| Constructor Summary | |
|---|---|
CmsVfsDriver()
|
|
| Method Summary | |
|---|---|
void |
createContent(CmsDbContext dbc,
CmsProject project,
CmsUUID resourceId,
byte[] content,
int versionId)
Creates a resource content with the specified id. |
CmsSqlManager |
initSqlManager(String classname)
Initializes the SQL manager for this driver. |
void |
writeContent(CmsDbContext dbc,
CmsProject project,
CmsUUID resourceId,
byte[] content)
Writes the resource content with the specified content id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opencms.db.I_CmsDriver |
|---|
toString |
| Constructor Detail |
|---|
public CmsVfsDriver()
| Method Detail |
|---|
public void createContent(CmsDbContext dbc,
CmsProject project,
CmsUUID resourceId,
byte[] content,
int versionId)
throws CmsDataAccessException
I_CmsVfsDriver
createContent in interface I_CmsVfsDrivercreateContent in class CmsVfsDriverdbc - the current database contextproject - the current projectresourceId - the resource id to create the content forcontent - the content to writeversionId - for the content of a backup file you need to insert the versionId of the backup
CmsDataAccessException - if something goes wrongI_CmsVfsDriver.createContent(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, byte[], int)public CmsSqlManager initSqlManager(String classname)
I_CmsVfsDriverTo obtain JDBC connections from different pools, further {online|offline|backup} pool Urls have to be specified.
initSqlManager in interface I_CmsVfsDriverinitSqlManager in class CmsVfsDriverclassname - the classname of the SQL manager
I_CmsVfsDriver.initSqlManager(String)
public void writeContent(CmsDbContext dbc,
CmsProject project,
CmsUUID resourceId,
byte[] content)
throws CmsDataAccessException
I_CmsVfsDriver
writeContent in interface I_CmsVfsDriverwriteContent in class CmsVfsDriverdbc - the current database contextproject - the current projectresourceId - the id of the resource used to identify the content to updatecontent - the new content of the file
CmsDataAccessException - if something goes wrongI_CmsVfsDriver.writeContent(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, byte[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||