|
||||||||||
| 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 | ||
|---|---|---|
Connection |
createConnection()
Call to create the connection based on the implementation of this interface. |
|
protected abstract ConnectionInfo |
createConnectionInfo(String url,
Properties info)
|
|
DatabaseMetaData |
createMetaData(JcrConnection connection)
Call to create the DatabaseMetaData |
|
protected abstract void |
createRepository()
|
|
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. |
|
protected boolean |
isSessionAvailable()
|
|
boolean |
isWrapperFor(Class<?> iface)
|
|
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 |
|---|
close, commit, execute, getDescriptor, isValid, nodeType, nodeTypes, rollback |
| Field Detail |
|---|
protected static final Logger LOGGER
| Constructor Detail |
|---|
public AbstractRepositoryDelegate(String url,
Properties info)
| Method Detail |
|---|
protected abstract ConnectionInfo createConnectionInfo(String url,
Properties info)
public ConnectionInfo getConnectionInfo()
RepositoryDelegate
getConnectionInfo in interface RepositoryDelegate
protected abstract void createRepository()
throws SQLException
SQLExceptionprotected boolean isSessionAvailable()
public Connection createConnection()
throws SQLException
RepositoryDelegate
createConnection in interface RepositoryDelegateSQLExceptionpublic 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)public DatabaseMetaData createMetaData(JcrConnection connection)
RepositoryDelegate
createMetaData in interface RepositoryDelegate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||