|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepositoryDelegate

Represents the communication interface thru which the JDBC logic will obtain a connection and issue commands to the Jcr layer.
| 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. |
|
QueryResult |
execute(String query,
String language)
Call to execute the sql query based on the specified Jcr language. |
|
ConnectionInfo |
getConnectionInfo()
Call to get the connection information. |
|
String |
getDescriptor(String descriptorKey)
Returns the value for the requested descriptorKey |
|
Set<String> |
getRepositoryNames()
Called to get all the repository names currently available in the JcrEngine. |
|
boolean |
isValid(int timeout)
|
|
boolean |
isWrapperFor(Class<?> iface)
|
|
NodeType |
nodeType(String name)
Call to get NodeType based on specified name |
|
List<NodeType> |
nodeTypes()
Call to get all the NodeTypes defined. |
|
void |
rollback()
|
|
|
unwrap(Class<T> iface)
|
|
| Method Detail |
|---|
ConnectionInfo getConnectionInfo()
void closeStatement()
Statement the is closed. This enables the underlying connection to the JcrRepository remain open
until the statement is finished using it.
void close()
Connection.close()
NodeType nodeType(String name)
throws RepositoryException
NodeType based on specified name
name -
RepositoryException
List<NodeType> nodeTypes()
throws RepositoryException
NodeTypes defined.
RepositoryException
QueryResult execute(String query,
String language)
throws RepositoryException
query based on the specified Jcr language.
query - is the sql query to executelanguage - is the JCR language the query should be executed based on.
RepositoryException
Connection createConnection(DriverInfo info)
throws SQLException
info - the driver information
SQLExceptionDriver.connect(String, java.util.Properties)
void commit()
throws RepositoryException
RepositoryExceptionConnection.commit()
void rollback()
throws RepositoryException
RepositoryExceptionConnection.rollback()
boolean isValid(int timeout)
throws RepositoryException
timeout -
RepositoryExceptionConnection.isValid(int)boolean isWrapperFor(Class<?> iface)
iface -
Wrapper.isWrapperFor(java.lang.Class)
<T> T unwrap(Class<T> iface)
throws SQLException
T - iface -
SQLExceptionWrapper.unwrap(java.lang.Class)
Set<String> getRepositoryNames()
throws RepositoryException
RepositoryExceptionString getDescriptor(String descriptorKey)
descriptorKey
descriptorKey -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||