Interface BooleanField<ENTITY>

Type Parameters:
ENTITY - entity type
All Superinterfaces:
BooleanFieldComparator<ENTITY>, Comparator<ENTITY>, com.speedment.runtime.compute.expression.Expression<ENTITY>, Field<ENTITY>, FieldComparator<ENTITY>, com.speedment.runtime.compute.trait.HasAsDouble<ENTITY>, com.speedment.runtime.compute.trait.HasAsInt<ENTITY>, com.speedment.runtime.compute.trait.HasAsLong<ENTITY>, HasBooleanOperators<ENTITY>, HasBooleanValue<ENTITY>, HasColumnName, 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.HasMap<ENTITY,com.speedment.common.function.BooleanUnaryOperator,com.speedment.runtime.compute.ToBoolean<ENTITY>>, com.speedment.runtime.compute.trait.HasMapToDouble<ENTITY,com.speedment.common.function.BooleanToDoubleFunction>, HasTable<ENTITY>, Predicate<ENTITY>, com.speedment.runtime.compute.ToBoolean<ENTITY>, com.speedment.common.function.ToBooleanFunction<ENTITY>

public interface BooleanField<ENTITY> extends Field<ENTITY>, HasBooleanValue<ENTITY>, com.speedment.runtime.compute.ToBoolean<ENTITY>, BooleanFieldComparator<ENTITY>, HasBooleanOperators<ENTITY>
A field that represents a primitive boolean value.

Generated by com.speedment.sources.pattern.FieldPattern.

Since:
3.0.0
Author:
Emil Forslund
  • Method Details

    • create

      static <ENTITY> BooleanField<ENTITY> create(Class<ENTITY> table, String columnName, BooleanGetter<ENTITY> getter, boolean unique)
      Creates a new BooleanField using the default implementation.
      Type Parameters:
      ENTITY - 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 getter in entity
      unique - if column only contains unique values
      Returns:
      the created field
    • applyAsBoolean

      default boolean applyAsBoolean(ENTITY entity)
      Specified by:
      applyAsBoolean in interface com.speedment.runtime.compute.ToBoolean<ENTITY>
      Specified by:
      applyAsBoolean in interface com.speedment.common.function.ToBooleanFunction<ENTITY>
    • getField

      default BooleanField<ENTITY> getField()
      Description copied from interface: BooleanFieldComparator
      Gets the field that is being compared.
      Specified by:
      getField in interface BooleanFieldComparator<ENTITY>
      Specified by:
      getField in interface FieldComparator<ENTITY>
      Returns:
      the compared field