Class EnumStoreVAccessor<E extends io.vertigo.datamodel.data.model.Entity,V extends Enum<V> & io.vertigo.datamodel.data.model.MasterDataEnum<E>>

java.lang.Object
io.vertigo.datamodel.data.model.VAccessor<E>
io.vertigo.datastore.impl.entitystore.StoreVAccessor<E>
io.vertigo.datastore.impl.entitystore.EnumStoreVAccessor<E,V>
Type Parameters:
E - type of the remote entity
V - type of the enum valuetype
All Implemented Interfaces:
Serializable

public final class EnumStoreVAccessor<E extends io.vertigo.datamodel.data.model.Entity,V extends Enum<V> & io.vertigo.datamodel.data.model.MasterDataEnum<E>> extends StoreVAccessor<E>
Accessor specialized for Enum access
Author:
mlaroche
See Also:
  • Constructor Details

    • EnumStoreVAccessor

      public EnumStoreVAccessor(Class<E> clazz, String role, Class<V> enumClass)
      Constructor.
      Parameters:
      clazz - the entity class
      role - the role of the association (case of multiple associations with the same entity)
  • Method Details

    • getEnumValue

      public V getEnumValue()
      Retrieves the values of the remote entity as an Enum value
      Returns:
      the enum value representing the distant entity
    • setEnumValue

      public void setEnumValue(V enumValue)
      Set the value of the remote entity as an Enum value
      Parameters:
      enumValue -