|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.jdbc.delegate.HttpRepositoryDelegate
public class HttpRepositoryDelegate
The HTTPRepositoryDelegate provides remote Repository implementation to access the Jcr layer via HTTP lookup.
Nested Class Summary | |
---|---|
class |
HttpRepositoryDelegate.HttpConnectionInfo
|
Constructor Summary | |
---|---|
HttpRepositoryDelegate(String url,
Properties info,
JcrDriver.JcrContextFactory contextFactory)
|
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. |
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpRepositoryDelegate(String url, Properties info, JcrDriver.JcrContextFactory contextFactory)
Method Detail |
---|
public QueryResult execute(String query, String language) throws RepositoryException
RepositoryDelegate
query
based on the specified Jcr language.
execute
in interface RepositoryDelegate
query
- is the sql query to executelanguage
- is the JCR language the query
should be executed based on.
RepositoryException
public ConnectionInfo getConnectionInfo()
RepositoryDelegate
getConnectionInfo
in interface RepositoryDelegate
public NodeType nodeType(String name) throws RepositoryException
RepositoryDelegate
NodeType
based on specified name
nodeType
in interface RepositoryDelegate
RepositoryException
public List<NodeType> nodeTypes() throws RepositoryException
RepositoryDelegate
NodeType
s defined.
nodeTypes
in interface RepositoryDelegate
RepositoryException
public Connection createConnection() throws SQLException
RepositoryDelegate
createConnection
in interface RepositoryDelegate
SQLException
public void commit() throws RepositoryException
commit
in interface RepositoryDelegate
RepositoryException
Connection.commit()
public void rollback() throws RepositoryException
rollback
in interface RepositoryDelegate
RepositoryException
Connection.rollback()
public void close()
RepositoryDelegate
close
in interface RepositoryDelegate
Connection.close()
public DatabaseMetaData createMetaData(JcrConnection connection)
RepositoryDelegate
createMetaData
in interface RepositoryDelegate
public boolean isValid(int timeout)
isValid
in interface RepositoryDelegate
Connection.isValid(int)
public Set<String> getRepositoryNames()
RepositoryDelegate
getRepositoryNames
in interface RepositoryDelegate
public boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface RepositoryDelegate
iface
-
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface RepositoryDelegate
T
- iface
-
SQLException
Wrapper.unwrap(java.lang.Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |