|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OracleRepository
OracleRepository is the entry point to a content repository.
Use the OracleRepositoryFactory class to create and configure an OracleRepository object. Then call login to create a JCR session.
OracleRepository objects are both Serializable and Referenceable, allowing them to be stored in a JNDI directory instead of being created and initialized each time.
| Field Summary | |
|---|---|
static java.lang.String |
FRAMEWORK_VERSION_DESCThe repository descriptor key for the version of the Oracle JCR framework. |
| Method Summary | |
|---|---|
CredentialsProvider |
getCredentialsProvider()Gets the CredentialsProvider used to generate a Credentials object when no Credentials object is supplied to the login method of Repository. |
OracleRepositoryConfiguration |
getRepositoryConfiguration()Gets the configuration of this repository. |
boolean |
isStrictSaveRefreshBehavior()Gets whether the behavior of the save and refresh methods of Item conforms strictly to the JSR-170 specification. |
void |
setCredentialsProvider(CredentialsProvider cp)Sets the CredentialsProvider used to generate a Credentials object when no Credentials object is supplied to the login method of Repository. |
void |
setStrictSaveRefreshBehavior(boolean strict)Sets whether the behavior of the save and refresh methods of Item conforms strictly to the JSR-170 specification. |
| Methods inherited from interface javax.jcr.Repository |
|---|
getDescriptor, getDescriptorKeys, login, login, login, login |
| Methods inherited from interface javax.naming.Referenceable |
|---|
getReference |
| Field Detail |
|---|
static final java.lang.String FRAMEWORK_VERSION_DESC
| Method Detail |
|---|
OracleRepositoryConfiguration getRepositoryConfiguration()
CredentialsProvider getCredentialsProvider()
login method of Repository.void setCredentialsProvider(CredentialsProvider cp)
login method of Repository.cp - the CredentialsProvider, or null if noneboolean isStrictSaveRefreshBehavior()
save and refresh methods of Item conforms strictly to the JSR-170 specification.
If true, save and refresh can only be called on nodes of type nt:file, nt:folder, and ojcr:symbolicLink. Calling these methods on nodes of other types will throw a ConstraintViolationException. This is the default.
If false, save and refresh can be called on any node or property. Calling these methods on properties or nodes whose node type is not nt:file, nt:folder, or ojcr:symbolicLink will save or refresh the containing file, folder, or symbolic link.
void setStrictSaveRefreshBehavior(boolean strict)
save and refresh methods of Item conforms strictly to the JSR-170 specification.
If true, save and refresh can only be called on nodes of type nt:file, nt:folder, and ojcr:symbolicLink. Calling these methods on nodes of other types will throw a ConstraintViolationException. This is the default.
If false, save and refresh can be called on any node or property. Calling these methods on properties or nodes whose node type is not nt:file, nt:folder, or ojcr:symbolicLink will save or refresh the containing file, folder, or symbolic link.
strict - the behavior; see description
|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||