Module org.refcodes.criteria
Package org.refcodes.criteria
package org.refcodes.criteria
This artifact allows the construction of This artifact allows the
construction of
Criteria
instances for
selecting, filtering or identifying (such as the selection of entries from a
database). This implies the creation of query statements from
Criteria
instances which can be applied to data
sinks; such as databases (SQL like statements). In turn, this also implies
parsing (construction) of criteria trees from a query statement (provided as
logical operators in your code).
Please refer to the refcodes-criteria: Criteria construction for selecting, filtering or identifying documentation for an up-to-date and detailed description on the usage of this artifact.
-
ClassDescriptionBase class with the base
CriteriaLeaf
functionality provided forCriteriaLeaf
implementations.Base class with the base functionality provided forCriteriaNode
implementations.ACriteriaNode
representing a logical AND operator.TheBadCriteriaException
is thrown in case of encountering badCriteria
definitions.The Class ComplexCriteriaException.TheCriteria
itself is the base definition of functionality which theCriteriaNode
andCriteriaLeaf
implementations are to support.Provides an accessor for aCriteria
property.Provides a mutator for aCriteria
property.Provides aCriteria
property.TheCriteriaFactory
constructs aCriteria
(tree) from the provided query.CriteriaLeaf<T>A CriteriaLeaf tree leaf is an expression usually relating to a key (for example identifying a table's column in a database) and a value, both of which consolidating an expression (for example "City = 'Munich'").A CriteriaNode tree node may represent a logical AND or a logical OR or a logical NOT applied on the node's children Criteria (CriteriaNode instances and CriteriaLeaf instances).The ClassCriteriaRuntimeException
.The purpose of aCriteriaSchema
is automatically generate documentation ofCriteria
structures.Declarative syntactic sugar which may be statically imported in order to allow declarative definitions ofCriteria
trees: ...The Class CriteriaUtility.ACriteriaLeaf
representing a EQUAL WITH expression.Implements aCriteriaFactory
which is capable of parsing an expression such as the following one: ( ( ( City = 'Berlin' ) OR ( City = 'Munich' ) ) AND ( Surname = 'Miller' ) ).TheExpressionCriteriaFactory
is capable of creating queryString
instances fromCriteria
instances; the queryString
instances which can be used as parts of SQL statements.ACriteriaLeaf
representing a GREATER OR EQUAL THAN expression.ACriteriaLeaf
representing a GREATER THAN expression.ACriteriaNode
representing a logical INTERSECT operator.ACriteriaLeaf
representing a LESS OR EQUAL THAN expression.ACriteriaLeaf
representing a LESS THAN expression.ACriteriaNode
representing a logical NOT operator.ACriteriaLeaf
representing a NOT EQUAL WITH expression.ACriteriaNode
representing a logical OR operator.PartitionQueryFactory<Q,PS> ThePartitionQueryFactory
is a https://www.metacodes.proization of theQueryFactory
in that it is capable of generating queries targeting at a dedicated partition of a (database) cluster, the partion's query does not contain obsolete query statements enhancing the database's query processing performance.QueryFactory<Q>TheQueryFactory
generates a query from the providedCriteria
(tree).The ClassUnknownCriteriaRuntimeException
.