org.zeroexchange.model.message
Class Message
java.lang.Object
org.zeroexchange.model.Persistent
org.zeroexchange.model.IntegerPKPersistent
org.zeroexchange.model.message.Message
- All Implemented Interfaces:
- Serializable, Identifiable<Integer>
- Direct Known Subclasses:
- SystemMessage, UserMessage
@Entity
public class Message
- extends IntegerPKPersistent
The message allows users communicate
with each other and be informed concerning
system's events.
- Author:
- black
- See Also:
- Serialized Form
FIELD_RECIPIENT
public static final String FIELD_RECIPIENT
- See Also:
- Constant Field Values
FIELD_READDATE
public static final String FIELD_READDATE
- See Also:
- Constant Field Values
FIELD_DELIVERY_DATE
public static final String FIELD_DELIVERY_DATE
- See Also:
- Constant Field Values
FIELD_SUBJECT
public static final String FIELD_SUBJECT
- See Also:
- Constant Field Values
Message
public Message()
getRecipient
public User getRecipient()
setRecipient
public void setRecipient(User recipient)
getSubject
public String getSubject()
setSubject
public void setSubject(String subject)
getMessage
public String getMessage()
- Returns:
- the message
setMessage
public void setMessage(String message)
- Parameters:
message
- the message to set
getReadDate
public Date getReadDate()
- Returns:
- the readDate
setReadDate
public void setReadDate(Date readDate)
- Parameters:
readDate
- the readDate to set
getDeliveryDate
public Date getDeliveryDate()
- Returns:
- the deliveryDate
setDeliveryDate
public void setDeliveryDate(Date deliveryDate)
- Parameters:
deliveryDate
- the deliveryDate to set
Copyright © 2013. All Rights Reserved.