Class MCRObjectInfoEntity

java.lang.Object
org.mycore.backend.jpa.objectinfo.MCRObjectInfoEntity
All Implemented Interfaces:
MCRObjectInfo

@Entity public class MCRObjectInfoEntity extends Object implements MCRObjectInfo
  • Constructor Details

    • MCRObjectInfoEntity

      public MCRObjectInfoEntity()
  • Method Details

    • getId

      public MCRObjectID getId()
      Specified by:
      getId in interface MCRObjectInfo
      Returns:
      the object id
    • setId

      public void setId(MCRObjectID id)
    • getObjectProject

      public String getObjectProject()
      Specified by:
      getObjectProject in interface MCRObjectInfo
      Returns:
      the project encoded in the object id
    • setObjectProject

      public void setObjectProject(String objectProject)
      This method does nothing and is only to satisfy JPA
      Parameters:
      objectProject - ignored parameter
    • getObjectType

      public String getObjectType()
      Specified by:
      getObjectType in interface MCRObjectInfo
      Returns:
      the type encoded in the object id
    • setObjectType

      public void setObjectType(String objectType)
      This method does nothing and is only to satisfy JPA
      Parameters:
      objectType - ignored parameter
    • getObjectNumber

      public int getObjectNumber()
      Specified by:
      getObjectNumber in interface MCRObjectInfo
      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

      public Instant getCreateDate()
      Specified by:
      getCreateDate in interface MCRObjectInfo
      Returns:
      the creation date of the object
    • setCreateDate

      public void setCreateDate(Instant createDate)
      Updates the creation date of object in the Database
      Parameters:
      createDate - the creation date
    • getModifyDate

      public Instant getModifyDate()
      Specified by:
      getModifyDate in interface MCRObjectInfo
      Returns:
      the last modify date of the object
    • setModifyDate

      public void setModifyDate(Instant modifyDate)
      Updates the last modify date of object in the Database
      Parameters:
      modifyDate - the last modify date
    • getModifiedBy

      public String getModifiedBy()
      Specified by:
      getModifiedBy in interface MCRObjectInfo
      Returns:
      the user which last modified the object
    • setModifiedBy

      public void setModifiedBy(String modifiedBy)
      Changes the user which last modified the object in the Database
      Parameters:
      modifiedBy - the user
    • getCreatedBy

      public String getCreatedBy()
      Specified by:
      getCreatedBy in interface MCRObjectInfo
      Returns:
      returns the user which created the object.
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Changes the user which created the object in the Database
      Parameters:
      createdBy - the user
    • getDeletedBy

      public String getDeletedBy()
      Specified by:
      getDeletedBy in interface MCRObjectInfo
      Returns:
      returns the user which deleted the object.
    • setDeletedBy

      public void setDeletedBy(String deletedBy)
      Changes the user which deleted the object in the Database
      Parameters:
      deletedBy - the user
    • getState

      public String getState()
      Specified by:
      getState in interface MCRObjectInfo
      Returns:
      the state classification category id e.G. state:submitted
    • setState

      public void setState(String state)
      Changes the state of the object in the Database
      Parameters:
      state - the state classification category id
    • getDeleteDate

      public Instant getDeleteDate()
      Specified by:
      getDeleteDate in interface MCRObjectInfo
      Returns:
      the date when the object was deleted.
    • setDeleteDate

      public void setDeleteDate(Instant deleteddate)
      changes the date when the object was deleted.
      Parameters:
      deleteddate - the date
    • toString

      public String toString()
      Overrides:
      toString in class Object