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 StringATTR_MESSAGE_CREATEDstatic StringATTR_MESSAGE_PARAMSstatic StringATTR_MESSAGE_TYPEstatic StringATTR_READstatic StringCOL_MESSAGE_CREATEDstatic StringCOL_MESSAGE_PARAMSstatic StringCOL_MESSAGE_TYPEstatic StringCOL_READprotected @NotNull @JsonObject StringmessageParamsprotected @NotNull EInternalMessageTypemessageTypeprotected @javax.validation.constraints.NotNull booleanreadprotected @javax.validation.constraints.NotNull longtimestampCreatedprotected UUIDuuid-
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 LocalDateTimegetDateTimeCreated(ZoneId zoneId)InstantgetInstantCreated()StringgetMessageParams()EInternalMessageTypegetMessageType()longgetTimestampCreated()StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.ZonedDateTimegetZonedDateTimeCreated()booleanisRead()voidsetInstantCreated(Instant instantCreated)voidsetMessageParams(String messageParams)voidsetMessageType(EInternalMessageType messageType)voidsetRead(boolean read)voidsetTimestampCreated(long timestampCreated)voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(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:IUUIDEntityGets 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 scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntityGets 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 scopesorproject scope.- Specified by:
getUUIDObjectin 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:IUUIDEntitySets 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 scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
-