|
||||||||||
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 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 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 RepositoryDelegate
public 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 RepositoryDelegate
RepositoryDelegate.closeStatement()
public void commit() throws RepositoryException
commit
in interface RepositoryDelegate
RepositoryException
Connection.commit()
public void close()
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 information
SQLException
Driver.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 RepositoryDelegate
protected void setRepositoryNames(Set<String> repositoryNames)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |