|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xaj.core.AbstractDiscoverableXmlDb net.sf.xaj.web.XmlDbWebRemoteService
public class XmlDbWebRemoteService
An XmlDb faŤade that delegates tasks to a remote XmlDb web service.
The configurable properties of this class are:
SerializableTempFile
's constructor
for saving during serialization. In this way serialized results, i.e.
cached results, can be persisted after the JVM terminates. Defaults to
nothing, meaning the SerializeableTempFile will serialize the file contents
directly tot he serialized output stream.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.xaj.XmlDb |
---|
XmlDb.BatchTaskResult, XmlDb.SearchResultsMetadata, XmlDb.State, XmlDb.XQuerySearchCriteria, XmlDb.XQuerySearchResults |
Field Summary | |
---|---|
static java.lang.String |
TEMP_FILE_PREFIX
The prefix used for temp files created by this service. |
static java.lang.String |
TEMP_FILE_SUFFIX
The suffix used for temp files created by this service. |
Fields inherited from class net.sf.xaj.core.AbstractDiscoverableXmlDb |
---|
DEFAULT_SHUTDOWN_EXECUTOR_WAIT_SECS |
Constructor Summary | |
---|---|
XmlDbWebRemoteService()
|
Method Summary | |
---|---|
boolean |
delete(java.io.Serializable id)
Delete an XML resource based on its ID. |
java.lang.Integer |
deleteByXQuery(XmlDb.XQuerySearchCriteria criteria)
Delete a set of XML resources that match the results of an XQuery. |
XmlDb.XQuerySearchResults |
executeXQuery(XmlDb.XQuerySearchCriteria criteria)
Execute an XQuery program and return the results. |
XmlResource |
get(java.io.Serializable id)
Get an XML resource based on its ID. |
javax.xml.parsers.DocumentBuilderFactory |
getDocumentBuilderFactory()
|
org.apache.commons.httpclient.HttpClient |
getHttpClient()
|
java.lang.String |
getListVariableDelimiter()
|
java.lang.String |
getListVariableSplitDelimiter()
|
java.io.File |
getSaveDir()
|
protected BasicBatchTransactionHolder |
getTransactionHolder()
Get a BasicBatchTransactionHolder implementation inside of a transaction. |
protected java.lang.Object |
getTransactionHolderKey()
Get the object the transaction holder is bound to for a given thread. |
javax.xml.transform.TransformerFactory |
getTransformerFactory()
|
XmlDb |
getXmlDb()
Get the XmlDb instance represented by this service key. |
java.lang.String |
getXmlDbBatchUrl()
|
java.lang.String |
getXmlDbQueryUrl()
|
java.lang.String |
getXmlDbServiceName()
|
java.lang.String |
getXmlDbStoreUrl()
|
boolean |
isIncludeMachineNameInTempFiles()
|
void |
setDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory)
|
void |
setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
|
void |
setIncludeMachineNameInTempFiles(boolean includeMachineNameInTempFiles)
|
void |
setListVariableDelimiter(java.lang.String listVariableDelimiter)
|
void |
setListVariableSplitDelimiter(java.lang.String listVariableSplitDelimiter)
|
void |
setSaveDir(java.io.File saveDir)
|
void |
setTransformerFactory(javax.xml.transform.TransformerFactory transformerFactory)
|
void |
setXmlDbBatchUrl(java.lang.String xmlDbBatchUrl)
|
void |
setXmlDbQueryUrl(java.lang.String xmlDbQueryUrl)
|
void |
setXmlDbServiceName(java.lang.String xmlDbServiceName)
|
void |
setXmlDbStoreUrl(java.lang.String xmlDbStoreUrl)
|
java.io.Serializable |
storeXml(XmlResource resource)
Store an XML resource in the DB. |
Methods inherited from class net.sf.xaj.core.AbstractDiscoverableXmlDb |
---|
close, doClose, doInit, getExecutor, getServiceKey, getShutdownExecutorWaitSecs, getState, getTransactionTemplate, init, isShutdownExecutorServiceOnClose, processBatch, setExecutor, setServiceKey, setShutdownExecutorServiceOnClose, setShutdownExecutorWaitSecs, setTransactionTemplate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMP_FILE_PREFIX
public static final java.lang.String TEMP_FILE_SUFFIX
Constructor Detail |
---|
public XmlDbWebRemoteService()
Method Detail |
---|
public XmlDb getXmlDb()
DiscoverableXmlDb
getXmlDb
in interface DiscoverableXmlDb
getXmlDb
in class AbstractDiscoverableXmlDb
protected BasicBatchTransactionHolder getTransactionHolder()
AbstractDiscoverableXmlDb
getTransactionHolder
in class AbstractDiscoverableXmlDb
protected java.lang.Object getTransactionHolderKey()
AbstractDiscoverableXmlDb
getTransactionHolderKey
in class AbstractDiscoverableXmlDb
public boolean delete(java.io.Serializable id)
XmlDb
id
- the ID of the resource to delete
public java.lang.Integer deleteByXQuery(XmlDb.XQuerySearchCriteria criteria)
XmlDb
criteria
- the XQuery criteria
public XmlDb.XQuerySearchResults executeXQuery(XmlDb.XQuerySearchCriteria criteria)
XmlDb
Note that some implementations might have requirements as to how
this list is garbage collected or treated once finished. Users of this
API should call List.clear()
when finished using the returned
List instance so that the implementation can free any required resources.
criteria
- the XQuery search criteria to execute
public XmlResource get(java.io.Serializable id)
XmlDb
id
- the ID of the resource to get
public java.io.Serializable storeXml(XmlResource resource)
XmlDb
resource
- the resource to store
public javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
public void setDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory)
documentBuilderFactory
- the documentBuilderFactory to setpublic org.apache.commons.httpclient.HttpClient getHttpClient()
public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
httpClient
- the httpClient to setpublic javax.xml.transform.TransformerFactory getTransformerFactory()
public void setTransformerFactory(javax.xml.transform.TransformerFactory transformerFactory)
transformerFactory
- the transformerFactory to setpublic java.lang.String getXmlDbQueryUrl()
public void setXmlDbQueryUrl(java.lang.String xmlDbQueryUrl)
xmlDbQueryUrl
- the xmlDbQueryUrl to setpublic java.lang.String getXmlDbServiceName()
public void setXmlDbServiceName(java.lang.String xmlDbServiceName)
xmlDbServiceName
- the xmlDbServiceName to setpublic java.lang.String getXmlDbBatchUrl()
public void setXmlDbBatchUrl(java.lang.String xmlDbBatchUrl)
xmlDbBatchUrl
- the xmlDbBatchUrl to setpublic java.lang.String getListVariableDelimiter()
public java.lang.String getXmlDbStoreUrl()
public void setXmlDbStoreUrl(java.lang.String xmlDbStoreUrl)
xmlDbStoreUrl
- the xmlDbStoreUrl to setpublic void setListVariableDelimiter(java.lang.String listVariableDelimiter)
listVariableDelimiter
- the listVariableDelimiter to setpublic java.lang.String getListVariableSplitDelimiter()
public void setListVariableSplitDelimiter(java.lang.String listVariableSplitDelimiter)
listVariableSplitDelimiter
- the listVariableSplitDelimiter to setpublic java.io.File getSaveDir()
public void setSaveDir(java.io.File saveDir)
saveDir
- the saveDir to setpublic boolean isIncludeMachineNameInTempFiles()
public void setIncludeMachineNameInTempFiles(boolean includeMachineNameInTempFiles)
includeMachineNameInTempFiles
- the includeMachineNameInTempFiles to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |