|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.document.ref.DefaultDocumentProvider
An abstract base implementation of a DocumentProvider.
This can be used by implementors as a starting point for writing a Doc Mgmt SPI implementation.
Fields inherited from interface com.beasys.commerce.axiom.document.spi.DocumentProvider |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
DefaultDocumentProvider()
|
Method Summary | |
DocumentIterator |
findDocumentIds(Search params)
Return the set of document ids which match the given search parameters. |
DocumentDef |
getDocument(java.lang.String id)
Return the Document with the given id. |
DocumentMetadataDef |
getDocumentMetadata(java.lang.String id)
Return the DocumentMetadata with the given id. |
java.sql.Timestamp |
getDocumentModifiedDate(java.lang.String id)
Return the last modified date of the Document with the given id. |
int |
getTransactionIsolation()
Get the document provider's current transaction isolation level. |
void |
setTransactionIsolation(int level)
Set the document provider's transaction isolation level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.beasys.commerce.axiom.document.spi.DocumentProvider |
close, findDocumentMetadata, findDocuments, getSchema, getSchemaNames, getSchemas, init, reset |
Constructor Detail |
public DefaultDocumentProvider()
Method Detail |
public int getTransactionIsolation() throws DocumentException
getTransactionIsolation
in interface DocumentProvider
public void setTransactionIsolation(int level) throws DocumentException
This method does nothing.
setTransactionIsolation
in interface DocumentProvider
public DocumentIterator findDocumentIds(Search params) throws DocumentException
This will call DocumentProvider.findDocumentMetadata(com.beasys.commerce.foundation.expression.Search)
and extract the ids
from the metadata.
findDocumentIds
in interface DocumentProvider
com.beasys.commerce.axiom.document.spi.DocumentProvider
params
- the search parameters.DocumentException
- thrown on an error.public DocumentMetadataDef getDocumentMetadata(java.lang.String id) throws DocumentException
This uses DocumentProvider.findDocumentMetadata(com.beasys.commerce.foundation.expression.Search)
to do it.
getDocumentMetadata
in interface DocumentProvider
com.beasys.commerce.axiom.document.spi.DocumentProvider
id
- the document id.DocumentException
- thrown on an error.public DocumentDef getDocument(java.lang.String id) throws DocumentException
This uses DocumentProvider.findDocuments(com.beasys.commerce.foundation.expression.Search)
to do it.
getDocument
in interface DocumentProvider
com.beasys.commerce.axiom.document.spi.DocumentProvider
id
- the document id.DocumentException
- thrown on an error.public java.sql.Timestamp getDocumentModifiedDate(java.lang.String id) throws DocumentException
This uses getDocumentMetadata(java.lang.String)
to do it.
getDocumentModifiedDate
in interface DocumentProvider
com.beasys.commerce.axiom.document.spi.DocumentProvider
id
- the document id.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |