Class Entity

    • Constructor Detail

      • Entity

        public Entity​(String id)
        Instantiates a new Group.
        Parameters:
        id - the id of this object
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public String getId()
        Gets the entity ID.
        Returns:
        the ID
      • apply

        public <T> T apply​(String columnName,
                           Class<T> clazz)
        Gets an entity value by column name.
        Specified by:
        apply in interface Row
        Parameters:
        columnName - the column name
        clazz - the type expected for a column
        Returns:
        the column value
      • findColumn

        protected abstract Object findColumn​(String columnName)
      • getEntityType

        public abstract EntityType getEntityType()
        Gets the entity type.
        Returns:
        the entity type