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, NULLABLE_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()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUID
getUUIDObject()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.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)
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.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()
Description copied from interface:IUUIDEntity
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopes
orproject scope
.- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntity
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopes
orproject scope
.- Specified by:
getUUIDObject
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
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)
Description copied from interface:IUUIDEntity
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopes
orproject scope
.- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
-