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

The LocalRepositoryDelegate provides a local Repository implementation to access the Jcr layer via JNDI Lookup.
| Nested Class Summary | |
|---|---|
protected class |
LocalRepositoryDelegate.JNDIConnectionInfo
|
| Field Summary | |
|---|---|
static TextDecoder |
URL_DECODER
|
| Constructor Summary | |
|---|---|
LocalRepositoryDelegate(String url,
Properties info,
JcrDriver.JcrContextFactory contextFactory)
|
|
| Method Summary | ||
|---|---|---|
void |
close()
Call to close the delegate connection. |
|
void |
commit()
|
|
Connection |
createConnection()
Call to create the connection based on the implementation of this interface. |
|
DatabaseMetaData |
createMetaData(JcrConnection connection)
Call to create the DatabaseMetaData |
|
QueryResult |
execute(String query,
String language)
This execute method is used for redirection so that the JNDI implementation can control calling execute. |
|
ConnectionInfo |
getConnectionInfo()
Call to get the connection information. |
|
Set<String> |
getRepositoryNames()
Called to get all the repository names currently available in the JcrEngine. |
|
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()
|
|
protected Session |
session()
|
|
|
unwrap(Class<T> iface)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TextDecoder URL_DECODER
| Constructor Detail |
|---|
public LocalRepositoryDelegate(String url,
Properties info,
JcrDriver.JcrContextFactory contextFactory)
| Method Detail |
|---|
protected Session session()
throws RepositoryException
RepositoryException
public NodeType nodeType(String name)
throws RepositoryException
RepositoryDelegateNodeType based on specified name
nodeType in interface RepositoryDelegateRepositoryException
public List<NodeType> nodeTypes()
throws RepositoryException
RepositoryDelegateNodeTypes defined.
nodeTypes in interface RepositoryDelegateRepositoryException
public QueryResult execute(String query,
String language)
throws RepositoryException
execute in interface RepositoryDelegatequery - is the sql query to executelanguage - is the JCR language the query should be executed based on.
RepositoryExceptionStatement.execute(java.lang.String)
public Connection createConnection()
throws SQLException
RepositoryDelegate
createConnection in interface RepositoryDelegateSQLExceptionpublic ConnectionInfo getConnectionInfo()
RepositoryDelegate
getConnectionInfo in interface RepositoryDelegate
public void commit()
throws RepositoryException
commit in interface RepositoryDelegateRepositoryExceptionConnection.commit()
public void rollback()
throws RepositoryException
rollback in interface RepositoryDelegateRepositoryExceptionConnection.rollback()public void close()
close in interface RepositoryDelegateConnection.close()public boolean isWrapperFor(Class<?> iface)
isWrapperFor in interface RepositoryDelegateiface -
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface)
throws SQLException
unwrap in interface RepositoryDelegateT - iface -
SQLExceptionWrapper.unwrap(java.lang.Class)
public boolean isValid(int timeout)
throws RepositoryException
isValid in interface RepositoryDelegateRepositoryExceptionConnection.isValid(int)public Set<String> getRepositoryNames()
RepositoryDelegate
getRepositoryNames in interface RepositoryDelegate
public DatabaseMetaData createMetaData(JcrConnection connection)
throws RepositoryException
RepositoryDelegate
createMetaData in interface RepositoryDelegateRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||