public class JcQueryResult extends Object
| Constructor and Description |
|---|
JcQueryResult(javax.json.JsonObject jsonResult,
int queryIndex,
IDBAccess dbAccess) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeneralError(JcError generalError)
Add a general (system) error
|
List<JcError> |
getDBErrors() |
List<JcError> |
getGeneralErrors() |
Graph |
getGraph() |
javax.json.JsonObject |
getJsonResult() |
boolean |
hasErrors() |
LiteralMapList |
resultMapListOf(JcPrimitive... key)
answer a list of literal maps containing result values for the given keys
|
List<Boolean> |
resultOf(JcBoolean bool) |
List<List<?>> |
resultOf(JcCollection collection) |
List<GrNode> |
resultOf(JcNode node) |
List<BigDecimal> |
resultOf(JcNumber number) |
List<GrPath> |
resultOf(JcPath path)
Note: After locally modifying the graph the result may be inconsistent with the changes
|
List<GrRelation> |
resultOf(JcRelation relation) |
List<String> |
resultOf(JcString string) |
List<?> |
resultOf(JcValue val) |
public JcQueryResult(javax.json.JsonObject jsonResult,
int queryIndex,
IDBAccess dbAccess)
public javax.json.JsonObject getJsonResult()
public List<GrNode> resultOf(JcNode node)
node - public List<GrRelation> resultOf(JcRelation relation)
relation - public List<GrPath> resultOf(JcPath path)
path - public List<BigDecimal> resultOf(JcNumber number)
public List<List<?>> resultOf(JcCollection collection)
public LiteralMapList resultMapListOf(JcPrimitive... key)
key - a variable number of keys which are used to calculate result-values to fill the resulting mapspublic Graph getGraph()
public List<JcError> getGeneralErrors()
public List<JcError> getDBErrors()
public void addGeneralError(JcError generalError)
generalError - public boolean hasErrors()
Copyright © 2016. All rights reserved.