Class EntityInformation<E>

  • Type Parameters:
    E - Entity Type

    public class EntityInformation<E>
    extends Object
    Get Entity Information from the Entity class, or the entity object
    • Field Detail

      • entity

        public E entity
      • entityClass

        public final Class<E> entityClass
    • Constructor Detail

      • EntityInformation

        public EntityInformation​(@NonNull
                                 E entity)
    • Method Detail

      • getId

        public Object getId​(Object entity)
        Get ID from the object
        Parameters:
        entity - Entity Object
        Returns:
        ID
      • getVersion

        public Object getVersion​(Object entity)
        Get version of the entity
        Parameters:
        entity - Entity
        Returns:
        Version
      • getId

        public Object getId()
        Get the entity id from the set entity.
        Returns:
        ID
      • getVersion

        public Object getVersion()
        Get the entity version from the set entity.
        Returns:
        version
      • getEntityConfiguration

        public EntityConfiguration getEntityConfiguration()
        Get the entity configuration if exists, gets a default configuration otherwise.
        Returns:
        Entity configuration