|
||||||||||
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. |
|
void |
commit()
|
|
Connection |
createConnection()
Call to create the connection based on the implementation of this interface. |
|
DatabaseMetaData |
createMetaData(JcrConnection connection)
Call to create the DatabaseMetaData |
|
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 NodeType s defined. |
|
void |
rollback()
|
|
|
unwrap(Class<T> iface)
|
Method Detail |
---|
ConnectionInfo getConnectionInfo()
NodeType nodeType(String name) throws RepositoryException
NodeType
based on specified name
name
-
RepositoryException
List<NodeType> nodeTypes() throws RepositoryException
NodeType
s 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() throws SQLException
SQLException
void commit() throws RepositoryException
RepositoryException
Connection.commit()
void rollback() throws RepositoryException
RepositoryException
Connection.rollback()
boolean isValid(int timeout) throws RepositoryException
timeout
-
RepositoryException
Connection.isValid(int)
void close()
Connection.close()
DatabaseMetaData createMetaData(JcrConnection connection) throws RepositoryException
connection
-
RepositoryException
boolean isWrapperFor(Class<?> iface)
iface
-
Wrapper.isWrapperFor(java.lang.Class)
<T> T unwrap(Class<T> iface) throws SQLException
T
- iface
-
SQLException
Wrapper.unwrap(java.lang.Class)
Set<String> getRepositoryNames() throws RepositoryException
RepositoryException
String getDescriptor(String descriptorKey)
descriptorKey
descriptorKey
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |