ENTITY
- the entity typeD
- the database value typeV
- the field value typepublic interface ReferenceFieldTrait<ENTITY,D,V> extends FieldTrait
Integer
and not int
).Modifier and Type | Method and Description |
---|---|
default V |
get(ENTITY e)
Gets the value form the Entity field.
|
FieldIdentifier<ENTITY> |
getIdentifier()
Returns the unique identifier of this field.
|
Getter<ENTITY,V> |
getter()
Returns a reference to the getter of this field.
|
SpeedmentPredicate<ENTITY,D,V> |
isNotNull()
|
SpeedmentPredicate<ENTITY,D,V> |
isNull()
|
default ENTITY |
set(ENTITY e,
V value)
Sets the value in the given Entity
|
Setter<ENTITY,V> |
setter()
Returns a reference to the setter for this field.
|
FieldSetter<ENTITY,V> |
setTo(V value)
Creates and returns a FieldSetter with a given value.
|
TypeMapper<D,V> |
typeMapper()
Returns the type mapper of this field.
|
findColumn, isUnique
FieldIdentifier<ENTITY> getIdentifier()
FieldTrait
getIdentifier
in interface FieldTrait
Setter<ENTITY,V> setter()
Getter<ENTITY,V> getter()
TypeMapper<D,V> typeMapper()
default V get(ENTITY e)
e
- entitydefault ENTITY set(ENTITY e, V value)
e
- entityvalue
- to setFieldSetter<ENTITY,V> setTo(V value)
value
- to setSpeedmentPredicate<ENTITY,D,V> isNull()
true
, if and only if
this Field is null
SpeedmentPredicate<ENTITY,D,V> isNotNull()
true
, if and only if
this Field is not null
Copyright © 2016 Speedment, Inc.. All rights reserved.