Class EntityType

java.lang.Object
org.dspace.content.EntityType
All Implemented Interfaces:
ReloadableEntity<Integer>

@Entity public class EntityType extends Object implements ReloadableEntity<Integer>
Class representing an EntityType This class contains an Integer ID that will be the unique value for this class and also the primary key This also has a label that will be used to identify what kind of EntityType this object is
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Integer
    The Integer ID used as a primary key for this database object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether two entity types are equal based on the id and the label
    The standard getter for the ID of this EntityType
    The standard getter for the label of this EntityType
    int
    Returns a hash code value for the object.
    void
    The standard setter for the ID of this EntityType
    void
    The standard setter for the label of this EntityType

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • id

      protected Integer id
      The Integer ID used as a primary key for this database object. This is generated by a sequence
  • Constructor Details

    • EntityType

      public EntityType()
  • Method Details

    • setId

      public void setId(Integer id)
      The standard setter for the ID of this EntityType
      Parameters:
      id - The ID that this EntityType's ID will be set to
    • getLabel

      public String getLabel()
      The standard getter for the label of this EntityType
      Returns:
      The label for this EntityType
    • setLabel

      public void setLabel(String label)
      The standard setter for the label of this EntityType
      Parameters:
      label - The label that this EntityType's label will be set to
    • getID

      public Integer getID()
      The standard getter for the ID of this EntityType
      Specified by:
      getID in interface ReloadableEntity<Integer>
      Returns:
      The ID for this EntityType
    • equals

      public boolean equals(Object obj)
      Determines whether two entity types are equal based on the id and the label
      Overrides:
      equals in class Object
      Parameters:
      obj - object to be compared
      Returns:
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      hash code value