Interface HasReferenceValue<ENTITY,V>

Type Parameters:
ENTITY - the entity type
V - the field value type
All Superinterfaces:
Field<ENTITY>, HasColumnName, HasGetter<ENTITY>, HasTable<ENTITY>
All Known Subinterfaces:
ComparableField<ENTITY,V>, EnumField<ENTITY,E>, ReferenceField<ENTITY,V>, StringField<ENTITY>

public interface HasReferenceValue<ENTITY,V> extends Field<ENTITY>
A representation of an Entity field that is a reference type (eg Integer and not int).
Since:
2.2.0
Author:
Per Minborg, Emil Forslund
  • Method Summary

    Modifier and Type
    Method
    Description
    default V
    Gets the value form 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.HasColumnName

    columnName

    Methods inherited from interface com.speedment.jpastreamer.field.trait.HasTable

    table
  • Method Details

    • getter

      Description copied from interface: HasGetter
      Returns a reference to the getter for this field.
      Specified by:
      getter in interface HasGetter<ENTITY>
      Returns:
      the getter
    • get

      default V get(ENTITY e)
      Gets the value form the Entity field.
      Parameters:
      e - entity
      Returns:
      the field value