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 |
Collection<NodeType> |
nodeTypes()
Call to get all the
NodeType s 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
- RepositoryException
Collection<NodeType> nodeTypes() throws RepositoryException
NodeType
s defined.RepositoryException
QueryResult 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.RepositoryException
String 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.RepositoryException
Connection createConnection(DriverInfo info) throws SQLException
info
- the driver informationSQLException
Driver.connect(String, java.util.Properties)
void commit() throws RepositoryException
RepositoryException
Connection.commit()
void rollback() throws RepositoryException
RepositoryException
Connection.rollback()
boolean isValid(int timeout) throws RepositoryException
timeout
- RepositoryException
Connection.isValid(int)
boolean isWrapperFor(Class<?> iface)
iface
- Wrapper.isWrapperFor(java.lang.Class)
<T> T unwrap(Class<T> iface) throws SQLException
T
- iface
- SQLException
Wrapper.unwrap(java.lang.Class)
Set<String> getRepositoryNames() throws RepositoryException
RepositoryException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.