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
CriteriaLeaffunctionality provided forCriteriaLeafimplementations.Base class with the base functionality provided forCriteriaNodeimplementations.ACriteriaNoderepresenting a logical AND operator.The Class ComplexCriteriaException.TheCriteriaitself is the base definition of functionality which theCriteriaNodeandCriteriaLeafimplementations are to support.Provides an accessor for aCriteriaproperty.Provides a mutator for aCriteriaproperty.Provides aCriteriaproperty.The ClassCriteriaExceptionis thrown in case ofCriteriarelated problems.TheCriteriaException.BadCriteriaExceptionis thrown in case of problems related to someCriteria.TheCriteriaFactoryconstructs 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 Class CriteriaRuntimeException.The purpose of aCriteriaSchemais automatically generate documentation ofCriteriastructures.Declarative syntactic sugar which may be statically imported in order to allow declarative definitions ofCriteriatrees: ...The Class CriteriaUtility.ACriteriaLeafrepresenting a EQUAL WITH expression.Implements aCriteriaFactorywhich is capable of parsing an expression such as the following one: ( ( ( City = 'Berlin' ) OR ( City = 'Munich' ) ) AND ( Surname = 'Miller' ) ).TheExpressionCriteriaFactoryis capable of creating queryStringinstances fromCriteriainstances; the queryStringinstances which can be used as parts of SQL statements.ACriteriaLeafrepresenting a GREATER OR EQUAL THAN expression.ACriteriaLeafrepresenting a GREATER THAN expression.ACriteriaNoderepresenting a logical INTERSECT operator.ACriteriaLeafrepresenting a LESS OR EQUAL THAN expression.ACriteriaLeafrepresenting a LESS THAN expression.ACriteriaNoderepresenting a logical NOT operator.ACriteriaLeafrepresenting a NOT EQUAL WITH expression.ACriteriaNoderepresenting a logical OR operator.PartitionQueryFactory<Q,PS> ThePartitionQueryFactoryis a https://www.metacodes.proization of theQueryFactoryin 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>TheQueryFactorygenerates a query from the providedCriteria(tree).The Class UnknownCriteriaRuntimeException.