|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A object which can provide documents and document information.
In the case of statefull connections to DMS, this should represent a single connection to the DMS (pooling will be handled by the infrastructure).
DocumentProvider can support transaction isolation levels very similar to java.sql.Connections. If the DocumentProvider doesn't support transaction isolation levels, it should always report TRANSACTION_NONE (i.e. it shouldn't thrown an exception).
Field Summary | |
static int |
TRANSACTION_NONE
Deprecated. Isolation level for no transaction support. |
static int |
TRANSACTION_READ_COMMITTED
Deprecated. Isolation level for dirty reads are prevented; non-repeatable reads and phantom reads can occur. |
static int |
TRANSACTION_READ_UNCOMMITTED
Deprecated. Isolation level for dirty reads, non-repeatable reads and phantom reads can occur. |
static int |
TRANSACTION_REPEATABLE_READ
Deprecated. Isolation level for dirty reads and non-repeatable reads are prevented; phantom reads can occur. |
static int |
TRANSACTION_SERIALIZABLE
Deprecated. Isolation level for dirty reads, non-repeatable reads and phantom reads are prevented. |
Method Summary | |
void |
close()
Deprecated. Close the provider down. |
DocumentIterator |
findDocumentIds(Search params)
Deprecated. Return the set of String document ids of documents which match the given search parameters. |
DocumentIterator |
findDocumentMetadata(Search params)
Deprecated. Return the set of DocumentMetadataDefs which match the given search parameters object. |
DocumentIterator |
findDocuments(Search params)
Deprecated. Return the set of DocumentDefs which match the given search parameters object. |
DocumentDef |
getDocument(String id)
Deprecated. Return the DocumentDef with the given String document id. |
DocumentMetadataDef |
getDocumentMetadata(String id)
Deprecated. Return the DocumentMetadataDef with the given String document id. |
Timestamp |
getDocumentModifiedDate(String id)
Deprecated. Get the last modified timestamp for the given document id. |
DocumentSchemaDef |
getSchema(String schemaName)
Deprecated. Return the named document schema def (null if does not exist). |
DocumentIterator |
getSchemaNames()
Deprecated. Return the list of schema names supported in this DMS. |
Map |
getSchemas()
Deprecated. Return the map (name to DocumentSchemaDef) of all the schemas supported in the system. |
int |
getTransactionIsolation()
Deprecated. Get the document provider's current transaction isolation level. |
void |
init(Properties properties)
Deprecated. Initialize the DocumentProvider based upon the specified configuration properties. |
void |
reset()
Deprecated. Reset the connection internally to a fresh state. |
void |
setTransactionIsolation(int level)
Deprecated. Set the document provider's transaction isolation level. |
Field Detail |
public static final int TRANSACTION_NONE
Connection.TRANSACTION_NONE
,
Constant Field Valuespublic static final int TRANSACTION_READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTED
,
Constant Field Valuespublic static final int TRANSACTION_READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTED
,
Constant Field Valuespublic static final int TRANSACTION_REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READ
,
Constant Field Valuespublic static final int TRANSACTION_SERIALIZABLE
Connection.TRANSACTION_SERIALIZABLE
,
Constant Field ValuesMethod Detail |
public void close() throws DocumentException
This will be called before the provider is dereferenced; it should close any resources opened by init() or internally. The provider instance should not be used after this method has been invoked.
DocumentException
- thrown on an error.public DocumentIterator findDocumentIds(Search params) throws DocumentException
params
- the search parameters.
DocumentException
- thrown on an error.public DocumentIterator findDocumentMetadata(Search params) throws DocumentException
The implementor of DocumentProvider will need to map the parameters into the native search mechanism.
params
- the search parameters.
DocumentException
- thrown on an error.public DocumentIterator findDocuments(Search params) throws DocumentException
The implementor of DocumentProvider will need to map the parameters into the native search mechanism.
params
- the search parameters.
DocumentException
- thrown on an error.public DocumentDef getDocument(String id) throws DocumentException
id
- the document id.
DocumentException
- thrown on an error.public DocumentMetadataDef getDocumentMetadata(String id) throws DocumentException
id
- the document id.
DocumentException
- thrown on an error.public Timestamp getDocumentModifiedDate(String id) throws DocumentException
id
- the document id.
DocumentException
public DocumentSchemaDef getSchema(String schemaName) throws DocumentException
schemaName
- the name of the schema to find.
DocumentException
- thrown on an errorpublic DocumentIterator getSchemaNames() throws DocumentException
DocumentException
- thrown on an error.public Map getSchemas() throws DocumentException
This operation could be time expensive.
DocumentException
- thrown on an errorjpublic int getTransactionIsolation() throws DocumentException
DocumentException
public void init(Properties properties) throws DocumentException
This will be called after the DocumentProvider has been instantiated.
properties
- the configuration properties
DocumentException
- thrown on an error.public void reset() throws DocumentException
This might include rolling back a transaction and clearing out any internal state.
DocumentException
- thrown on an error.public void setTransactionIsolation(int level) throws DocumentException
DocumentException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |