Uses of Interface
org.refcodes.criteria.Criteria
Package | Description |
---|---|
org.refcodes.criteria |
The refcodes-criteria framework allows the construction of criteria for
selecting or filtering or identifying issues (such issues could be the
selection of entries from a database).
|
-
Uses of Criteria in org.refcodes.criteria
Subinterfaces of Criteria in org.refcodes.criteria Modifier and Type Interface Description interface
AndCriteria
ACriteriaNode
representing a logical AND operator.interface
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
CriteriaNode
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).interface
EqualWithCriteria<T>
ACriteriaLeaf
representing a EQUAL WITH expression.interface
GreaterOrEqualThanCriteria<T>
ACriteriaLeaf
representing a GREATER OR EQUAL THAN expression.interface
GreaterThanCriteria<T>
ACriteriaLeaf
representing a GREATER THAN expression.interface
IntersectWithCriteria
ACriteriaNode
representing a logical INTERSECT operator.interface
LessOrEqualThanCriteria<T>
ACriteriaLeaf
representing a LESS OR EQUAL THAN expression.interface
LessThanCriteria<T>
ACriteriaLeaf
representing a LESS THAN expression.interface
NotCriteria
ACriteriaNode
representing a logical NOT operator.interface
NotEqualWithCriteria<T>
ACriteriaLeaf
representing a NOT EQUAL WITH expression.interface
OrCriteria
ACriteriaNode
representing a logical OR operator.interface
SingleCriteriaNode
A special specialization of theCriteriaNode
, allowing just one child.Classes in org.refcodes.criteria that implement Criteria Modifier and Type Class Description class
AbstractCriteria
class
AbstractCriteriaLeaf<T>
Base class with the baseCriteriaLeaf
functionality provided forCriteriaLeaf
implementations.class
AbstractCriteriaNode
Base class with the baseCriteriaNode
functionality provided forCriteriaNode
implementations.class
AbstractSingleCriteriaNode
Base class with the baseSingleCriteriaNode
functionality provided forSingleCriteriaNode
implementations.Methods in org.refcodes.criteria that return Criteria Modifier and Type Method Description static <C> Criteria
CriteriaUtility. doRemovePartitionCriteria(Criteria aCriteria, String aKey, Set<C> aPartitions)
Removes the criteria for the provided partitions given key.Criteria
CriteriaFactory. fromQuery(Q aQuery)
Parsed the given query and constructs aCriteria
(tree).Criteria
ExpressionCriteriaFactoryImpl. fromQuery(String aQuery)
Parsed the given query and constructs aCriteria
(tree).Criteria
AbstractSingleCriteriaNode. getChild()
Returns the single childCriteria
being stored in thisCriteriaNode
.Criteria
SingleCriteriaNode. getChild()
Returns the single childCriteria
being stored in thisCriteriaNode
.Criteria
CriteriaAccessor. 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).Methods in org.refcodes.criteria that return types with arguments of type Criteria Modifier and Type Method Description List<Criteria>
AbstractCriteriaNode. getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.List<Criteria>
AbstractSingleCriteriaNode. getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.List<Criteria>
CriteriaNode. getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.Methods in org.refcodes.criteria with parameters of type Criteria Modifier and Type Method Description void
AbstractCriteriaNode. addChild(Criteria aChild)
Adds a childCriteria
to theCriteriaNode
.void
AbstractSingleCriteriaNode. addChild(Criteria aCriteria)
Adds a childCriteria
to theCriteriaNode
.void
CriteriaNode. addChild(Criteria aChild)
Adds a childCriteria
to theCriteriaNode
.static AndCriteria
CriteriaSugar. and(Criteria... aChildren)
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.String
ExpressionQueryFactoryImpl. fromCriteria(Criteria aCriteria)
Generates a query from the providedCriteria
(tree).Q
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.Q
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
CriteriaSugar. not(Criteria aCriteria)
Creates a NOTCriteriaNode
containing the providedCriteria
child.static OrCriteria
CriteriaSugar. or(Criteria... aChildren)
Creates an ORCriteriaNode
containing the providedCriteria
children.void
AbstractSingleCriteriaNode. setChild(Criteria aChild)
Sets the single childCriteria
to be stored in thisCriteriaNode
.void
SingleCriteriaNode. setChild(Criteria aCriteria)
Sets the single childCriteria
to be stored in thisCriteriaNode
.void
CriteriaAccessor.CriteriaMutator. setCriteria(Criteria aCriteria)
Constructors in org.refcodes.criteria with parameters of type Criteria Constructor Description AbstractCriteriaNode(String aName, Criteria... aChildren)
Constructs aCriteriaNode
with the given name and the providedCriteria
children.AbstractSingleCriteriaNode(String aName, Criteria aChild)
Constructs aSingleCriteriaNode
with the given name and the providedCriteria
child.ComplexCriteriaException(Criteria aCriteria, String message)
Instantiates a new complex criteria exception.ComplexCriteriaException(Criteria aCriteria, String aMessage, String aErrorCode)
Instantiates a new complex criteria exception.ComplexCriteriaException(Criteria aCriteria, String message, Throwable cause)
Instantiates a new complex criteria exception.ComplexCriteriaException(Criteria aCriteria, String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new complex criteria exception.ComplexCriteriaException(Criteria aCriteria, Throwable cause)
Instantiates a new complex criteria exception.ComplexCriteriaException(Criteria aCriteria, Throwable aCause, String aErrorCode)
Instantiates a new complex criteria exception.UnknownCriteriaRuntimeException(Criteria aCriteria, String message)
Instantiates a new unknown criteria runtime exception.UnknownCriteriaRuntimeException(Criteria aCriteria, String aMessage, String aErrorCode)
Instantiates a new unknown criteria runtime exception.UnknownCriteriaRuntimeException(Criteria aCriteria, String message, Throwable cause)
Instantiates a new unknown criteria runtime exception.UnknownCriteriaRuntimeException(Criteria aCriteria, String aMessage, Throwable aCause, String aErrorCode)
Instantiates a new unknown criteria runtime exception.UnknownCriteriaRuntimeException(Criteria aCriteria, Throwable cause)
Instantiates a new unknown criteria runtime exception.UnknownCriteriaRuntimeException(Criteria aCriteria, Throwable aCause, String aErrorCode)
Instantiates a new unknown criteria runtime exception.