public interface RepositoryDelegate
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Call to close the delegate connection and any outstanding transactions will be closed.
|
void |
closeStatement()
Called when the
Statement the is closed. |
void |
commit() |
Connection |
createConnection(DriverInfo info)
Call to create the connection based on the implementation of this interface.
|
QueryResult |
execute(String query,
String language)
Call to execute the
query based on the specified JCR language. |
String |
explain(String query,
String language)
Generate the plan for the
query based on the specified JCR language. |
ConnectionInfo |
getConnectionInfo()
Call to get the connection information.
|
String |
getDescriptor(String descriptorKey)
Returns the value for the requested
descriptorKey |
Set<String> |
getRepositoryNames()
Called to get all the repository names currently available in the ModeShapeEngine.
|
boolean |
isValid(int timeout) |
boolean |
isWrapperFor(Class<?> iface) |
NodeType |
nodeType(String name)
Call to get
NodeType based on specified name |
List<NodeType> |
nodeTypes()
Call to get all the
NodeTypes defined. |
void |
rollback() |
<T> T |
unwrap(Class<T> iface) |
ConnectionInfo getConnectionInfo()
void closeStatement()
Statement the is closed. This enables the underlying connection to the JcrRepository remain open
until the statement is finished using it.void close()
Connection.close()NodeType nodeType(String name) throws RepositoryException
NodeType based on specified namename - RepositoryExceptionList<NodeType> nodeTypes() throws RepositoryException
NodeTypes defined.RepositoryExceptionQueryResult execute(String query, String language) throws RepositoryException
query based on the specified JCR language.query - is the query expression to executelanguage - is the JCR language the query should be executed based on.RepositoryExceptionString explain(String query, String language) throws RepositoryException
query based on the specified JCR language.query - is the query expression to executelanguage - is the JCR language the query should be executed based on.RepositoryExceptionConnection createConnection(DriverInfo info) throws SQLException
info - the driver informationSQLExceptionDriver.connect(String, java.util.Properties)void commit()
throws RepositoryException
RepositoryExceptionConnection.commit()void rollback()
throws RepositoryException
RepositoryExceptionConnection.rollback()boolean isValid(int timeout)
throws RepositoryException
timeout - RepositoryExceptionConnection.isValid(int)boolean isWrapperFor(Class<?> iface)
iface - Wrapper.isWrapperFor(java.lang.Class)<T> T unwrap(Class<T> iface) throws SQLException
T - iface - SQLExceptionWrapper.unwrap(java.lang.Class)Set<String> getRepositoryNames() throws RepositoryException
RepositoryExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.