Interface ComparableField<ENTITY,V extends Comparable<? super V>>

Type Parameters:
ENTITY - the entity type
V - the field value type
All Superinterfaces:
Comparator<ENTITY>, Field<ENTITY>, HasColumnName, HasComparableOperators<ENTITY,V>, com.speedment.runtime.compute.trait.HasCompare<ENTITY>, HasGetter<ENTITY>, com.speedment.runtime.compute.trait.HasMapToDoubleIfPresent<ENTITY,ToDoubleFunction<V>>, HasReferenceOperators<ENTITY>, HasReferenceValue<ENTITY,V>, HasTable<ENTITY>, ReferenceField<ENTITY,V>
All Known Subinterfaces:
EnumField<ENTITY,E>, StringField<ENTITY>

public interface ComparableField<ENTITY,V extends Comparable<? super V>> extends ReferenceField<ENTITY,V>, HasComparableOperators<ENTITY,V>
A field that represents an object value that implements Comparable.
Since:
2.2.0
Author:
Per Minborg, Emil Forslund
See Also:
  • Method Details

    • create

      static <ENTITY, V extends Comparable<? super V>> ComparableField<ENTITY,V> create(Class<ENTITY> table, String columnName, ReferenceGetter<ENTITY,V> getter, boolean unique)
      Creates a new ComparableField using the default implementation.
      Type Parameters:
      ENTITY - the entity type
      V - the field value type
      Parameters:
      table - the table the field belongs to
      columnName - the name of the database column the field represents
      getter - method reference to the getter in the entity
      unique - represented column only contains unique values
      Returns:
      the created field