public abstract class AbstractRepositoryDelegate extends Object implements RepositoryDelegate
RepositoryDelegate| Constructor and Description |
|---|
AbstractRepositoryDelegate(String url,
Properties info) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Call to close the delegate connection and any outstanding transactions will be closed.
|
void |
closeStatement()
Called when the
Statement the is closed. |
void |
commit() |
Connection |
createConnection(DriverInfo info)
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 ModeShapeEngine.
|
boolean |
isWrapperFor(Class<?> iface) |
void |
rollback() |
protected void |
setRepository(Repository repository) |
protected void |
setRepositoryName(String repositoryName) |
protected void |
setRepositoryNames(Set<String> repositoryNames) |
<T> T |
unwrap(Class<T> iface) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, explain, getDescriptor, isValid, nodeType, nodeTypesprotected final Logger logger
public AbstractRepositoryDelegate(String url, Properties info)
public ConnectionInfo getConnectionInfo()
RepositoryDelegategetConnectionInfo 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(DriverInfo info) throws SQLException
RepositoryDelegatecreateConnection in interface RepositoryDelegateinfo - the driver informationSQLExceptionDriver.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()
RepositoryDelegategetRepositoryNames in interface RepositoryDelegatepublic 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)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.