ENTITY
- entity typeD
- database type@GeneratedCode(value="Speedment") public interface BooleanField<ENTITY,D> extends Field<ENTITY>, HasBooleanValue<ENTITY,D>, ToBoolean<ENTITY>, BooleanFieldComparator<ENTITY,D>, HasBooleanOperators<ENTITY>
boolean
value.
Generated by com.speedment.sources.pattern.FieldPattern.
Modifier and Type | Method and Description |
---|---|
default boolean |
applyAsBoolean(ENTITY entity)
Applies this function to the given argument.
|
static <ENTITY,D> BooleanField<ENTITY,D> |
create(ColumnIdentifier<ENTITY> identifier,
BooleanGetter<ENTITY> getter,
BooleanSetter<ENTITY> setter,
TypeMapper<D,Boolean> typeMapper,
boolean unique)
Creates a new
BooleanField using the default implementation. |
default BooleanField<ENTITY,D> |
getField()
Gets the field that is being compared.
|
BooleanField<ENTITY,D> |
tableAlias(String tableAlias)
Creates and returns a new Field with the provided
tableAlias . |
getAsBoolean, getter, set, setter, setTo, typeMapper
asDouble, asInt, asLong, compare, compose, composeNullable, expressionType, hash, map, mapToDouble, of
reversed
getNullOrder, isReversed
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
equal, isFalse, isTrue, notEqual
isUnique, tableAlias
findColumn, identifier
static <ENTITY,D> BooleanField<ENTITY,D> create(ColumnIdentifier<ENTITY> identifier, BooleanGetter<ENTITY> getter, BooleanSetter<ENTITY> setter, TypeMapper<D,Boolean> typeMapper, boolean unique)
BooleanField
using the default implementation.ENTITY
- entity typeD
- database typeidentifier
- column that this field representsgetter
- method reference to getter in entitysetter
- method reference to setter in entitytypeMapper
- type mapper that is appliedunique
- if column only contains unique valuesBooleanField<ENTITY,D> tableAlias(String tableAlias)
Field
tableAlias
. The new Field
will retain all other properties from this field except the tableAlias.tableAlias
in interface Field<ENTITY>
tableAlias
- the table alias to use in the new fieldtableAlias
default boolean applyAsBoolean(ENTITY entity)
com.speedment.common.function.ToBooleanFunction
applyAsBoolean
in interface ToBoolean<ENTITY>
applyAsBoolean
in interface com.speedment.common.function.ToBooleanFunction<ENTITY>
entity
- the argumentdefault BooleanField<ENTITY,D> getField()
BooleanFieldComparator
getField
in interface BooleanFieldComparator<ENTITY,D>
getField
in interface FieldComparator<ENTITY>
Copyright © 2018 Speedment, Inc.. All rights reserved.