@Component @Named(value="hibernate") @Singleton public class HibernateAttachmentVersioningStore extends XWikiHibernateBaseStore implements AttachmentVersioningStore
AttachmentVersioningStore
for Hibernate-based storage.XWikiHibernateBaseStore.HibernateCallback<T>
hibernateConfiguration, HINT, loggerManager, store
Constructor and Description |
---|
HibernateAttachmentVersioningStore()
Empty constructor needed for component manager.
|
HibernateAttachmentVersioningStore(XWikiContext context)
Deprecated.
1.6M1. Use ComponentManager.lookup(AttachmentVersioningStore.class) instead.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Permanently delete attachment archive.
|
XWikiAttachmentArchive |
loadArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Load attachment archive from store.
|
void |
saveArchive(XWikiAttachmentArchive archive,
XWikiContext context,
boolean bTransaction)
Save or update attachment archive.
|
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
getExecutionXContext, restoreExecutionXContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHint
@Deprecated public HibernateAttachmentVersioningStore(XWikiContext context)
context
- the current context.public HibernateAttachmentVersioningStore()
public XWikiAttachmentArchive loadArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) throws XWikiException
AttachmentVersioningStore
loadArchive
in interface AttachmentVersioningStore
attachment
- The attachment of archive.context
- The current context.bTransaction
- Should use old transaction (false) or create new (true).XWikiException
- If an error occurs.public void saveArchive(XWikiAttachmentArchive archive, XWikiContext context, boolean bTransaction) throws XWikiException
AttachmentVersioningStore
saveArchive
in interface AttachmentVersioningStore
archive
- The attachment archive to save.context
- The current context.bTransaction
- Should use old transaction (false) or create new (true).XWikiException
- If an error occurs.public void deleteArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) throws XWikiException
AttachmentVersioningStore
deleteArchive
in interface AttachmentVersioningStore
attachment
- The attachment to delete.context
- The current context.bTransaction
- Should use old transaction (false) or create new (true).XWikiException
- If an error occurs.Copyright © 2004–2022 XWiki. All rights reserved.