public class RemoteDBAccess extends Object implements IDBAccessInit
| Constructor and Description |
|---|
RemoteDBAccess() |
| 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
|
JcQueryResult |
execute(JcQuery query)
execute a query against a database
|
List<JcQueryResult> |
execute(List<JcQuery> queries)
execute a list of queries against a database
|
DBType |
getDBType()
Answer the type of database access (REMOTE, EMBEDDED, IN_MEMORY)
|
ITransaction |
getTX()
Answer the transaction which was opened in the context of the current thread.
|
void |
initialize(Properties properties)
set initialization properties
|
boolean |
isDatabaseEmpty() |
void |
setAuth(String userId,
String password)
set user id and password for authentication
|
public void initialize(Properties properties)
IDBAccessInitinitialize in interface IDBAccessInitpublic 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 DBType getDBType()
IDBAccesspublic boolean isDatabaseEmpty()
isDatabaseEmpty in interface IDBAccesspublic void close()
IDBAccesspublic void setAuth(String userId, String password)
IDBAccessInitsetAuth in interface IDBAccessInitCopyright © 2016. All rights reserved.