Interface EntityViewProxy

All Known Subinterfaces:
DirtyStateTrackable, MutableStateTrackable

public interface EntityViewProxy
Every entity view object implements this interface to give access to known attributes and metamodel information.
Since:
1.2.0
Author:
Christian Beikov
  • Method Details

    • $$_getJpaManagedClass

      Class<?> $$_getJpaManagedClass()
      Returns the JPA managed type for which this entity view object is a projection.
      Returns:
      The JPA managed type
    • $$_getJpaManagedBaseClass

      Class<?> $$_getJpaManagedBaseClass()
      Returns the base JPA managed type for which this entity view object is a projection. This is the base entity type if $$_getJpaManagedClass() is an inheritance subtype.
      Returns:
      The base JPA managed type
      Since:
      1.4.0
    • $$_getEntityViewClass

      Class<?> $$_getEntityViewClass()
      Returns the entity view type of this object.
      Returns:
      The entity view type
    • $$_isNew

      boolean $$_isNew()
      Whether the instance was created via EntityViewManager.create(Class) and will cause an entity to be persisted during an update.
      Returns:
      True if will cause persist, otherwise false
    • $$_isReference

      boolean $$_isReference()
      Whether the instance was created via EntityViewManager.getReference(Class, Object).
      Returns:
      True if the instance is a reference, otherwise false
      Since:
      1.5.0
    • $$_getId

      Object $$_getId()
      Returns the identifier object of this entity view if it has one, otherwise null.
      Returns:
      The identifier or null
    • $$_getVersion

      Object $$_getVersion()
      Returns the version object of this entity view if it has one, otherwise null.
      Returns:
      The version or null