Class MCRObjectInfoEntityManager
java.lang.Object
org.mycore.backend.jpa.objectinfo.MCRObjectInfoEntityManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
creates a newMCRObjectInfoEntity
for an objectstatic void
Updates the state of the object info to be deleted (does notremove(MCRObject)
the object)static MCRObjectInfoEntity
getByID
(MCRObjectID id) loads aMCRObjectInfoEntity
from the databasestatic void
Removes object information from the Databasestatic void
static void
updates an object info of an object, if the object does not have an object info entity yet, then it will be created
-
Constructor Details
-
MCRObjectInfoEntityManager
public MCRObjectInfoEntityManager()
-
-
Method Details
-
removeAll
public static void removeAll() -
getByID
loads aMCRObjectInfoEntity
from the database- Parameters:
id
- the id of theMCRObjectInfoEntity
- Returns:
- null if MCRObjectEntity is not found
-
update
updates an object info of an object, if the object does not have an object info entity yet, then it will be created- Parameters:
obj
- the object which info should be updated
-
create
creates a newMCRObjectInfoEntity
for an object- Parameters:
obj
- the object
-
remove
Removes object information from the Database- Parameters:
object
- the object info which should be removed from the database
-
delete
Updates the state of the object info to be deleted (does notremove(MCRObject)
the object)- Parameters:
object
- the object which is deleteddeletedBy
- the user which deleted the objectdeletedDate
- the date at which the object was deleted
-