|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.generic.CmsBackupDriver
org.opencms.db.oracle.CmsBackupDriver
Oracle implementation of the backup driver methods.
Field Summary |
Fields inherited from class org.opencms.db.generic.CmsBackupDriver |
m_driverManager, m_sqlManager |
Fields inherited from interface org.opencms.db.I_CmsBackupDriver |
DRIVER_TYPE_ID |
Constructor Summary | |
CmsBackupDriver()
|
Method Summary | |
void |
deleteBackups(CmsDbContext dbc,
java.util.List existingBackups,
int maxVersions)
Deletes backup versions of a resource. |
CmsSqlManager |
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver. |
protected void |
internalWriteBackupFileContent(CmsDbContext dbc,
CmsUUID backupId,
CmsResource resource,
int tagId,
int versionId)
Internal method to write the backup content. |
java.util.List |
readBackupProjects(CmsDbContext dbc)
Returns all projects from the history. |
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 CmsBackupDriver()
Method Detail |
public void deleteBackups(CmsDbContext dbc, java.util.List existingBackups, int maxVersions) throws CmsDataAccessException
I_CmsBackupDriver
Deletes the m-n oldest backup versions, if m is the number of backup versions, and n the number of max. allowed backup versions.
deleteBackups
in interface I_CmsBackupDriver
deleteBackups
in class CmsBackupDriver
CmsDataAccessException
I_CmsBackupDriver.deleteBackups(org.opencms.db.CmsDbContext, java.util.List, int)
public CmsSqlManager initSqlManager(java.lang.String classname)
I_CmsBackupDriver
initSqlManager
in interface I_CmsBackupDriver
initSqlManager
in class CmsBackupDriver
I_CmsBackupDriver.initSqlManager(String)
public java.util.List readBackupProjects(CmsDbContext dbc) throws CmsDataAccessException
I_CmsBackupDriver
readBackupProjects
in interface I_CmsBackupDriver
readBackupProjects
in class CmsBackupDriver
CmsDataAccessException
I_CmsBackupDriver.readBackupProjects(org.opencms.db.CmsDbContext)
protected void internalWriteBackupFileContent(CmsDbContext dbc, CmsUUID backupId, CmsResource resource, int tagId, int versionId) throws CmsDataAccessException
CmsBackupDriver
internalWriteBackupFileContent
in class CmsBackupDriver
dbc
- the current database contextbackupId
- the backup idresource
- the resource to backuptagId
- the tag revisionversionId
- the version revision
CmsDataAccessException
- if something goes wrongCmsBackupDriver.internalWriteBackupFileContent(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, org.opencms.file.CmsResource, int, int)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |