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.
|
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 |
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, wait
execute, explain, getDescriptor, isValid, nodeType, nodeTypes
protected final Logger logger
public AbstractRepositoryDelegate(String url, Properties info)
public ConnectionInfo getConnectionInfo()
RepositoryDelegate
getConnectionInfo
in interface RepositoryDelegate
public void closeStatement()
RepositoryDelegate
Statement
the is closed. This enables the underlying connection to the JcrRepository remain open
until the statement is finished using it.closeStatement
in interface RepositoryDelegate
public void commit() throws RepositoryException
commit
in interface RepositoryDelegate
RepositoryException
Connection.commit()
public void close()
RepositoryDelegate
close
in interface RepositoryDelegate
Connection.close()
public void rollback() throws RepositoryException
rollback
in interface RepositoryDelegate
RepositoryException
Connection.rollback()
public Connection createConnection(DriverInfo info) throws SQLException
RepositoryDelegate
createConnection
in interface RepositoryDelegate
info
- the driver informationSQLException
Driver.connect(String, java.util.Properties)
public String getRepositoryName()
protected void setRepositoryName(String repositoryName)
public Set<String> getRepositoryNames()
RepositoryDelegate
getRepositoryNames
in interface RepositoryDelegate
public boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface RepositoryDelegate
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface RepositoryDelegate
SQLException
Wrapper.unwrap(java.lang.Class)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.