Interface StringField<ENTITY>

Type Parameters:
ENTITY - the entity type
All Superinterfaces:
ComparableField<ENTITY,String>, Comparator<ENTITY>, com.speedment.runtime.compute.expression.Expression<ENTITY>, Field<ENTITY>, Function<ENTITY,String>, HasColumnName, HasComparableOperators<ENTITY,String>, com.speedment.runtime.compute.trait.HasCompare<ENTITY>, com.speedment.runtime.compute.trait.HasCompose<ENTITY>, HasGetter<ENTITY>, com.speedment.runtime.compute.trait.HasHash<ENTITY>, com.speedment.runtime.compute.trait.HasMapToDoubleIfPresent<ENTITY,ToDoubleFunction<String>>, HasReferenceOperators<ENTITY>, HasReferenceValue<ENTITY,String>, HasStringOperators<ENTITY>, HasTable<ENTITY>, ReferenceField<ENTITY,String>, com.speedment.runtime.compute.trait.ToNullable<ENTITY,String,com.speedment.runtime.compute.ToString<ENTITY>>, com.speedment.runtime.compute.ToStringNullable<ENTITY>

public interface StringField<ENTITY> extends ComparableField<ENTITY,String>, HasStringOperators<ENTITY>, com.speedment.runtime.compute.ToStringNullable<ENTITY>
A field that represents a string column.
Since:
2.2.0
Author:
Per Minborg, Emil Forslund
See Also:
  • Method Details

    • create

      static <ENTITY> StringField<ENTITY> create(Class<ENTITY> table, String columnName, ReferenceGetter<ENTITY,String> getter, boolean unique)
      Creates a new StringField using the default implementation.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      table - the table that 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
    • isNull

      Description copied from interface: HasReferenceOperators
      Returns a Predicate that will evaluate to true, if and only if this Field is null.
      Specified by:
      isNull in interface HasReferenceOperators<ENTITY>
      Specified by:
      isNull in interface com.speedment.runtime.compute.trait.ToNullable<ENTITY,String,com.speedment.runtime.compute.ToString<ENTITY>>
      Returns:
      a Predicate that will evaluate to true, if and only if this Field is null
    • isNotNull

      default FieldIsNotNullPredicate<ENTITY,String> isNotNull()
      Description copied from interface: HasReferenceOperators
      Returns a Predicate that will evaluate to true, if and only if this Field is not null.
      Specified by:
      isNotNull in interface HasReferenceOperators<ENTITY>
      Specified by:
      isNotNull in interface com.speedment.runtime.compute.trait.ToNullable<ENTITY,String,com.speedment.runtime.compute.ToString<ENTITY>>
      Returns:
      a Predicate that will evaluate to true, if and only if this Field is not null
    • apply

      default String apply(ENTITY object)
      Specified by:
      apply in interface Function<ENTITY,String>
      Specified by:
      apply in interface com.speedment.runtime.compute.ToStringNullable<ENTITY>