Package org.dspace.content
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
-
-
Constructor Summary
Constructors Constructor Description EntityType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Determines whether two entity types are equal based on the id and the labelIntegergetID()The standard getter for the ID of this EntityTypeStringgetLabel()The standard getter for the label of this EntityTypeinthashCode()Returns a hash code value for the object.voidsetId(Integer id)The standard setter for the ID of this EntityTypevoidsetLabel(String label)The standard setter for the label of this EntityType
-
-
-
Field Detail
-
id
protected Integer id
The Integer ID used as a primary key for this database object. This is generated by a sequence
-
-
Method Detail
-
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:
getIDin interfaceReloadableEntity<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
-
-