org.opencms.db.oracle
Class CmsVfsDriver

java.lang.Object
  extended by org.opencms.db.generic.CmsVfsDriver
      extended by org.opencms.db.oracle.CmsVfsDriver
All Implemented Interfaces:
I_CmsDriver, I_CmsVfsDriver
Direct Known Subclasses:
CmsVfsDriver

public class CmsVfsDriver
extends CmsVfsDriver

Oracle implementation of the VFS driver methods.

Since:
6.0.0
Version:
$Revision: 1.36 $
Author:
Thomas Weckert, Carsten Weinholz

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 org.opencms.db.generic.CmsVfsDriver
createFile, createFile, createFolder, createPropertyDefinition, createResource, createResource, createSibling, deletePropertyDefinition, deletePropertyObjects, destroy, escapeDbWildcard, finalize, getSqlManager, init, internalCountProperties, internalCountSiblings, internalReadParentId, internalRemoveFolder, internalValidateResourceLength, publishResource, readChildResources, readFile, readFolder, readFolder, readPropertyDefinition, readPropertyDefinitions, readPropertyObject, readPropertyObjects, readResource, readResource, readResources, readResourcesForPrincipalACE, readResourcesForPrincipalAttr, readResourcesWithProperty, readResourcesWithProperty, readResourceTree, readSiblings, removeFile, removeFolder, replaceResource, transferResource, validateResourceIdExists, validateStructureIdExists, writeLastModifiedProjectId, writePropertyObject, writePropertyObjects, writeResource, writeResourceState
 
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

CmsVfsDriver

public CmsVfsDriver()
Method Detail

createContent

public void createContent(CmsDbContext dbc,
                          CmsProject project,
                          CmsUUID resourceId,
                          byte[] content,
                          int versionId)
                   throws CmsDataAccessException
Description copied from interface: I_CmsVfsDriver
Creates a resource content with the specified id.

Specified by:
createContent in interface I_CmsVfsDriver
Overrides:
createContent in class CmsVfsDriver
Parameters:
dbc - the current database context
project - the current project
resourceId - the resource id to create the content for
content - the content to write
versionId - for the content of a backup file you need to insert the versionId of the backup
Throws:
CmsDataAccessException - if something goes wrong
See Also:
I_CmsVfsDriver.createContent(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, byte[], int)

initSqlManager

public CmsSqlManager initSqlManager(String classname)
Description copied from interface: I_CmsVfsDriver
Initializes the SQL manager for this driver.

To obtain JDBC connections from different pools, further {online|offline|backup} pool Urls have to be specified.

Specified by:
initSqlManager in interface I_CmsVfsDriver
Overrides:
initSqlManager in class CmsVfsDriver
Parameters:
classname - the classname of the SQL manager
Returns:
the SQL manager for this driver
See Also:
I_CmsVfsDriver.initSqlManager(String)

writeContent

public void writeContent(CmsDbContext dbc,
                         CmsProject project,
                         CmsUUID resourceId,
                         byte[] content)
                  throws CmsDataAccessException
Description copied from interface: I_CmsVfsDriver
Writes the resource content with the specified content id.

Specified by:
writeContent in interface I_CmsVfsDriver
Overrides:
writeContent in class CmsVfsDriver
Parameters:
dbc - the current database context
project - the current project
resourceId - the id of the resource used to identify the content to update
content - the new content of the file
Throws:
CmsDataAccessException - if something goes wrong
See Also:
I_CmsVfsDriver.writeContent(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, byte[])