@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, updateSchema
getExecutionXContext, restoreExecutionXContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cleanUp, 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 XWikiAttachmentStoreInterface
XWikiException
public void saveAttachmentContent(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
saveAttachmentContent
in interface XWikiAttachmentStoreInterface
XWikiException
public void saveAttachmentsContent(List<XWikiAttachment> attachments, XWikiDocument doc, boolean bParentUpdate, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
saveAttachmentsContent
in interface XWikiAttachmentStoreInterface
XWikiException
public void loadAttachmentContent(XWikiAttachment attachment, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
loadAttachmentContent
in interface XWikiAttachmentStoreInterface
XWikiException
public boolean attachmentContentExists(XWikiAttachment attachment, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
attachmentContentExists
in interface XWikiAttachmentStoreInterface
inputxcontext
- 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 XWikiAttachmentStoreInterface
XWikiException
public void deleteXWikiAttachment(XWikiAttachment attachment, boolean parentUpdate, XWikiContext inputxcontext, boolean bTransaction) throws XWikiException
deleteXWikiAttachment
in interface XWikiAttachmentStoreInterface
XWikiException
Copyright © 2004–2022 XWiki. All rights reserved.