Class QueryDefinition
java.lang.Object
ch.tocco.nice2.persist.core.api.query.QueryDefinition
A class that holds all data required to build a query.
An instance from this class can be obtained from a
Query
instance and be used
to convert it to a new query builder (EntityQueryBuilder
, SinglePathQueryBuilder
, PathQueryBuilder
and CountQueryBuilder
).-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryDefinition
fromConditions
(EntityModel entityModel, List<Condition> conditions, @Nullable Ordering ordering, Map<String, ?> hints) static QueryDefinition
fromKeys
(EntityModel entityModel, Collection<PrimaryKey> keys, Ordering ordering) static QueryDefinition
fromNodes
(EntityModel entityModel, List<Node> conditions, List<Node> insecureConditions, @Nullable Ordering ordering, Map<String, ?> hints) toCountQueryBuilder
(PersistenceService persistenceService) toEntityQueryBuilder
(PersistenceService persistenceService) <T> PathQueryBuilder
<T> toPathQueryBuilder
(PersistenceService persistenceService, Class<T> clazz, String... properties) <T> SinglePathQueryBuilder
<T> toSinglePathQueryBuilder
(PersistenceService persistenceService, Class<T> clazz, String property)
-
Method Details
-
fromKeys
public static QueryDefinition fromKeys(EntityModel entityModel, Collection<PrimaryKey> keys, Ordering ordering) -
fromConditions
public static QueryDefinition fromConditions(EntityModel entityModel, List<Condition> conditions, @Nullable @Nullable Ordering ordering, Map<String, ?> hints) -
fromNodes
public static QueryDefinition fromNodes(EntityModel entityModel, List<Node> conditions, List<Node> insecureConditions, @Nullable @Nullable Ordering ordering, Map<String, ?> hints) -
toQueryConfigurator
-
toEntityQueryBuilder
-
toSinglePathQueryBuilder
public <T> SinglePathQueryBuilder<T> toSinglePathQueryBuilder(PersistenceService persistenceService, Class<T> clazz, String property) -
toPathQueryBuilder
public <T> PathQueryBuilder<T> toPathQueryBuilder(PersistenceService persistenceService, Class<T> clazz, String... properties) -
toCountQueryBuilder
-