|
||||||||||
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 |
---|
Fields inherited from class org.modeshape.jdbc.delegate.AbstractRepositoryDelegate |
---|
LOGGER |
Constructor Summary | |
---|---|
LocalRepositoryDelegate(String url,
Properties info,
JcrDriver.JcrContextFactory contextFactory)
|
Method Summary | ||
---|---|---|
void |
close()
Call to close the delegate connection. |
|
void |
commit()
|
|
protected ConnectionInfo |
createConnectionInfo(String url,
Properties info)
|
|
protected void |
createRepository()
|
|
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 JcrDriver.JcrContextFactory |
getJcrContext()
|
|
protected boolean |
isSessionAvailable()
|
|
boolean |
isValid(int timeout)
|
|
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 org.modeshape.jdbc.delegate.AbstractRepositoryDelegate |
---|
createConnection, createMetaData, 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 |
Constructor Detail |
---|
public LocalRepositoryDelegate(String url, Properties info, JcrDriver.JcrContextFactory contextFactory)
Method Detail |
---|
protected ConnectionInfo createConnectionInfo(String url, Properties info)
createConnectionInfo
in class AbstractRepositoryDelegate
protected Session session() throws RepositoryException
RepositoryException
protected boolean isSessionAvailable()
isSessionAvailable
in class AbstractRepositoryDelegate
protected JcrDriver.JcrContextFactory getJcrContext()
public String getDescriptor(String descriptorKey)
descriptorKey
RepositoryDelegate.getDescriptor(java.lang.String)
public NodeType nodeType(String name) throws RepositoryException
RepositoryDelegate
NodeType
based on specified name
RepositoryException
public List<NodeType> nodeTypes() throws RepositoryException
RepositoryDelegate
NodeType
s 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.
RepositoryException
Statement.execute(java.lang.String)
protected void createRepository() throws SQLException
createRepository
in class AbstractRepositoryDelegate
SQLException
public boolean isValid(int timeout) throws RepositoryException
RepositoryException
Connection.isValid(int)
public void commit() throws RepositoryException
RepositoryException
Connection.commit()
public void rollback() throws RepositoryException
RepositoryException
Connection.rollback()
public void close()
Connection.close()
public <T> T unwrap(Class<T> iface) throws SQLException
AbstractRepositoryDelegate
unwrap
in interface RepositoryDelegate
unwrap
in class AbstractRepositoryDelegate
T
- iface
-
SQLException
Wrapper.unwrap(java.lang.Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |