com.xpn.xwiki.store
Class XWikiHibernateAttachmentStore
java.lang.Object
com.xpn.xwiki.store.XWikiHibernateBaseStore
com.xpn.xwiki.store.XWikiHibernateAttachmentStore
- All Implemented Interfaces:
- XWikiAttachmentStoreInterface
public class XWikiHibernateAttachmentStore
- extends XWikiHibernateBaseStore
- implements XWikiAttachmentStoreInterface
Created by IntelliJ IDEA.
User: ludovic
Date: 10 mars 2006
Time: 14:02:58
To change this template use File | Settings | File Templates.
Field Summary |
private static org.apache.commons.logging.Log |
log
|
Method Summary |
void |
deleteXWikiAttachment(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext context,
boolean bTransaction)
|
void |
deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
void |
loadAttachmentArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
void |
loadAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
void |
saveAttachmentContent(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext context,
boolean bTransaction)
|
void |
saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
Methods inherited from class com.xpn.xwiki.store.XWikiHibernateBaseStore |
beginTransaction, beginTransaction, beginTransaction, beginTransaction, checkHibernate, cleanUp, endTransaction, endTransaction, getConfiguration, getConnections, getHibUrl, getNbConnections, getPath, getSchemaUpdateScript, getSession, getSessionFactory, getTransaction, isVirtual, makeMapping, makeMapping, setConfiguration, setDatabase, setHibUrl, setNbConnections, setPath, setSession, setSessionFactory, setTransaction, shutdownHibernate, updateSchema, updateSchema, updateSchema, updateSchema |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
XWikiHibernateAttachmentStore
public XWikiHibernateAttachmentStore(XWiki xwiki,
XWikiContext context)
- THis allows to initialize our storage engine.
The hibernate config file path is taken from xwiki.cfg
or directly in the WEB-INF directory.
- Parameters:
xwiki
- context
-
XWikiHibernateAttachmentStore
public XWikiHibernateAttachmentStore(java.lang.String hibpath)
- Initialize the storage engine with a specific path
This is used for tests.
- Parameters:
hibpath
-
saveAttachmentContent
public void saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
saveAttachmentContent
in interface XWikiAttachmentStoreInterface
- Throws:
XWikiException
saveAttachmentContent
public void saveAttachmentContent(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
saveAttachmentContent
in interface XWikiAttachmentStoreInterface
- Throws:
XWikiException
loadAttachmentContent
public void loadAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
loadAttachmentContent
in interface XWikiAttachmentStoreInterface
- Throws:
XWikiException
loadAttachmentArchive
public void loadAttachmentArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
loadAttachmentArchive
in interface XWikiAttachmentStoreInterface
- Throws:
XWikiException
deleteXWikiAttachment
public void deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
deleteXWikiAttachment
in interface XWikiAttachmentStoreInterface
- Throws:
XWikiException
deleteXWikiAttachment
public void deleteXWikiAttachment(XWikiAttachment attachment,
boolean parentUpdate,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
deleteXWikiAttachment
in interface XWikiAttachmentStoreInterface
- Throws:
XWikiException
Copyright 2003 Ludovic Dubost