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

The AbstractRepositoryDelegate provides the common logic for the implementation of the RepositoryDelegate
| Field Summary | |
|---|---|
| protected static Logger | LOGGER | 
| Constructor Summary | |
|---|---|
| AbstractRepositoryDelegate(String url,
                           Properties info) | |
| Method Summary | ||
|---|---|---|
|  void | close()Call to close the delegate connection and any outstanding transactions will be closed. | |
|  void | closeStatement()Called when the Statementthe is closed. | |
|  void | commit() | |
|  Connection | createConnection()Call to create the connection based on the implementation of this interface. | |
|  ConnectionInfo | getConnectionInfo()Call to get the connection information. | |
|  Repository | getRepository() | |
|  String | getRepositoryName() | |
|  Set<String> | getRepositoryNames()Called to get all the repository names currently available in the JcrEngine. | |
|  boolean | isWrapperFor(Class<?> iface) | |
|  void | rollback() | |
| protected  void | setRepository(Repository repository) | |
| protected  void | setRepositoryName(String repositoryName) | |
| protected  void | setRepositoryNames(Set<String> repositoryNames) | |
| 
 | unwrap(Class<T> iface) | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.modeshape.jdbc.delegate.RepositoryDelegate | 
|---|
| execute, getDescriptor, isValid, nodeType, nodeTypes | 
| Field Detail | 
|---|
protected static final Logger LOGGER
| Constructor Detail | 
|---|
public AbstractRepositoryDelegate(String url,
                                  Properties info)
| Method Detail | 
|---|
public ConnectionInfo getConnectionInfo()
RepositoryDelegate
getConnectionInfo in interface RepositoryDelegatepublic 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 RepositoryDelegateRepositoryDelegate.closeStatement()
public void commit()
            throws RepositoryException
commit in interface RepositoryDelegateRepositoryExceptionConnection.commit()public void close()
close in interface RepositoryDelegateConnection.close()
public void rollback()
              throws RepositoryException
rollback in interface RepositoryDelegateRepositoryExceptionConnection.rollback()
public Connection createConnection()
                            throws SQLException
RepositoryDelegate
createConnection in interface RepositoryDelegateSQLExceptionDriver.connect(String, java.util.Properties)public Repository getRepository()
protected void setRepository(Repository repository)
public String getRepositoryName()
protected void setRepositoryName(String repositoryName)
public Set<String> getRepositoryNames()
RepositoryDelegate
getRepositoryNames in interface RepositoryDelegateprotected void setRepositoryNames(Set<String> repositoryNames)
public boolean isWrapperFor(Class<?> iface)
isWrapperFor in interface RepositoryDelegateWrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface)
         throws SQLException
unwrap in interface RepositoryDelegateSQLExceptionWrapper.unwrap(java.lang.Class)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||