|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.hsr.bieridee.utils.Cypher
public final class Cypher
Class containing all the cipher queries.
Method Summary | |
---|---|
static double |
executeAndGetDouble(java.lang.String query,
java.lang.String valueName)
Returns the double value returned by the given cypher-query. |
static double |
executeAndGetDouble(java.lang.String query,
java.lang.String valueName,
java.lang.String... params)
|
static java.util.List<org.neo4j.graphdb.Node> |
executeAndGetNodes(java.lang.String query,
java.lang.String column)
Returns the nodes found by the given cypher-query as a list. |
static java.util.List<org.neo4j.graphdb.Node> |
executeAndGetNodes(java.lang.String query,
java.lang.String column,
int limit)
|
static java.util.List<org.neo4j.graphdb.Node> |
executeAndGetNodes(java.lang.String query,
java.lang.String column,
int limit,
int skipCount)
|
static java.util.List<org.neo4j.graphdb.Node> |
executeAndGetNodes(java.lang.String query,
java.lang.String column,
int limit,
int skipCount,
java.lang.String... params)
|
static java.util.List<org.neo4j.graphdb.Node> |
executeAndGetNodes(java.lang.String query,
java.lang.String column,
int limit,
java.lang.String... params)
|
static java.util.List<org.neo4j.graphdb.Node> |
executeAndGetNodes(java.lang.String query,
java.lang.String column,
java.lang.String... params)
Returns the nodes found by the given cypher-query as a list. |
static org.neo4j.graphdb.Node |
executeAndGetSingleNode(java.lang.String query,
java.lang.String column)
Returns a single node found by the given cypher-query. |
static org.neo4j.graphdb.Node |
executeAndGetSingleNode(java.lang.String query,
java.lang.String column,
java.lang.String... params)
Returns a single node found by the given cypher-query. |
static java.util.List<java.lang.String> |
executeAndGetStrings(java.lang.String query,
java.lang.String columnName)
Returns a list of strings as result of the given query. |
static void |
setDB(org.neo4j.kernel.EmbeddedGraphDatabase db)
Sets the database. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<org.neo4j.graphdb.Node> executeAndGetNodes(java.lang.String query, java.lang.String column)
query
- The Cypher query.column
- Column name containing the Nodes that will be returned.
public static void setDB(org.neo4j.kernel.EmbeddedGraphDatabase db)
db
- The database.public static java.util.List<org.neo4j.graphdb.Node> executeAndGetNodes(java.lang.String query, java.lang.String column, java.lang.String... params)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returned.params
- These parameters will be used as replacements for the occurences of the literal '$$' in the cypher
query (in the given order). First $$ would be replaced by the first params value, second $$ by the
params' second and so on.
public static java.util.List<org.neo4j.graphdb.Node> executeAndGetNodes(java.lang.String query, java.lang.String column, int limit, java.lang.String... params)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returnedlimit
- Max. number of Nodes returned.params
- These parameters will be used as replacements for the occurences of the literal '$$' in the cypher
query (in the given order). First $$ would be replaced by the first params value, second $$ by the
params' second and so on.
public static java.util.List<org.neo4j.graphdb.Node> executeAndGetNodes(java.lang.String query, java.lang.String column, int limit, int skipCount, java.lang.String... params)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returnedlimit
- Max. number of Nodes returned.params
- These parameters will be used as replacements for the occurences of the literal '$$' in the cypher
query (in the given order). First $$ would be replaced by the first params value, second $$ by the
params' second and so on.skipCount
- Number of Elements to be skipped for paging.
public static java.util.List<org.neo4j.graphdb.Node> executeAndGetNodes(java.lang.String query, java.lang.String column, int limit)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returned.limit
- number of Nodes returned.
public static java.util.List<org.neo4j.graphdb.Node> executeAndGetNodes(java.lang.String query, java.lang.String column, int limit, int skipCount)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returned.limit
- number of Nodes returned.skipCount
- Number of elements to be skipped for paging.
public static org.neo4j.graphdb.Node executeAndGetSingleNode(java.lang.String query, java.lang.String column)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returned.
public static org.neo4j.graphdb.Node executeAndGetSingleNode(java.lang.String query, java.lang.String column, java.lang.String... params)
query
- The cypher querycolumn
- Column name containing the Nodes that will be returned.params
- These parameters will be used as replacements for the occurences of the literal '$$' in the cypher
query (in the given order). First $$ would be replaced by the first params value, second $$ by the
params' second and so on.
public static double executeAndGetDouble(java.lang.String query, java.lang.String valueName)
query
- The cypher query to be executedvalueName
- Name of the value in the query
public static double executeAndGetDouble(java.lang.String query, java.lang.String valueName, java.lang.String... params)
query
- The cypher query to be executedvalueName
- Name of the value in the queryparams
- Parameters to be replaced in the query (in the given order)
public static java.util.List<java.lang.String> executeAndGetStrings(java.lang.String query, java.lang.String columnName)
query
- he cypher query to be executedcolumnName
- The column name to be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |