perform criteria queries on a Neo4j backend
| Modifiers | Name | Description |
|---|---|---|
static class |
Neo4jQuery.AssociationQueryHandler |
Handles AssociationQuery instances |
static class |
Neo4jQuery.ComparisonCriterionHandler |
A criterion handler for comparison criterion |
static interface |
Neo4jQuery.CriterionHandler |
Interface for handling criterion when building Cypher queries |
static class |
Neo4jQuery.CypherExpression |
|
static interface |
Neo4jQuery.ProjectionHandler |
Interface for handling projections when building Cypher queries |
static class |
Neo4jQuery.PropertyComparisonCriterionHandler |
A criterion handler for comparison criterion |
static class |
Neo4jQuery.SizeCriterionHandler |
A citerion handler for size related queries |
| Modifiers | Name | Description |
|---|---|---|
static java.util.Map<java.lang.Class<? extends Query.Criterion>, CriterionHandler> |
CRITERION_HANDLERS |
|
protected static java.util.Map<java.lang.Class<? extends Query.Projection>, ProjectionHandler> |
PROJECT_HANDLERS |
| Fields inherited from class | Fields |
|---|---|
class Query |
criteria, entity, fetchStrategies, joinTypes, lockResult, max, offset, orderBy, projections, queryCache, session, uniqueResult |
| Type | Name and description |
|---|---|
boolean |
isRelationshipEntity |
Neo4jEntityPersister |
neo4jEntityPersister |
| Constructor and description |
|---|
Neo4jQuery
(org.grails.datastore.gorm.neo4j.Neo4jSession session, PersistentEntity entity, Neo4jEntityPersister neo4jEntityPersister) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected CypherBuilder |
buildBaseQuery(PersistentEntity persistentEntity, Junction criteria) |
|
java.lang.String |
buildConditions(Criterion criterion, CypherBuilder builder, java.lang.String prefix) |
|
java.lang.String |
buildProjection(Projection projection, CypherBuilder cypherBuilder) |
|
protected java.util.List |
executeQuery(PersistentEntity persistentEntity, Junction criteria) |
|
CypherBuilder |
getBaseQuery()Obtains the root query for this Neo4jQuery instance without any RETURN statements, projections or limits applied |
|
org.neo4j.driver.v1.Session |
getBoltSession() |
|
org.grails.datastore.gorm.neo4j.Neo4jSession |
getSession() |
|
protected static java.lang.String |
handleLike(PropertyCriterion criterion, CypherBuilder builder, int paramNumber, boolean caseSensitive) |
|
static java.lang.String |
matchForAssociation(Association association, java.lang.String var = "", java.util.Map<java.lang.String, java.lang.String> attributes = Collections.emptyMap() |
| Methods inherited from class | Name |
|---|---|
class Query |
add, add, allEq, and, between, cache, clone, conjunction, createQuery, disjunction, eq, executeQuery, fetchStrategy, firstResult, flushBeforeQuery, ge, getCriteria, getEntity, getOrderBy, getSession, gt, gte, idEq, ilike, in, isEmpty, isNotEmpty, isNotNull, isNull, join, join, le, like, list, lock, lock, lt, lte, max, maxResults, negation, offset, or, order, patternToRegex, projections, resolveIdIfEntity, rlike, select, setUniqueResult, singleResult |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtains the root query for this Neo4jQuery instance without any RETURN statements, projections or limits applied