public abstract class AbstractEmbeddedDBAccess extends Object implements IDBAccessInit
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
properties |
| Constructor and Description |
|---|
AbstractEmbeddedDBAccess() |
| Modifier and Type | Method and Description |
|---|---|
ITransaction |
beginTX()
create a transaction
|
List<JcError> |
clearDatabase()
removes all nodes and relations form the graph database
|
void |
close()
close the database connection
|
protected abstract org.neo4j.graphdb.GraphDatabaseService |
createGraphDB() |
JcQueryResult |
execute(JcQuery query)
execute a query against a database
|
List<JcQueryResult> |
execute(List<JcQuery> queries)
execute a list of queries against a database
|
org.neo4j.graphdb.GraphDatabaseService |
getGraphDB() |
ITransaction |
getTX()
Answer the transaction which was opened in the context of the current thread.
|
boolean |
isDatabaseEmpty() |
void |
setAuth(String userId,
String password)
set user id and password for authentication
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected Properties properties
public JcQueryResult execute(JcQuery query)
IDBAccesspublic List<JcQueryResult> execute(List<JcQuery> queries)
IDBAccesspublic List<JcError> clearDatabase()
IDBAccessclearDatabase in interface IDBAccesspublic ITransaction beginTX()
IDBAccesspublic ITransaction getTX()
IDBAccesspublic boolean isDatabaseEmpty()
isDatabaseEmpty in interface IDBAccesspublic void close()
IDBAccesspublic void setAuth(String userId, String password)
IDBAccessInitsetAuth in interface IDBAccessInitprotected abstract org.neo4j.graphdb.GraphDatabaseService createGraphDB()
public org.neo4j.graphdb.GraphDatabaseService getGraphDB()
Copyright © 2016. All rights reserved.