ENTITY
- the entity typeD
- the database typeV
- the field value typeFK
- the foreign entity typepublic interface ComparableForeignKeyField<ENTITY,D,V extends Comparable<? super V>,FK> extends ComparableField<ENTITY,D,V>, HasNullableFinder<ENTITY,FK>
Comparable
and that references another field using a foreign key.ComparableField
,
HasFinder
Modifier and Type | Method and Description |
---|---|
static <ENTITY,D,V extends Comparable<? super V>,FK> |
create(ColumnIdentifier<ENTITY> identifier,
ReferenceGetter<ENTITY,V> getter,
ReferenceSetter<ENTITY,V> setter,
HasComparableOperators<FK,V> referenced,
TypeMapper<D,V> typeMapper,
boolean unique)
Creates a new
ComparableField using the default implementation. |
ComparableForeignKeyField<ENTITY,D,V,FK> |
tableAlias(String tableAlias)
Creates and returns a new Field with the provided
tableAlias . |
create
asBigDecimal, asBoolean, asByte, asChar, asDouble, asEnum, asFloat, asInt, asLong, asShort, asString, mapToBigDecimalIfPresent, mapToBooleanIfPresent, mapToByteIfPresent, mapToCharIfPresent, mapToDoubleIfPresent, mapToEnumIfPresent, mapToFloatIfPresent, mapToIntIfPresent, mapToLongIfPresent, mapToShortIfPresent, mapToStringIfPresent
isNotNull, isNull
get, getter, set, setter, setTo, typeMapper
isUnique, tableAlias
findColumn, identifier
between, between, comparator, comparatorNullFieldsFirst, equal, greaterOrEqual, greaterThan, in, in, lessOrEqual, lessThan, notBetween, notBetween, notEqual, notIn, notIn, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
compare
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder
nullableFinder
backwardFinder, finder, getReferencedField
static <ENTITY,D,V extends Comparable<? super V>,FK> ComparableForeignKeyField<ENTITY,D,V,FK> create(ColumnIdentifier<ENTITY> identifier, ReferenceGetter<ENTITY,V> getter, ReferenceSetter<ENTITY,V> setter, HasComparableOperators<FK,V> referenced, TypeMapper<D,V> typeMapper, boolean unique)
ComparableField
using the default implementation.ENTITY
- entity typeD
- database typeV
- field value typeFK
- foreign entity typeidentifier
- column that this field representsgetter
- method reference to the getter in the entitysetter
- method reference to the setter in the entityreferenced
- field in the foreign entity that is referencedtypeMapper
- type mapper that is appliedunique
- represented column only contains unique valuesComparableForeignKeyField<ENTITY,D,V,FK> tableAlias(String tableAlias)
Field
tableAlias
. The new Field
will retain all other properties from this field except the tableAlias.tableAlias
in interface ComparableField<ENTITY,D,V extends Comparable<? super V>>
tableAlias
in interface Field<ENTITY>
tableAlias
in interface ReferenceField<ENTITY,D,V extends Comparable<? super V>>
tableAlias
- the table alias to use in the new fieldtableAlias
Copyright © 2018 Speedment, Inc.. All rights reserved.