com.xpn.xwiki.store
Class XWikiCacheStore
java.lang.Object
com.xpn.xwiki.store.XWikiCacheStore
- All Implemented Interfaces:
- XWikiCacheStoreInterface, XWikiStoreInterface
- public class XWikiCacheStore
- extends java.lang.Object
- implements XWikiCacheStoreInterface
Method Summary |
void |
cleanUp(XWikiContext context)
|
void |
createWiki(java.lang.String wikiName,
XWikiContext context)
|
void |
deleteLock(XWikiLock lock,
XWikiContext context,
boolean bTransaction)
|
void |
deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
void |
deleteXWikiDoc(XWikiDocument doc,
XWikiContext context)
|
boolean |
exists(XWikiDocument doc,
XWikiContext context)
|
void |
flushCache()
|
XWikiCache |
getCache()
|
java.util.List |
getClassList(XWikiContext context)
|
java.lang.String |
getKey(XWikiDocument doc,
XWikiContext context)
|
XWikiCache |
getPageExistCache()
|
XWikiStoreInterface |
getStore()
|
org.apache.commons.jrcs.rcs.Version[] |
getXWikiDocVersions(XWikiDocument doc,
XWikiContext context)
|
void |
initCache(int capacity,
int pageExistCacheCapacity,
XWikiContext context)
|
void |
loadAttachmentArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
void |
loadAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
XWikiLock |
loadLock(long docId,
XWikiContext context,
boolean bTransaction)
|
XWikiDocument |
loadXWikiDoc(XWikiDocument doc,
java.lang.String version,
XWikiContext context)
|
XWikiDocument |
loadXWikiDoc(XWikiDocument doc,
XWikiContext context)
|
void |
saveAttachmentContent(XWikiAttachment attachment,
boolean bParentUpdate,
XWikiContext context,
boolean bTransaction)
|
void |
saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
|
void |
saveLock(XWikiLock lock,
XWikiContext context,
boolean bTransaction)
|
void |
saveXWikiDoc(XWikiDocument doc,
XWikiContext context)
|
void |
saveXWikiDoc(XWikiDocument doc,
XWikiContext context,
boolean bTransaction)
|
java.util.List |
search(java.lang.String sql,
int nb,
int start,
XWikiContext context)
|
java.util.List |
searchDocuments(java.lang.String wheresql,
boolean distinctbyname,
int nb,
int start,
XWikiContext context)
|
java.util.List |
searchDocuments(java.lang.String wheresql,
boolean distinctbyname,
XWikiContext context)
|
java.util.List |
searchDocuments(java.lang.String wheresql,
int nb,
int start,
XWikiContext context)
|
java.util.List |
searchDocuments(java.lang.String wheresql,
XWikiContext context)
|
java.util.List |
searchDocumentsNames(java.lang.String wheresql,
int nb,
int start,
java.lang.String selectColumns,
XWikiContext context)
|
java.util.List |
searchDocumentsNames(java.lang.String wheresql,
int nb,
int start,
XWikiContext context)
|
java.util.List |
searchDocumentsNames(java.lang.String wheresql,
XWikiContext context)
|
void |
setCache(XWikiCache cache)
|
void |
setCacheCapacity(int capacity)
|
void |
setPageExistCache(XWikiCache pageExistCache)
|
void |
setPageExistCacheCapacity(int capacity)
|
void |
setStore(XWikiStoreInterface store)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
store
private XWikiStoreInterface store
cache
private XWikiCache cache
pageExistCache
private XWikiCache pageExistCache
cacheCapacity
private int cacheCapacity
pageExistCacheCapacity
private int pageExistCacheCapacity
XWikiCacheStore
public XWikiCacheStore(XWikiStoreInterface store,
XWikiContext context)
initCache
public void initCache(int capacity,
int pageExistCacheCapacity,
XWikiContext context)
- Specified by:
initCache
in interface XWikiCacheStoreInterface
setCacheCapacity
public void setCacheCapacity(int capacity)
- Specified by:
setCacheCapacity
in interface XWikiCacheStoreInterface
setPageExistCacheCapacity
public void setPageExistCacheCapacity(int capacity)
- Specified by:
setPageExistCacheCapacity
in interface XWikiCacheStoreInterface
getStore
public XWikiStoreInterface getStore()
- Specified by:
getStore
in interface XWikiCacheStoreInterface
setStore
public void setStore(XWikiStoreInterface store)
- Specified by:
setStore
in interface XWikiCacheStoreInterface
saveXWikiDoc
public void saveXWikiDoc(XWikiDocument doc,
XWikiContext context)
throws XWikiException
- Specified by:
saveXWikiDoc
in interface XWikiStoreInterface
- Throws:
XWikiException
saveXWikiDoc
public void saveXWikiDoc(XWikiDocument doc,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
saveXWikiDoc
in interface XWikiStoreInterface
- Throws:
XWikiException
flushCache
public void flushCache()
- Specified by:
flushCache
in interface XWikiCacheStoreInterface
getKey
public java.lang.String getKey(XWikiDocument doc,
XWikiContext context)
loadXWikiDoc
public XWikiDocument loadXWikiDoc(XWikiDocument doc,
XWikiContext context)
throws XWikiException
- Specified by:
loadXWikiDoc
in interface XWikiStoreInterface
- Throws:
XWikiException
loadXWikiDoc
public XWikiDocument loadXWikiDoc(XWikiDocument doc,
java.lang.String version,
XWikiContext context)
throws XWikiException
- Specified by:
loadXWikiDoc
in interface XWikiStoreInterface
- Throws:
XWikiException
deleteXWikiDoc
public void deleteXWikiDoc(XWikiDocument doc,
XWikiContext context)
throws XWikiException
- Specified by:
deleteXWikiDoc
in interface XWikiStoreInterface
- Throws:
XWikiException
getXWikiDocVersions
public org.apache.commons.jrcs.rcs.Version[] getXWikiDocVersions(XWikiDocument doc,
XWikiContext context)
throws XWikiException
- Specified by:
getXWikiDocVersions
in interface XWikiStoreInterface
- Throws:
XWikiException
getClassList
public java.util.List getClassList(XWikiContext context)
throws XWikiException
- Specified by:
getClassList
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocumentsNames
public java.util.List searchDocumentsNames(java.lang.String wheresql,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocumentsNames
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocumentsNames
public java.util.List searchDocumentsNames(java.lang.String wheresql,
int nb,
int start,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocumentsNames
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocumentsNames
public java.util.List searchDocumentsNames(java.lang.String wheresql,
int nb,
int start,
java.lang.String selectColumns,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocumentsNames
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocuments
public java.util.List searchDocuments(java.lang.String wheresql,
boolean distinctbyname,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocuments
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocuments
public java.util.List searchDocuments(java.lang.String wheresql,
boolean distinctbyname,
int nb,
int start,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocuments
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocuments
public java.util.List searchDocuments(java.lang.String wheresql,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocuments
in interface XWikiStoreInterface
- Throws:
XWikiException
searchDocuments
public java.util.List searchDocuments(java.lang.String wheresql,
int nb,
int start,
XWikiContext context)
throws XWikiException
- Specified by:
searchDocuments
in interface XWikiStoreInterface
- Throws:
XWikiException
saveAttachmentContent
public void saveAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
saveAttachmentContent
in interface XWikiStoreInterface
- Throws:
XWikiException
saveAttachmentContent
public void saveAttachmentContent(XWikiAttachment attachment,
boolean bParentUpdate,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
saveAttachmentContent
in interface XWikiStoreInterface
- Throws:
XWikiException
loadAttachmentContent
public void loadAttachmentContent(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
loadAttachmentContent
in interface XWikiStoreInterface
- Throws:
XWikiException
loadAttachmentArchive
public void loadAttachmentArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
loadAttachmentArchive
in interface XWikiStoreInterface
- Throws:
XWikiException
deleteXWikiAttachment
public void deleteXWikiAttachment(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
deleteXWikiAttachment
in interface XWikiStoreInterface
- Throws:
XWikiException
loadLock
public XWikiLock loadLock(long docId,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
loadLock
in interface XWikiStoreInterface
- Throws:
XWikiException
saveLock
public void saveLock(XWikiLock lock,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
saveLock
in interface XWikiStoreInterface
- Throws:
XWikiException
deleteLock
public void deleteLock(XWikiLock lock,
XWikiContext context,
boolean bTransaction)
throws XWikiException
- Specified by:
deleteLock
in interface XWikiStoreInterface
- Throws:
XWikiException
search
public java.util.List search(java.lang.String sql,
int nb,
int start,
XWikiContext context)
throws XWikiException
- Specified by:
search
in interface XWikiStoreInterface
- Throws:
XWikiException
cleanUp
public void cleanUp(XWikiContext context)
- Specified by:
cleanUp
in interface XWikiStoreInterface
createWiki
public void createWiki(java.lang.String wikiName,
XWikiContext context)
throws XWikiException
- Specified by:
createWiki
in interface XWikiStoreInterface
- Throws:
XWikiException
exists
public boolean exists(XWikiDocument doc,
XWikiContext context)
throws XWikiException
- Specified by:
exists
in interface XWikiStoreInterface
- Throws:
XWikiException
getCache
public XWikiCache getCache()
setCache
public void setCache(XWikiCache cache)
getPageExistCache
public XWikiCache getPageExistCache()
setPageExistCache
public void setPageExistCache(XWikiCache pageExistCache)
Copyright 2003 Ludovic Dubost