- 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 Summary
Modifier and TypeMethodDescriptiondefault booleanapplyAsBoolean(ENTITY entity) static <ENTITY> BooleanField<ENTITY>create(Class<ENTITY> table, String columnName, BooleanGetter<ENTITY> getter, boolean unique) Creates a newBooleanFieldusing the default implementation.default BooleanField<ENTITY>getField()Gets the field that is being compared.Methods inherited from interface com.speedment.jpastreamer.field.comparator.BooleanFieldComparator
reversedMethods inherited from interface java.util.Comparator
equals, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface com.speedment.jpastreamer.field.comparator.FieldComparator
getNullOrder, isReversedMethods inherited from interface com.speedment.jpastreamer.field.trait.HasBooleanOperators
equal, isFalse, isTrue, notEqualMethods inherited from interface com.speedment.jpastreamer.field.trait.HasBooleanValue
getAsBoolean, getterMethods inherited from interface com.speedment.jpastreamer.field.trait.HasColumnName
columnNameMethods inherited from interface com.speedment.runtime.compute.ToBoolean
asDouble, asInt, asLong, compare, compose, composeNullable, expressionType, hash, map, mapToDoubleMethods inherited from interface com.speedment.common.function.ToBooleanFunction
test
-
Method Details
-
create
static <ENTITY> BooleanField<ENTITY> create(Class<ENTITY> table, String columnName, BooleanGetter<ENTITY> getter, boolean unique) Creates a newBooleanFieldusing the default implementation.- Type Parameters:
ENTITY- entity type- Parameters:
table- the table that the field belongs tocolumnName- the name of the database column the field representsgetter- method reference to getter in entityunique- if column only contains unique values- Returns:
- the created field
-
applyAsBoolean
-
getField
Description copied from interface:BooleanFieldComparatorGets the field that is being compared.- Specified by:
getFieldin interfaceBooleanFieldComparator<ENTITY>- Specified by:
getFieldin interfaceFieldComparator<ENTITY>- Returns:
- the compared field
-