@Component @Named(value="hibernate") @Singleton public class XWikiHibernateAttachmentStore extends XWikiHibernateBaseStore implements XWikiAttachmentStoreInterface
XWikiHibernateBaseStore.HibernateCallback<T>hibernateConfiguration, HINT, loggerManager, store| Constructor and Description |
|---|
XWikiHibernateAttachmentStore()
Empty constructor needed for component manager.
|
XWikiHibernateAttachmentStore(String hibpath)
Deprecated.
1.6M1. Use ComponentManager.lookup(XWikiAttachmentStoreInterface.class) instead.
|
XWikiHibernateAttachmentStore(XWikiContext context)
Deprecated.
1.6M1. Use ComponentManager.lookup(XWikiAttachmentStoreInterface.class) instead.
|
XWikiHibernateAttachmentStore(XWiki xwiki,
XWikiContext context)
Deprecated.
1.6M1. Use ComponentManager.lookup(XWikiAttachmentStoreInterface.class) instead.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
attachmentContentExists(XWikiAttachment attachment,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
deleteXWikiAttachment(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
void |
loadAttachmentContent(XWikiAttachment attachment,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
saveAttachmentContent(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext inputxcontext,
boolean bTransaction) |
void |
saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction) |
void |
saveAttachmentsContent(List<XWikiAttachment> attachments,
XWikiDocument doc,
boolean bParentUpdate,
XWikiContext inputxcontext,
boolean bTransaction) |
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, updateSchemagetExecutionXContext, restoreExecutionXContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUp, getHint@Deprecated public XWikiHibernateAttachmentStore(XWiki xwiki, XWikiContext context)
xwiki - context - @Deprecated public XWikiHibernateAttachmentStore(XWikiContext context)
@Deprecated public XWikiHibernateAttachmentStore(String hibpath)
hibpath - public XWikiHibernateAttachmentStore()
public void saveAttachmentContent(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) throws XWikiException
saveAttachmentContent in interface XWikiAttachmentStoreInterfaceXWikiExceptionpublic void saveAttachmentContent(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
saveAttachmentContent in interface XWikiAttachmentStoreInterfaceXWikiExceptionpublic void saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
saveAttachmentsContent in interface XWikiAttachmentStoreInterfaceXWikiExceptionpublic void loadAttachmentContent(XWikiAttachment attachment, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
loadAttachmentContent in interface XWikiAttachmentStoreInterfaceXWikiExceptionpublic boolean attachmentContentExists(XWikiAttachment attachment, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
attachmentContentExists in interface XWikiAttachmentStoreInterfaceinputxcontext - the XWiki contextXWikiException - when it's not possible to check of the content existpublic void deleteXWikiAttachment(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) throws XWikiException
deleteXWikiAttachment in interface XWikiAttachmentStoreInterfaceXWikiExceptionpublic void deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
deleteXWikiAttachment in interface XWikiAttachmentStoreInterfaceXWikiExceptionCopyright © 2004–2022 XWiki. All rights reserved.