@Component @Named(value="hibernate") @Singleton public class XWikiHibernateVersioningStore extends XWikiHibernateBaseStore implements XWikiVersioningStoreInterface
XWikiVersioningStoreInterface
for Hibernate-based storage.XWikiHibernateBaseStore.HibernateCallback<T>
hibernateConfiguration, HINT, loggerManager, store
Constructor and Description |
---|
XWikiHibernateVersioningStore()
Empty constructor needed for component manager.
|
XWikiHibernateVersioningStore(String hibpath)
Deprecated.
1.6M1. use ComponentManager.lookup(XWikiVersioningStoreInterface.class) instead.
|
XWikiHibernateVersioningStore(XWikiContext context)
Deprecated.
1.6M1. use ComponentManager.lookup(XWikiVersioningStoreInterface.class) instead.
|
XWikiHibernateVersioningStore(XWiki xwiki,
XWikiContext context)
Deprecated.
1.6M1. use ComponentManager.lookup(XWikiVersioningStoreInterface.class) instead.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteArchive(XWikiDocument doc,
boolean bTransaction,
XWikiContext context)
Delete all history for a document.
|
XWikiDocumentArchive |
getXWikiDocumentArchive(XWikiDocument doc,
XWikiContext inputxcontext) |
org.suigeneris.jrcs.rcs.Version[] |
getXWikiDocVersions(XWikiDocument doc,
XWikiContext context) |
protected List<XWikiRCSNodeInfo> |
loadAllRCSNodeInfo(XWikiContext context,
long id,
boolean bTransaction) |
XWikiRCSNodeContent |
loadRCSNodeContent(XWikiRCSNodeId id,
boolean bTransaction,
XWikiContext context)
Load
XWikiRCSNodeContent on demand. |
XWikiDocument |
loadXWikiDoc(XWikiDocument basedoc,
String sversion,
XWikiContext inputxcontext) |
void |
loadXWikiDocArchive(XWikiDocumentArchive archivedoc,
boolean bTransaction,
XWikiContext context) |
void |
resetRCSArchive(XWikiDocument doc,
boolean bTransaction,
XWikiContext inputxcontext) |
void |
saveXWikiDocArchive(XWikiDocumentArchive archivedoc,
boolean bTransaction,
XWikiContext context) |
void |
updateXWikiDocArchive(XWikiDocument doc,
boolean bTransaction,
XWikiContext inputxcontext) |
beginTransaction, beginTransaction, beginTransaction, beginTransaction, checkHibernate, cleanUp, createHibernateSequenceIfRequired, dynamicMappingTableName, endTransaction, endTransaction, escapeSchema, execute, execute, executeRead, executeRead, executeWrite, executeWrite, failSafeExecute, failSafeExecuteRead, failSafeExecuteWrite, getConfiguration, getConnections, getDatabaseMetaData, getDatabaseProductName, getDatabaseProductName, getDialect, getExecution, getHint, getMapping, getMetadata, getNbConnections, getPath, getSchemaFromWikiName, getSchemaFromWikiName, getSchemaFromWikiName, getSchemaUpdateScript, getSession, getSessionFactory, getTransaction, isInSchemaMode, isVirtual, makeMapping, setDatabase, setNbConnections, setPath, setSession, setSessionFactory, setTransaction, shutdownHibernate, updateSchema, updateSchema, updateSchema, updateSchema
@Deprecated public XWikiHibernateVersioningStore(XWiki xwiki, XWikiContext context)
xwiki
- The xwiki objectcontext
- The current context@Deprecated public XWikiHibernateVersioningStore(String hibpath)
hibpath
- path to hibernate.hbm.xml file@Deprecated public XWikiHibernateVersioningStore(XWikiContext context)
context
- The current contextXWikiHibernateVersioningStore(XWiki, XWikiContext)
public XWikiHibernateVersioningStore()
public org.suigeneris.jrcs.rcs.Version[] getXWikiDocVersions(XWikiDocument doc, XWikiContext context) throws XWikiException
getXWikiDocVersions
in interface XWikiVersioningStoreInterface
XWikiException
public XWikiDocumentArchive getXWikiDocumentArchive(XWikiDocument doc, XWikiContext inputxcontext) throws XWikiException
getXWikiDocumentArchive
in interface XWikiVersioningStoreInterface
XWikiException
public void loadXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context) throws XWikiException
loadXWikiDocArchive
in interface XWikiVersioningStoreInterface
XWikiException
public void saveXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context) throws XWikiException
saveXWikiDocArchive
in interface XWikiVersioningStoreInterface
XWikiException
public XWikiDocument loadXWikiDoc(XWikiDocument basedoc, String sversion, XWikiContext inputxcontext) throws XWikiException
loadXWikiDoc
in interface XWikiVersioningStoreInterface
XWikiException
public void resetRCSArchive(XWikiDocument doc, boolean bTransaction, XWikiContext inputxcontext) throws XWikiException
resetRCSArchive
in interface XWikiVersioningStoreInterface
XWikiException
public void updateXWikiDocArchive(XWikiDocument doc, boolean bTransaction, XWikiContext inputxcontext) throws XWikiException
updateXWikiDocArchive
in interface XWikiVersioningStoreInterface
XWikiException
protected List<XWikiRCSNodeInfo> loadAllRCSNodeInfo(XWikiContext context, long id, boolean bTransaction) throws XWikiException
context
- the XWiki contextid
- XWikiRCSNodeContent.getId()
bTransaction
- should store to use old transaction(false) or create new (true)XWikiException
- if any errorpublic XWikiRCSNodeContent loadRCSNodeContent(XWikiRCSNodeId id, boolean bTransaction, XWikiContext context) throws XWikiException
XWikiVersioningStoreInterface
XWikiRCSNodeContent
on demand. Used in
XWikiRCSNodeInfo.getContent(XWikiContext)
for example.loadRCSNodeContent
in interface XWikiVersioningStoreInterface
id
- the node id (see XWikiRCSNodeContent.getId()
)XWikiException
public void deleteArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context) throws XWikiException
XWikiVersioningStoreInterface
deleteArchive
in interface XWikiVersioningStoreInterface
doc
- the document for which to delete all the historyXWikiException
Copyright © 2004–2022 XWiki. All rights reserved.