Class MCRObjectInfoEntity
java.lang.Object
org.mycore.backend.jpa.objectinfo.MCRObjectInfoEntity
- All Implemented Interfaces:
MCRObjectInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
int
getState()
void
setCreateDate
(Instant createDate) Updates the creation date of object in the Databasevoid
setCreatedBy
(String createdBy) Changes the user which created the object in the Databasevoid
setDeleteDate
(Instant deleteddate) changes the date when the object was deleted.void
setDeletedBy
(String deletedBy) Changes the user which deleted the object in the Databasevoid
setId
(MCRObjectID id) void
setModifiedBy
(String modifiedBy) Changes the user which last modified the object in the Databasevoid
setModifyDate
(Instant modifyDate) Updates the last modify date of object in the Databasevoid
setObjectNumber
(int objectNumber) This method does nothing and is only to satisfy JPAvoid
setObjectProject
(String objectProject) This method does nothing and is only to satisfy JPAvoid
setObjectType
(String objectType) This method does nothing and is only to satisfy JPAvoid
Changes the state of the object in the DatabasetoString()
-
Constructor Details
-
MCRObjectInfoEntity
public MCRObjectInfoEntity()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceMCRObjectInfo
- Returns:
- the object id
-
setId
-
getObjectProject
- Specified by:
getObjectProject
in interfaceMCRObjectInfo
- Returns:
- the project encoded in the object id
-
setObjectProject
This method does nothing and is only to satisfy JPA- Parameters:
objectProject
- ignored parameter
-
getObjectType
- Specified by:
getObjectType
in interfaceMCRObjectInfo
- Returns:
- the type encoded in the object id
-
setObjectType
This method does nothing and is only to satisfy JPA- Parameters:
objectType
- ignored parameter
-
getObjectNumber
public int getObjectNumber()- Specified by:
getObjectNumber
in interfaceMCRObjectInfo
- Returns:
- the number encoded in the object id
-
setObjectNumber
public void setObjectNumber(int objectNumber) This method does nothing and is only to satisfy JPA- Parameters:
objectNumber
- ignored parameter
-
getCreateDate
- Specified by:
getCreateDate
in interfaceMCRObjectInfo
- Returns:
- the creation date of the object
-
setCreateDate
Updates the creation date of object in the Database- Parameters:
createDate
- the creation date
-
getModifyDate
- Specified by:
getModifyDate
in interfaceMCRObjectInfo
- Returns:
- the last modify date of the object
-
setModifyDate
Updates the last modify date of object in the Database- Parameters:
modifyDate
- the last modify date
-
getModifiedBy
- Specified by:
getModifiedBy
in interfaceMCRObjectInfo
- Returns:
- the user which last modified the object
-
setModifiedBy
Changes the user which last modified the object in the Database- Parameters:
modifiedBy
- the user
-
getCreatedBy
- Specified by:
getCreatedBy
in interfaceMCRObjectInfo
- Returns:
- returns the user which created the object.
-
setCreatedBy
Changes the user which created the object in the Database- Parameters:
createdBy
- the user
-
getDeletedBy
- Specified by:
getDeletedBy
in interfaceMCRObjectInfo
- Returns:
- returns the user which deleted the object.
-
setDeletedBy
Changes the user which deleted the object in the Database- Parameters:
deletedBy
- the user
-
getState
- Specified by:
getState
in interfaceMCRObjectInfo
- Returns:
- the state classification category id e.G. state:submitted
-
setState
Changes the state of the object in the Database- Parameters:
state
- the state classification category id
-
getDeleteDate
- Specified by:
getDeleteDate
in interfaceMCRObjectInfo
- Returns:
- the date when the object was deleted.
-
setDeleteDate
changes the date when the object was deleted.- Parameters:
deleteddate
- the date
-
toString
-