|
||||||||||
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 NodeType s 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
RepositoryDelegate
NodeType
based on specified name
nodeType
in interface RepositoryDelegate
RepositoryException
public List<NodeType> nodeTypes() throws RepositoryException
RepositoryDelegate
NodeType
s defined.
nodeTypes
in interface RepositoryDelegate
RepositoryException
public QueryResult execute(String query, String language) throws RepositoryException
execute
in interface RepositoryDelegate
query
- is the sql query to executelanguage
- is the JCR language the query
should be executed based on.
RepositoryException
Statement.execute(java.lang.String)
public Connection createConnection() throws SQLException
RepositoryDelegate
createConnection
in interface RepositoryDelegate
SQLException
public ConnectionInfo getConnectionInfo()
RepositoryDelegate
getConnectionInfo
in interface RepositoryDelegate
public void commit() throws RepositoryException
commit
in interface RepositoryDelegate
RepositoryException
Connection.commit()
public void rollback() throws RepositoryException
rollback
in interface RepositoryDelegate
RepositoryException
Connection.rollback()
public void close()
close
in interface RepositoryDelegate
Connection.close()
public boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface RepositoryDelegate
iface
-
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface RepositoryDelegate
T
- iface
-
SQLException
Wrapper.unwrap(java.lang.Class)
public boolean isValid(int timeout) throws RepositoryException
isValid
in interface RepositoryDelegate
RepositoryException
Connection.isValid(int)
public Set<String> getRepositoryNames()
RepositoryDelegate
getRepositoryNames
in interface RepositoryDelegate
public DatabaseMetaData createMetaData(JcrConnection connection) throws RepositoryException
RepositoryDelegate
createMetaData
in interface RepositoryDelegate
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |