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).
|
org.refcodes.criteria.impls |
Modifier and Type | Interface and 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 | Method and 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 |
SingleCriteriaNode.getChild()
Returns the single child
Criteria being stored in this
CriteriaNode . |
Criteria |
CriteriaAccessor.getCriteria()
|
Modifier and Type | Method and Description |
---|---|
List<Criteria> |
CriteriaNode.getChildren()
Returns the list of child
Criteria instances contained in the
CriteriaNode . |
Modifier and Type | Method and Description |
---|---|
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.
|
Q |
QueryFactory.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. |
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 |
SingleCriteriaNode.setChild(Criteria aCriteria)
Sets the single child
Criteria to be stored in this
CriteriaNode . |
void |
CriteriaAccessor.CriteriaMutator.setCriteria(Criteria aCriteria)
|
Modifier and Type | Class and 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 and Description |
---|---|
Criteria |
ExpressionCriteriaFactoryImpl.fromQuery(String aQuery) |
Criteria |
AbstractSingleCriteriaNode.getChild() |
Modifier and Type | Method and Description |
---|---|
List<Criteria> |
AbstractCriteriaNode.getChildren() |
List<Criteria> |
AbstractSingleCriteriaNode.getChildren() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractCriteriaNode.addChild(Criteria aChild) |
void |
AbstractSingleCriteriaNode.addChild(Criteria aCriteria)
Adds a child
Criteria to the CriteriaNode . |
String |
ExpressionQueryFactoryImpl.fromCriteria(Criteria aCriteria) |
void |
AbstractSingleCriteriaNode.setChild(Criteria aChild) |
Constructor and 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. |
Copyright © 2017. All rights reserved.