ENTITY
- the entity typeD
- the database typeFK_ENTITY
- the foreign entity typepublic interface StringForeignKeyField<ENTITY,D,FK_ENTITY> extends StringField<ENTITY,D>, HasNullableFinder<ENTITY,FK_ENTITY>
StringField
,
HasFinder
Modifier and Type | Method and Description |
---|---|
static <ENTITY,D,FK> |
create(ColumnIdentifier<ENTITY> identifier,
ReferenceGetter<ENTITY,String> getter,
ReferenceSetter<ENTITY,String> setter,
StringField<FK,D> referenced,
TypeMapper<D,String> typeMapper,
boolean unique)
Creates a new
StringForeignKeyField using the default
implementation. |
StringForeignKeyField<ENTITY,D,FK_ENTITY> |
tableAlias(String tableAlias)
Creates and returns a new Field with the provided
tableAlias . |
apply, create, isNotNull, isNull
create
asBigDecimal, asBoolean, asByte, asChar, asDouble, asEnum, asFloat, asInt, asLong, asShort, asString, mapToBigDecimalIfPresent, mapToBooleanIfPresent, mapToByteIfPresent, mapToCharIfPresent, mapToDoubleIfPresent, mapToEnumIfPresent, mapToFloatIfPresent, mapToIntIfPresent, mapToLongIfPresent, mapToShortIfPresent, mapToStringIfPresent
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
contains, containsIgnoreCase, endsWith, endsWithIgnoreCase, equalIgnoreCase, isEmpty, isNotEmpty, notContains, notContainsIgnoreCase, notEndsWith, notEndsWithIgnoreCase, notEqualIgnoreCase, notStartsWith, notStartsWithIgnoreCase, startsWith, startsWithIgnoreCase
compare, compose, expressionType, hash, of, orElse, orElseGet, orThrow
isNotNull, isNull
nullableFinder
backwardFinder, finder, getReferencedField
static <ENTITY,D,FK> StringForeignKeyField<ENTITY,D,FK> create(ColumnIdentifier<ENTITY> identifier, ReferenceGetter<ENTITY,String> getter, ReferenceSetter<ENTITY,String> setter, StringField<FK,D> referenced, TypeMapper<D,String> typeMapper, boolean unique)
StringForeignKeyField
using the default
implementation.ENTITY
- entity typeD
- database 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 valuesStringForeignKeyField<ENTITY,D,FK_ENTITY> 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,String>
tableAlias
in interface Field<ENTITY>
tableAlias
in interface ReferenceField<ENTITY,D,String>
tableAlias
in interface StringField<ENTITY,D>
tableAlias
- the table alias to use in the new fieldtableAlias
Copyright © 2019 Speedment, Inc.. All rights reserved.