Package de.xima.fc.entities
Class AInternalMessage
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AInternalMessage
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,ITransferable
,ITransferableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
InternalClientMessage
,InternalSystemMessage
@MappedSuperclass public abstract class AInternalMessage extends AbstractEntity implements IUUIDEntity
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_MESSAGE_CREATED
static String
ATTR_MESSAGE_PARAMS
static String
ATTR_MESSAGE_TYPE
static String
ATTR_READ
static String
COL_MESSAGE_CREATED
static String
COL_MESSAGE_PARAMS
static String
COL_MESSAGE_TYPE
static String
COL_READ
protected @NotNull @JsonObject String
messageParams
protected @NotNull EInternalMessageType
messageType
protected @javax.validation.constraints.NotNull boolean
read
protected @javax.validation.constraints.NotNull long
timestampCreated
protected UUID
uuid
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description AInternalMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDateTime
getDateTimeCreated(ZoneId zoneId)
Instant
getInstantCreated()
String
getMessageParams()
EInternalMessageType
getMessageType()
long
getTimestampCreated()
String
getUUID()
UUID
getUUIDObject()
ZonedDateTime
getZonedDateTimeCreated()
boolean
isRead()
void
setInstantCreated(Instant instantCreated)
void
setMessageParams(String messageParams)
void
setMessageType(EInternalMessageType messageType)
void
setRead(boolean read)
void
setTimestampCreated(long timestampCreated)
void
setUUID(String uuid)
void
setUUIDObject(UUID uuid)
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
ATTR_MESSAGE_CREATED
public static final String ATTR_MESSAGE_CREATED
- See Also:
- Constant Field Values
-
ATTR_MESSAGE_PARAMS
public static final String ATTR_MESSAGE_PARAMS
- See Also:
- Constant Field Values
-
ATTR_MESSAGE_TYPE
public static final String ATTR_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
ATTR_READ
public static final String ATTR_READ
- See Also:
- Constant Field Values
-
COL_MESSAGE_CREATED
public static final String COL_MESSAGE_CREATED
- See Also:
- Constant Field Values
-
COL_MESSAGE_PARAMS
public static final String COL_MESSAGE_PARAMS
- See Also:
- Constant Field Values
-
COL_MESSAGE_TYPE
public static final String COL_MESSAGE_TYPE
- See Also:
- Constant Field Values
-
COL_READ
public static final String COL_READ
- See Also:
- Constant Field Values
-
messageParams
@NotNull @JsonObject protected @NotNull @JsonObject String messageParams
-
messageType
@NotNull protected @NotNull EInternalMessageType messageType
-
read
@NotNull protected @javax.validation.constraints.NotNull boolean read
-
timestampCreated
@NotNull protected @javax.validation.constraints.NotNull long timestampCreated
-
uuid
protected UUID uuid
-
-
Method Detail
-
getDateTimeCreated
public LocalDateTime getDateTimeCreated(ZoneId zoneId)
-
getInstantCreated
public Instant getInstantCreated()
-
getMessageParams
public String getMessageParams()
-
getMessageType
public EInternalMessageType getMessageType()
-
getTimestampCreated
public long getTimestampCreated()
-
getUUID
public String getUUID()
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a context,
e.g.
Mandant
,Projekt
, ...
-
getUUIDObject
public UUID getUUIDObject()
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
getZonedDateTimeCreated
public ZonedDateTime getZonedDateTimeCreated()
-
isRead
public boolean isRead()
-
setInstantCreated
public void setInstantCreated(Instant instantCreated)
-
setMessageParams
public void setMessageParams(String messageParams)
-
setMessageType
public void setMessageType(EInternalMessageType messageType)
-
setRead
public void setRead(boolean read)
-
setTimestampCreated
public void setTimestampCreated(long timestampCreated)
-
setUUID
public void setUUID(String uuid)
- Specified by:
setUUID
in interfaceIUUIDEntity
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
-