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 entityV- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the values of the remote entity as an Enum valuevoidsetEnumValue(V enumValue) Set the value of the remote entity as an Enum valueMethods inherited from class io.vertigo.datastore.impl.entitystore.StoreVAccessor
lazyGet, load, loadIfAbsentMethods inherited from class io.vertigo.datamodel.data.model.VAccessor
get, getId, getRole, getUID, isLoaded, set, setId, setUID
-
Constructor Details
-
EnumStoreVAccessor
Constructor.- Parameters:
clazz- the entity classrole- the role of the association (case of multiple associations with the same entity)
-
-
Method Details
-
getEnumValue
Retrieves the values of the remote entity as an Enum value- Returns:
- the enum value representing the distant entity
-
setEnumValue
Set the value of the remote entity as an Enum value- Parameters:
enumValue-
-