|
||||||||||
| 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
public class 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,
List existingBackups,
int maxVersions)
Deletes backup versions of a resource. |
CmsSqlManager |
initSqlManager(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. |
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,
List existingBackups,
int maxVersions)
throws CmsDataAccessException
I_CmsBackupDriverDeletes 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_CmsBackupDriverdeleteBackups in class CmsBackupDriverdbc - the current database contextexistingBackups - a list of backup resources ordered by their ascending creation datemaxVersions - maximum number of versions per resource
CmsDataAccessException - if something goes wrongI_CmsBackupDriver.deleteBackups(org.opencms.db.CmsDbContext, java.util.List, int)public CmsSqlManager initSqlManager(String classname)
I_CmsBackupDriver
initSqlManager in interface I_CmsBackupDriverinitSqlManager in class CmsBackupDriverclassname - the classname of the SQL manager
I_CmsBackupDriver.initSqlManager(String)
public List readBackupProjects(CmsDbContext dbc)
throws CmsDataAccessException
I_CmsBackupDriver
readBackupProjects in interface I_CmsBackupDriverreadBackupProjects in class CmsBackupDriverdbc - the current database context
CmsBackupProject objects
with all projects from history.
CmsDataAccessException - if an error occursI_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 CmsBackupDriverdbc - 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 | |||||||||