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. |
create
isNotNull, isNull
get, getter, set, setter, setTo, typeMapper
findColumn, identifier
between, between, comparator, comparatorNullFieldsFirst, comparatorNullFieldsLast, equal, greaterOrEqual, greaterThan, in, in, lessOrEqual, lessThan, notBetween, notBetween, notEqual, notIn, notIn
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 valuesCopyright © 2017 Speedment, Inc.. All rights reserved.