- Type Parameters:
ENTITY - entity type
- All Superinterfaces:
Field<ENTITY>, HasColumnName, HasGetter<ENTITY>, HasTable<ENTITY>
- All Known Subinterfaces:
LongField<ENTITY>
public interface HasLongValue<ENTITY>
extends Field<ENTITY>
A representation of an Entity field that is a primitive long type.
- Since:
- 3.0.0
- Author:
- Emil Forslund
-
Method Summary
default long
Gets the value from the Entity field.
Returns a reference to the getter for this field.
Methods inherited from interface com.speedment.jpastreamer.field.Field
isUnique
Methods inherited from interface com.speedment.jpastreamer.field.trait.HasTable
table
-
Method Details
-
getter
Returns a reference to the getter for this field.
- Specified by:
getter in interface HasGetter<ENTITY>
- Returns:
- the getter
-
getAsLong
default long getAsLong(ENTITY entity)
Gets the value from the Entity field.
- Parameters:
entity - the entity
- Returns:
- the value of the field