Interface HasCharValue<ENTITY>

Type Parameters:
ENTITY - entity type
All Superinterfaces:
Field<ENTITY>, HasColumnName, HasGetter<ENTITY>, HasTable<ENTITY>
All Known Subinterfaces:
CharField<ENTITY>

public interface HasCharValue<ENTITY> extends Field<ENTITY>
A representation of an Entity field that is a primitive char type.
Since:
3.0.0
Author:
Emil Forslund
  • Method Summary

    Modifier and Type
    Method
    Description
    default char
    getAsChar(ENTITY entity)
    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.HasColumnName

    columnName

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

    table
  • Method Details

    • getter

      GetChar<ENTITY> 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
    • getAsChar

      default char getAsChar(ENTITY entity)
      Gets the value from the Entity field.
      Parameters:
      entity - the entity
      Returns:
      the value of the field