Package org.opencms.db.mysql
Class CmsHistoryDriver
- java.lang.Object
-
- org.opencms.db.generic.CmsHistoryDriver
-
- org.opencms.db.mysql.CmsHistoryDriver
-
- All Implemented Interfaces:
I_CmsDriver
,I_CmsHistoryDriver
public class CmsHistoryDriver extends CmsHistoryDriver
MySQL implementation of the history driver methods.- Since:
- 6.9.1
-
-
Field Summary
-
Fields inherited from class org.opencms.db.generic.CmsHistoryDriver
m_driverManager, m_sqlManager
-
Fields inherited from interface org.opencms.db.I_CmsDriver
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITION
-
Fields inherited from interface org.opencms.db.I_CmsHistoryDriver
DRIVER_TYPE_ID
-
-
Constructor Summary
Constructors Constructor Description CmsHistoryDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsSqlManager
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver.java.util.List<CmsHistoryProject>
readProjects(CmsDbContext dbc)
Returns all projects from the history.-
Methods inherited from class org.opencms.db.generic.CmsHistoryDriver
createPropertyDefinition, deleteEntries, deletePropertyDefinition, destroy, getAllDeletedEntries, getAllNotDeletedEntries, getSqlManager, init, internalAddToPropMap, internalCleanup, internalCountProperties, internalCreateProject, internalCreateResource, internalMergeResource, internalValidateResource, readAllAvailableVersions, readContent, readDeletedResources, readLastVersion, readMaxPublishTag, readNextPublishTag, readPrincipal, readProject, readProject, readProjectResources, readProperties, readPropertyDefinition, readPublishTag, readResource, setDriverManager, setSqlManager, writePrincipal, writeProject, writeProperties, writeResource
-
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
-
CmsHistoryDriver
public CmsHistoryDriver()
-
-
Method Detail
-
initSqlManager
public CmsSqlManager initSqlManager(java.lang.String classname)
Description copied from interface:I_CmsHistoryDriver
Initializes the SQL manager for this driver.- Specified by:
initSqlManager
in interfaceI_CmsHistoryDriver
- Overrides:
initSqlManager
in classCmsHistoryDriver
- Parameters:
classname
- the classname of the SQL manager- Returns:
- the SQL manager for this driver
- See Also:
I_CmsHistoryDriver.initSqlManager(String)
-
readProjects
public java.util.List<CmsHistoryProject> readProjects(CmsDbContext dbc) throws CmsDataAccessException
Description copied from interface:I_CmsHistoryDriver
Returns all projects from the history.- Specified by:
readProjects
in interfaceI_CmsHistoryDriver
- Overrides:
readProjects
in classCmsHistoryDriver
- Parameters:
dbc
- the current database context- Returns:
- list of
objects with all projects from history.CmsHistoryProject
- Throws:
CmsDataAccessException
- if an error occurs- See Also:
I_CmsHistoryDriver.readProjects(org.opencms.db.CmsDbContext)
-
-