Package de.digitalcollections.model
Class UniqueObject
java.lang.Object
de.digitalcollections.model.UniqueObject
- Direct Known Subclasses:
Headword
,Identifiable
,Identifier
,IdentifierType
,License
,Predicate
,RenderingTemplate
,Tag
,UrlAlias
,User
An unique model object being identifiable and referencable by its universal unique UUID.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getUuid()
int
hashCode()
protected void
init()
Use to initialize member variables, used by default constructor and builderboolean
check if the technical system fields uuid, created, lastModified are filled, what is the indicator for "has been persisted in system".void
setCreated
(LocalDateTime created) void
setLastModified
(LocalDateTime lastModified) void
-
Field Details
-
created
-
lastModified
-
uuid
-
-
Constructor Details
-
UniqueObject
public UniqueObject()
-
-
Method Details
-
equals
-
getCreated
- Returns:
- the creation date of the object
-
getLastModified
- Returns:
- the date of last modification of the object
-
getUuid
- Returns:
- the universal unique id of the object
-
hashCode
public int hashCode() -
init
protected void init()Use to initialize member variables, used by default constructor and builder -
isPersisted
public boolean isPersisted()check if the technical system fields uuid, created, lastModified are filled, what is the indicator for "has been persisted in system".- Returns:
- true if unique object has been persisted already
-
setCreated
- Parameters:
created
- the creation date of the object
-
setLastModified
- Parameters:
lastModified
- the date of last modification of the object
-
setUuid
- Parameters:
uuid
- the universal unique id of the object
-