Interface Field<A>

Type Parameters:
A - type of the field, e.g. String or Date.
All Known Subinterfaces:
PropertyField<A>, VersionField
All Known Implementing Classes:
AbstractSnapshotField, PropertyFieldImpl, SimpleSnapshotField, VersionFieldImpl

public interface Field<A>
A Field refers to a field in the persistence layer of the asset manager. This may either be a real field like a property or a virtual field that helps to build a predicate for a real field.
  • Method Summary

    Modifier and Type
    Method
    Description
    asc()
    Create an ascending order specifier for the field.
    Create a descending order specifier for the field.
    eq(A right)
    Create a predicate that holds true if the field's value and constant value right are equal.
    eq(PropertyField<A> right)
    Create a predicate that holds true if the field's value and the value of property field right are equal.
    Create a predicate that holds true if the field exists.
    ge(A right)
    Create a predicate that holds true if the field's value is greater than constant value right or equal to it.
    ge(PropertyField<A> right)
    Create a predicate that holds true if the field's value is greater than the value of property field right or equal to it.
    gt(A right)
    Create a predicate that holds true if the field's value is strictly greater than constant value right.
    gt(PropertyField<A> right)
    Create a predicate that holds true if the field's value is strictly greater than the value of property field right.
    le(A right)
    Create a predicate that holds true if the field's value is less than constant value right or equal to it.
    le(PropertyField<A> right)
    Create a predicate that holds true if the field's value is less than the value of property field right or equal to it.
    lt(A right)
    Create a predicate that holds true if the field's value is strictly less than constant value right.
    lt(PropertyField<A> right)
    Create a predicate that holds true if the field's value is strictly less than the value of property field right.
    Create a predicate that holds true if the field does not exist.
  • Method Details

    • eq

      Predicate eq(A right)
      Create a predicate that holds true if the field's value and constant value right are equal.
    • eq

      Create a predicate that holds true if the field's value and the value of property field right are equal.
    • lt

      Predicate lt(A right)
      Create a predicate that holds true if the field's value is strictly less than constant value right.
    • lt

      Create a predicate that holds true if the field's value is strictly less than the value of property field right.
    • le

      Predicate le(A right)
      Create a predicate that holds true if the field's value is less than constant value right or equal to it.
    • le

      Create a predicate that holds true if the field's value is less than the value of property field right or equal to it.
    • gt

      Predicate gt(A right)
      Create a predicate that holds true if the field's value is strictly greater than constant value right.
    • gt

      Create a predicate that holds true if the field's value is strictly greater than the value of property field right.
    • ge

      Predicate ge(A right)
      Create a predicate that holds true if the field's value is greater than constant value right or equal to it.
    • ge

      Create a predicate that holds true if the field's value is greater than the value of property field right or equal to it.
    • exists

      Predicate exists()
      Create a predicate that holds true if the field exists.
    • notExists

      Predicate notExists()
      Create a predicate that holds true if the field does not exist.
    • desc

      Order desc()
      Create a descending order specifier for the field.
    • asc

      Order asc()
      Create an ascending order specifier for the field.