|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jdbc.delegate.AbstractRepositoryDelegate
org.modeshape.jdbc.delegate.HttpRepositoryDelegate
public class HttpRepositoryDelegate

The HTTPRepositoryDelegate provides remote Repository implementation to access the Jcr layer via HTTP lookup.
| Field Summary |
|---|
| Fields inherited from class org.modeshape.jdbc.delegate.AbstractRepositoryDelegate |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
HttpRepositoryDelegate(String url,
Properties info,
JcrDriver.JcrContextFactory contextFactory)
|
|
| Method Summary | |
|---|---|
void |
close()
Call to close the delegate connection. |
void |
commit()
|
protected ConnectionInfo |
createConnectionInfo(String url,
Properties info)
|
protected void |
createRepository()
|
QueryResult |
execute(String query,
String language)
Call to execute the sql query based on the specified Jcr language. |
String |
getDescriptor(String descriptorKey)
Returns the value for the requested descriptorKey |
boolean |
isValid(int timeout)
|
NodeType |
nodeType(String name)
Call to get NodeType based on specified name |
List<NodeType> |
nodeTypes()
Call to get all the NodeTypes defined. |
void |
rollback()
|
| Methods inherited from class org.modeshape.jdbc.delegate.AbstractRepositoryDelegate |
|---|
createConnection, createMetaData, getConnectionInfo, getRepository, getRepositoryName, getRepositoryNames, isSessionAvailable, isWrapperFor, setRepository, setRepositoryName, setRepositoryNames, unwrap |
| 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 |
|---|
protected ConnectionInfo createConnectionInfo(String url,
Properties info)
createConnectionInfo in class AbstractRepositoryDelegate
public QueryResult execute(String query,
String language)
RepositoryDelegatequery based on the specified Jcr language.
query - is the sql query to executelanguage - is the JCR language the query should be executed based on.
public String getDescriptor(String descriptorKey)
descriptorKey
RepositoryDelegate.getDescriptor(java.lang.String)
public NodeType nodeType(String name)
throws RepositoryException
RepositoryDelegateNodeType based on specified name
RepositoryException
public List<NodeType> nodeTypes()
throws RepositoryException
RepositoryDelegateNodeTypes defined.
RepositoryException
protected void createRepository()
throws SQLException
createRepository in class AbstractRepositoryDelegateSQLExceptionpublic boolean isValid(int timeout)
Connection.isValid(int)public void commit()
Connection.commit()public void rollback()
Connection.rollback()public void close()
Connection.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||