|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jdbc.delegate.AbstractRepositoryDelegate
org.modeshape.jdbc.delegate.LocalRepositoryDelegate
public class LocalRepositoryDelegate

The LocalRepositoryDelegate provides a local Repository implementation to access the Jcr layer via JNDI Lookup.
| Field Summary | |
|---|---|
static RepositoryDelegateFactory |
FACTORY
|
protected static Set<LocalSession> |
TRANSACTION_IDS
|
| Fields inherited from class org.modeshape.jdbc.delegate.AbstractRepositoryDelegate |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
LocalRepositoryDelegate(String url,
Properties info,
LocalJcrDriver.JcrContextFactory contextFactory)
|
|
| Method Summary | ||
|---|---|---|
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)
The implementor must return a @link ConnectionInfo that provides the information that details r |
|
protected void |
createRepository()
Implementor is responsible for creating the repository. |
|
QueryResult |
execute(String query,
String language)
This execute method is used for redirection so that the JNDI implementation can control calling execute. |
|
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. |
|
void |
rollback()
|
|
|
unwrap(Class<T> iface)
|
|
| Methods inherited from class org.modeshape.jdbc.delegate.AbstractRepositoryDelegate |
|---|
commit, createConnection, getConnectionInfo, getRepository, getRepositoryName, getRepositoryNames, isWrapperFor, setRepository, setRepositoryName, setRepositoryNames |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RepositoryDelegateFactory FACTORY
protected static final Set<LocalSession> TRANSACTION_IDS
| Constructor Detail |
|---|
public LocalRepositoryDelegate(String url,
Properties info,
LocalJcrDriver.JcrContextFactory contextFactory)
| Method Detail |
|---|
protected ConnectionInfo createConnectionInfo(String url,
Properties info)
AbstractRepositoryDelegate
protected LocalJcrDriver.JcrContextFactory getJcrContext()
public String getDescriptor(String descriptorKey)
descriptorKey
RepositoryDelegate.getDescriptor(java.lang.String)
public NodeType nodeType(String name)
throws RepositoryException
RepositoryDelegateNodeType based on specified name
RepositoryException
public List<NodeType> nodeTypes()
throws RepositoryException
RepositoryDelegateNodeTypes defined.
RepositoryException
public QueryResult execute(String query,
String language)
throws RepositoryException
query - is the sql query to executelanguage - is the JCR language the query should be executed based on.
RepositoryExceptionStatement.execute(java.lang.String)
protected void createRepository()
throws SQLException
AbstractRepositoryDelegate
SQLException
public 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
AbstractRepositoryDelegate
unwrap in interface RepositoryDelegateunwrap in class AbstractRepositoryDelegateT - iface -
SQLExceptionWrapper.unwrap(java.lang.Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||