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).
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
AndCriteria |
A
CriteriaNode 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> |
A
CriteriaLeaf representing a EQUAL WITH
expression. |
interface |
GreaterOrEqualThanCriteria<T> |
A
CriteriaLeaf representing a GREATER OR EQUAL
THAN expression. |
interface |
GreaterThanCriteria<T> |
A
CriteriaLeaf representing a GREATER THAN
expression. |
interface |
IntersectWithCriteria |
A
CriteriaNode representing a logical INTERSECT
operator. |
interface |
LessOrEqualThanCriteria<T> |
A
CriteriaLeaf representing a LESS OR EQUAL
THAN expression. |
interface |
LessThanCriteria<T> |
A
CriteriaLeaf representing a LESS THAN
expression. |
interface |
NotCriteria |
A
CriteriaNode representing a logical NOT
operator. |
interface |
NotEqualWithCriteria<T> |
A
CriteriaLeaf representing a NOT EQUAL WITH
expression. |
interface |
OrCriteria |
A
CriteriaNode representing a logical OR
operator. |
interface |
SingleCriteriaNode |
A special specialization of the
CriteriaNode ,
allowing just one child. |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractCriteria |
|
class |
AbstractCriteriaLeaf<T> |
Base class with the base
CriteriaLeaf
functionality provided for CriteriaLeaf
implementations. |
class |
AbstractCriteriaNode |
Base class with the base
CriteriaNode
functionality provided for CriteriaNode
implementations. |
class |
AbstractSingleCriteriaNode |
Base class with the base
SingleCriteriaNode
functionality provided for SingleCriteriaNode
implementations. |
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 a
Criteria (tree). |
Criteria |
ExpressionCriteriaFactoryImpl.fromQuery(String aQuery) |
Parsed the given query and constructs a
Criteria (tree). |
Criteria |
AbstractSingleCriteriaNode.getChild() |
Returns the single child
Criteria being
stored in this CriteriaNode . |
Criteria |
SingleCriteriaNode.getChild() |
Returns the single child
Criteria being
stored in this CriteriaNode . |
Criteria |
CriteriaAccessor.getCriteria() |
Modifier and Type | Method | Description |
---|---|---|
List<Criteria> |
AbstractCriteriaNode.getChildren() |
Returns the list of child
Criteria
instances contained in the CriteriaNode . |
List<Criteria> |
AbstractSingleCriteriaNode.getChildren() |
Returns the list of child
Criteria
instances contained in the CriteriaNode . |
List<Criteria> |
CriteriaNode.getChildren() |
Returns the list of child
Criteria
instances contained in the CriteriaNode . |
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractCriteriaNode.addChild(Criteria aChild) |
Adds a child
Criteria to the
CriteriaNode . |
void |
AbstractSingleCriteriaNode.addChild(Criteria aCriteria) |
Adds a child
Criteria to the
CriteriaNode . |
void |
CriteriaNode.addChild(Criteria aChild) |
Adds a child
Criteria to the
CriteriaNode . |
static AndCriteria |
CriteriaSugar.and(Criteria... aChildren) |
Creates an AND
CriteriaNode containing the
provided Criteria 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 provided
Criteria (tree). |
Q |
PartitionQueryFactory.fromCriteria(Criteria aCriteria,
PS aPartionSelector) |
Generates a query from the provided
Criteria (tree) similar to the
QueryFactory.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 provided
Criteria (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 INTERSECT
CriteriaNode
containing the provided Criteria children. |
static NotCriteria |
CriteriaSugar.not(Criteria aCriteria) |
Creates a NOT
CriteriaNode containing the
provided Criteria child. |
static OrCriteria |
CriteriaSugar.or(Criteria... aChildren) |
Creates an OR
CriteriaNode containing the
provided Criteria children. |
void |
AbstractSingleCriteriaNode.setChild(Criteria aChild) |
Sets the single child
Criteria to be stored
in this CriteriaNode . |
void |
SingleCriteriaNode.setChild(Criteria aCriteria) |
Sets the single child
Criteria to be stored
in this CriteriaNode . |
void |
CriteriaAccessor.CriteriaMutator.setCriteria(Criteria aCriteria) |
Constructor | Description |
---|---|
AbstractCriteriaNode(String aName,
Criteria... aChildren) |
Constructs a
CriteriaNode with the given
name and the provided Criteria children. |
AbstractSingleCriteriaNode(String aName,
Criteria aChild) |
Constructs a
SingleCriteriaNode with the
given name and the provided Criteria 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.
|
Copyright © 2018. All rights reserved.