ENTITY
- entity typeD
- database typeFK_ENTITY
- foreign entity type@GeneratedCode(value="Speedment") public interface CharForeignKeyField<ENTITY,D,FK_ENTITY> extends CharField<ENTITY,D>, HasFinder<ENTITY,FK_ENTITY>
char
value that references
another column using a foreign key.
Generated by com.speedment.sources.pattern.ForeignKeyFieldPatternReferenceField
,
ComparableForeignKeyField
Modifier and Type | Method and Description |
---|---|
static <ENTITY,D,FK_ENTITY> |
create(ColumnIdentifier<ENTITY> identifier,
CharGetter<ENTITY> getter,
CharSetter<ENTITY> setter,
CharField<FK_ENTITY,D> referenced,
TypeMapper<D,Character> typeMapper,
boolean unique)
Creates a new
CharForeignKeyField using the default
implementation. |
CharForeignKeyField<ENTITY,D,FK_ENTITY> |
tableAlias(String tableAlias)
Creates and returns a new Field with the provided
tableAlias . |
applyAsChar, comparator, create, getField, reversed
getAsChar, getter, set, setter, setTo, typeMapper
between, between, comparatorNullFieldsFirst, equal, greaterOrEqual, greaterThan, in, in, lessOrEqual, lessThan, notBetween, notBetween, notEqual, notIn, notIn, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
isUnique, tableAlias
findColumn, identifier
asDouble, asInt, asLong, compare, compose, expressionType, hash, map, of, toLowerCase, toUpperCase
getNullOrder, isReversed
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder
backwardFinder, finder, getReferencedField
static <ENTITY,D,FK_ENTITY> CharForeignKeyField<ENTITY,D,FK_ENTITY> create(ColumnIdentifier<ENTITY> identifier, CharGetter<ENTITY> getter, CharSetter<ENTITY> setter, CharField<FK_ENTITY,D> referenced, TypeMapper<D,Character> typeMapper, boolean unique)
CharForeignKeyField
using the default
implementation.ENTITY
- entity typeD
- database typeFK_ENTITY
- 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
- if represented column only contains unique valuesCharForeignKeyField<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 CharField<ENTITY,D>
tableAlias
in interface Field<ENTITY>
tableAlias
- the table alias to use in the new fieldtableAlias
Copyright © 2019 Speedment, Inc.. All rights reserved.