public class LocalRepositoryDelegate extends AbstractRepositoryDelegate
| Modifier and Type | Field and Description |
|---|---|
static RepositoryDelegateFactory |
FACTORY |
protected static Set<LocalSession> |
TRANSACTION_IDS |
logger| Constructor and Description |
|---|
LocalRepositoryDelegate(String url,
Properties info,
LocalJcrDriver.JcrContextFactory contextFactory) |
| 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. |
protected ConnectionInfo |
createConnectionInfo(String url,
Properties info)
Returns a
ConnectionInfo object which represents the information of a specific connection, from a
given url format and some Properties |
QueryResult |
execute(String query,
String language)
This execute method is used for redirection so that the JNDI implementation can control calling execute.
|
String |
explain(String query,
String language)
Generate the plan for the
query based on the specified JCR language. |
String |
getDescriptor(String descriptorKey)
Returns the value for the requested
descriptorKey |
protected LocalJcrDriver.JcrContextFactory |
getJcrContext() |
boolean |
isValid(int timeout) |
NodeType |
nodeType(String name)
Call to get
NodeType based on specified name |
List<NodeType> |
nodeTypes()
Call to get all the
NodeTypes defined. |
protected void |
retrieveRepository()
Implementor is responsible for creating the repository.
|
void |
rollback() |
<T> T |
unwrap(Class<T> iface) |
commit, createConnection, getConnectionInfo, getRepository, getRepositoryName, getRepositoryNames, isWrapperFor, setRepository, setRepositoryName, setRepositoryNamespublic static final RepositoryDelegateFactory FACTORY
protected static final Set<LocalSession> TRANSACTION_IDS
public LocalRepositoryDelegate(String url, Properties info, LocalJcrDriver.JcrContextFactory contextFactory)
protected ConnectionInfo createConnectionInfo(String url, Properties info)
AbstractRepositoryDelegateConnectionInfo object which represents the information of a specific connection, from a
given url format and some Propertiesurl - a non-null string which represents a jdbc urlinfo - a non-null Properties instance which may contain extra information needed by the connectionConnectionInfo instance, never nullprotected LocalJcrDriver.JcrContextFactory getJcrContext()
public String getDescriptor(String descriptorKey)
descriptorKeyRepositoryDelegate.getDescriptor(java.lang.String)public NodeType nodeType(String name) throws RepositoryException
RepositoryDelegateNodeType based on specified nameRepositoryExceptionpublic List<NodeType> nodeTypes() throws RepositoryException
RepositoryDelegateNodeTypes defined.RepositoryExceptionpublic QueryResult execute(String query, String language) throws RepositoryException
query - is the query expression to executelanguage - is the JCR language the query should be executed based on.RepositoryExceptionStatement.execute(java.lang.String)public String explain(String query, String language) throws RepositoryException
RepositoryDelegatequery based on the specified JCR language.query - is the query expression to executelanguage - is the JCR language the query should be executed based on.RepositoryExceptionprotected void retrieveRepository()
throws SQLException
AbstractRepositoryDelegateSQLExceptionpublic boolean isValid(int timeout)
throws RepositoryException
RepositoryExceptionConnection.isValid(int)public void closeStatement()
Statement the is closed. This enables the underlying connection to the JcrRepository remain open
until the statement is finished using it.closeStatement in interface RepositoryDelegatecloseStatement in class AbstractRepositoryDelegateRepositoryDelegate.closeStatement()public void close()
close in interface RepositoryDelegateclose in class AbstractRepositoryDelegateConnection.close()public void rollback()
throws RepositoryException
rollback in interface RepositoryDelegaterollback in class AbstractRepositoryDelegateRepositoryExceptionConnection.rollback()public <T> T unwrap(Class<T> iface) throws SQLException
AbstractRepositoryDelegateunwrap in interface RepositoryDelegateunwrap in class AbstractRepositoryDelegateT - iface - SQLExceptionWrapper.unwrap(java.lang.Class)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.