|
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 |
| Constructor Detail |
public DefaultDocumentProvider()
| Method Detail |
public int getTransactionIsolation()
throws DocumentException
public void setTransactionIsolation(int level)
throws DocumentException
This method does nothing.
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.
params - the search parameters.
public DocumentMetadataDef getDocumentMetadata(java.lang.String id)
throws DocumentException
This uses DocumentProvider.findDocumentMetadata(com.beasys.commerce.foundation.expression.Search) to do it.
id - the document id.
public DocumentDef getDocument(java.lang.String id)
throws DocumentException
This uses DocumentProvider.findDocuments(com.beasys.commerce.foundation.expression.Search) to do it.
id - the document id.
public java.sql.Timestamp getDocumentModifiedDate(java.lang.String id)
throws DocumentException
This uses getDocumentMetadata(java.lang.String) to do it.
id - the document id.
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||