Uses of Interface
org.refcodes.criteria.Criteria
Package
Description
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).-
Uses of Criteria in org.refcodes.criteria
Modifier and TypeInterfaceDescriptioninterface
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'").interface
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).Modifier and TypeClassDescriptionclass
class
Base class with the baseCriteriaLeaf
functionality provided forCriteriaLeaf
implementations.class
Base class with the base functionality provided forCriteriaNode
implementations.class
ACriteriaNode
representing a logical AND operator.class
ACriteriaLeaf
representing a EQUAL WITH expression.class
ACriteriaLeaf
representing a GREATER OR EQUAL THAN expression.class
ACriteriaLeaf
representing a GREATER THAN expression.class
ACriteriaNode
representing a logical INTERSECT operator.class
ACriteriaLeaf
representing a LESS OR EQUAL THAN expression.class
ACriteriaLeaf
representing a LESS THAN expression.class
ACriteriaNode
representing a logical NOT operator.class
ACriteriaLeaf
representing a NOT EQUAL WITH expression.class
ACriteriaNode
representing a logical OR operator.Modifier and TypeFieldDescriptionprotected Criteria
CriteriaRuntimeException.CriteriaCriteriaRuntimeException._criteria
Modifier and TypeMethodDescriptionstatic <C> Criteria
CriteriaUtility.doRemovePartitionCriteria
(Criteria aCriteria, String aKey, Set<C> aPartitions) Removes the criteria for the provided partitions given key.Parsed the given query and constructs aCriteria
(tree).Parsed the given query and constructs aCriteria
(tree).CriteriaAccessor.getCriteria()
CriteriaException.getCriteria()
CriteriaRuntimeException.CriteriaCriteriaRuntimeException.getCriteria()
default Criteria
CriteriaAccessor.CriteriaProperty.letCriteria
(Criteria aCriteria) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenCriteria
(setter) as ofCriteriaAccessor.CriteriaMutator.setCriteria(Criteria)
and returns the very same value (getter).Modifier and TypeMethodDescriptionAbstractCriteriaNode.getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.CriteriaNode.getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.Modifier and TypeMethodDescriptionvoid
Adds a childCriteria
to theCriteriaNode
.void
Adds a childCriteria
to theCriteriaNode
.void
Adds a childCriteria
to theCriteriaNode
.static AndCriteria
Creates an ANDCriteriaNode
containing the providedCriteria
children.static <C> Criteria
CriteriaUtility.doRemovePartitionCriteria
(Criteria aCriteria, String aKey, Set<C> aPartitions) Removes the criteria for the provided partitions given key.ExpressionQueryFactory.fromCriteria
(Criteria aCriteria) Generates a query from the providedCriteria
(tree).PartitionQueryFactory.fromCriteria
(Criteria aCriteria, PS aPartionSelector) Generates a query from the providedCriteria
(tree) similar to theQueryFactory.fromCriteria(Criteria)
method, though providing support for targeting a dedicated partition in a (database) cluster.QueryFactory.fromCriteria
(Criteria aCriteria) Generates a query from the providedCriteria
(tree).static <P> Set<P>
CriteriaUtility.getPartitions
(Criteria aCriteria, String aKey, Class<P> aType) Tries to determine the partitions specified by the given key and type being addressed by the query represented by the given criteria.static IntersectWithCriteria
CriteriaSugar.intersectWith
(Criteria... aChildren) Creates an INTERSECTCriteriaNode
containing the providedCriteria
children.default Criteria
CriteriaAccessor.CriteriaProperty.letCriteria
(Criteria aCriteria) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenCriteria
(setter) as ofCriteriaAccessor.CriteriaMutator.setCriteria(Criteria)
and returns the very same value (getter).static NotCriteria
Creates a NOTCriteriaNode
containing the providedCriteria
child.static OrCriteria
Creates an ORCriteriaNode
containing the providedCriteria
children.void
void
CriteriaAccessor.CriteriaMutator.setCriteria
(Criteria aCriteria) ModifierConstructorDescriptionAbstractCriteriaNode
(String aAlias, Criteria... aChildren) Constructs aCriteriaNode
with the given name and the providedCriteria
children.AndCriteria
(Criteria... aChildren) BadCriteriaException
(String aMessage, Criteria aCriteria) BadCriteriaException
(String aMessage, Criteria aCriteria, String aErrorCode) BadCriteriaException
(String aMessage, Criteria aCriteria, Throwable aCause) BadCriteriaException
(String aMessage, Criteria aCriteria, Throwable aCause, String aErrorCode) BadCriteriaException
(Criteria aCriteria, Throwable aCause) BadCriteriaException
(Criteria aCriteria, Throwable aCause, String aErrorCode) ComplexCriteriaException
(Criteria aCriteria, String aMessage) Instantiates a new according exception.ComplexCriteriaException
(Criteria aCriteria, String aMessage, String aErrorCode) Instantiates a new according exception.ComplexCriteriaException
(Criteria aCriteria, String aMessage, Throwable aCause) Instantiates a new according exception.ComplexCriteriaException
(Criteria aCriteria, String aMessage, Throwable aCause, String aErrorCode) Instantiates a new according exception.ComplexCriteriaException
(Criteria aCriteria, Throwable aCause) Instantiates a new according exception.ComplexCriteriaException
(Criteria aCriteria, Throwable aCause, String aErrorCode) Instantiates a new according exception.CriteriaCriteriaRuntimeException
(String aMessage, Criteria aCriteria) CriteriaCriteriaRuntimeException
(String aMessage, Criteria aCriteria, String aErrorCode) CriteriaCriteriaRuntimeException
(String aMessage, Criteria aCriteria, Throwable aCause) CriteriaCriteriaRuntimeException
(String aMessage, Criteria aCriteria, Throwable aCause, String aErrorCode) CriteriaCriteriaRuntimeException
(Criteria aCriteria, Throwable aCause) CriteriaCriteriaRuntimeException
(Criteria aCriteria, Throwable aCause, String aErrorCode) CriteriaException
(String aMessage, Criteria aCriteria) CriteriaException
(String aMessage, Criteria aCriteria, String aErrorCode) CriteriaException
(String aMessage, Criteria aCriteria, Throwable aCause) CriteriaException
(String aMessage, Criteria aCriteria, Throwable aCause, String aErrorCode) CriteriaException
(Criteria aCriteria, Throwable aCause) CriteriaException
(Criteria aCriteria, Throwable aCause, String aErrorCode) IntersectWithCriteria
(Criteria... aChildren) NotCriteria
(Criteria aChild) OrCriteria
(Criteria... aChildren) UnknownCriteriaRuntimeException
(String aMessage, Criteria aCriteria) UnknownCriteriaRuntimeException
(String aMessage, Criteria aCriteria, String aErrorCode) UnknownCriteriaRuntimeException
(String aMessage, Criteria aCriteria, Throwable aCause) UnknownCriteriaRuntimeException
(String aMessage, Criteria aCriteria, Throwable aCause, String aErrorCode) UnknownCriteriaRuntimeException
(Criteria aCriteria, Throwable aCause) UnknownCriteriaRuntimeException
(Criteria aCriteria, Throwable aCause, String aErrorCode) ModifierConstructorDescriptionAbstractCriteriaNode
(String aAlias, List<Criteria> aChildren) Constructs aCriteriaNode
with the given name and the backing(!)