Package org.dspace.content
Class EntityType
java.lang.Object
org.dspace.content.EntityType
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether two entity types are equal based on the id and the labelgetID()The standard getter for the ID of this EntityTypegetLabel()The standard getter for the label of this EntityTypeinthashCode()Returns a hash code value for the object.voidThe standard setter for the ID of this EntityTypevoidThe standard setter for the label of this EntityType
-
Field Details
-
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
The standard setter for the ID of this EntityType- Parameters:
id- The ID that this EntityType's ID will be set to
-
getLabel
The standard getter for the label of this EntityType- Returns:
- The label for this EntityType
-
setLabel
The standard setter for the label of this EntityType- Parameters:
label- The label that this EntityType's label will be set to
-
getID
The standard getter for the ID of this EntityType- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- The ID for this EntityType
-
equals
Determines whether two entity types are equal based on the id and the label -
hashCode
public int hashCode()Returns a hash code value for the object.
-