Class AbstractCriteriaLeaf<T>

java.lang.Object
org.refcodes.criteria.AbstractCriteria
org.refcodes.criteria.AbstractCriteriaLeaf<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
Criteria, CriteriaLeaf<T>, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.KeyAccessor<String>, org.refcodes.mixin.KeyAccessor.KeyBuilder<String,org.refcodes.struct.Relation.RelationBuilder<String,T>>, org.refcodes.mixin.KeyAccessor.KeyMutator<String>, org.refcodes.mixin.KeyAccessor.KeyProperty<String>, org.refcodes.mixin.Schemable<CriteriaSchema>, org.refcodes.mixin.ValueAccessor<T>, org.refcodes.mixin.ValueAccessor.ValueBuilder<T,org.refcodes.struct.Relation.RelationBuilder<String,T>>, org.refcodes.mixin.ValueAccessor.ValueMutator<T>, org.refcodes.mixin.ValueAccessor.ValueProperty<T>, org.refcodes.struct.Relation<String,T>, org.refcodes.struct.Relation.RelationBuilder<String,T>
Direct Known Subclasses:
EqualWithCriteria, GreaterOrEqualThanCriteria, GreaterThanCriteria, LessOrEqualThanCriteria, LessThanCriteria, NotEqualWithCriteria

public abstract class AbstractCriteriaLeaf<T> extends AbstractCriteria implements CriteriaLeaf<T>
Base class with the base CriteriaLeaf functionality provided for CriteriaLeaf implementations.
Version:
$Id: $Id
Author:
steiner
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor

    org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty

    Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor

    org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.struct.Relation

    org.refcodes.struct.Relation.RelationBuilder<K extends Object,V extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor

    org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a CriteriaLeaf with the given name.
    AbstractCriteriaLeaf(String aAlias, String aKey, T aValue)
    Constructs a CriteriaLeaf with the given name, key and value.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setKey(String aKey)
    void
    setValue(T aValue)
    protected CriteriaSchema
    toSchema(String aDescription)
    Creates a CriteriaSchema for a CriteriaLeaf sub-class with the instance's type, alias, key and value as well as the provided description.

    Methods inherited from class org.refcodes.criteria.AbstractCriteria

    getAlias

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.AliasAccessor

    getAlias

    Methods inherited from interface org.refcodes.criteria.CriteriaLeaf

    withKey, withValue

    Methods inherited from interface org.refcodes.mixin.KeyAccessor.KeyProperty

    letKey

    Methods inherited from interface org.refcodes.mixin.Schemable

    toSchema

    Methods inherited from interface org.refcodes.mixin.ValueAccessor

    getValueOr

    Methods inherited from interface org.refcodes.mixin.ValueAccessor.ValueProperty

    letValue
  • Constructor Details

    • AbstractCriteriaLeaf

      public AbstractCriteriaLeaf(String aAlias)
      Constructs a CriteriaLeaf with the given name.
      Parameters:
      aAlias - The name of the CriteriaLeaf.
    • AbstractCriteriaLeaf

      public AbstractCriteriaLeaf(String aAlias, String aKey, T aValue)
      Constructs a CriteriaLeaf with the given name, key and value.
      Parameters:
      aAlias - The name of the CriteriaLeaf.
      aKey - The value for the CriteriaLeaf.
      aValue - the value
  • Method Details

    • getValue

      public T getValue()
      Specified by:
      getValue in interface org.refcodes.mixin.ValueAccessor<T>
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.refcodes.mixin.KeyAccessor<T>
    • setKey

      public void setKey(String aKey)
      Specified by:
      setKey in interface org.refcodes.mixin.KeyAccessor.KeyMutator<T>
    • setValue

      public void setValue(T aValue)
      Specified by:
      setValue in interface org.refcodes.mixin.ValueAccessor.ValueMutator<T>
    • toSchema

      protected CriteriaSchema toSchema(String aDescription)
      Creates a CriteriaSchema for a CriteriaLeaf sub-class with the instance's type, alias, key and value as well as the provided description.
      Parameters:
      aDescription - The description to use for the Schema instance.
      Returns:
      The according Schema instance.