|
Qizx/db 2.1 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qizx.api.XQuerySessionManager
Manager of simple XQuery sessions without access to a XML Library.
Provides a cache of Modules and a cache of transient documents, shared among the sessions created on this manager. This cache avoids reparsing XML documents if different sessions access it. It can detect a change on documents stored in the file-system and reload the document.
| Constructor Summary | |
XQuerySessionManager(ModuleResolver moduleResolver,
int transientDocumentCacheSize)
Creates a session manager. |
|
XQuerySessionManager(URL moduleBaseURI)
Creates a session manager with a default Module Resolver and a 8 Mb cache for parsed documents. |
|
| Method Summary | |
XQuerySession |
createSession()
Creates a new XQuery session. |
com.qizx.xdm.DocumentPool |
getDocumentCache()
For internal use. |
com.qizx.xquery.ModuleManager |
getModuleManager()
For internal use. |
ModuleResolver |
getModuleResolver()
Returns the current Resolver of XQuery modules. |
int |
getTransientDocumentCacheSize()
Gets the current maximum memory size for the document cache. |
void |
setDocumentCache(com.qizx.xdm.DocumentPool documentCache)
For internal use. |
void |
setModuleResolver(ModuleResolver resolver)
Defines a resolver of XQuery modules. |
int |
setTransientDocumentCacheSize(int size)
Sets the maximum memory size for the document cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XQuerySessionManager(URL moduleBaseURI)
moduleBaseURI - base URI for the default Module Resolver
public XQuerySessionManager(ModuleResolver moduleResolver,
int transientDocumentCacheSize)
moduleResolver - resolver used for modulestransientDocumentCacheSize - size in bytes of the document cache| Method Detail |
public XQuerySession createSession()
public com.qizx.xquery.ModuleManager getModuleManager()
public int setTransientDocumentCacheSize(int size)
size - maximum memory size in bytes. Decreasing this size will
flush the cache accordingly.
public int getTransientDocumentCacheSize()
public com.qizx.xdm.DocumentPool getDocumentCache()
public void setDocumentCache(com.qizx.xdm.DocumentPool documentCache)
public void setModuleResolver(ModuleResolver resolver)
resolver - a module resolverpublic ModuleResolver getModuleResolver()
|
© 2008 Axyana Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||