org.zeroexchange.model.message
Class Message

java.lang.Object
  extended by org.zeroexchange.model.Persistent
      extended by org.zeroexchange.model.IntegerPKPersistent
          extended by 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 Summary
static String FIELD_DELIVERY_DATE
           
static String FIELD_READDATE
           
static String FIELD_RECIPIENT
           
static String FIELD_SUBJECT
           
 
Fields inherited from interface org.zeroexchange.model.Identifiable
FIELD_ID
 
Constructor Summary
Message()
           
 
Method Summary
 Date getDeliveryDate()
           
 String getMessage()
           
 Date getReadDate()
           
 User getRecipient()
           
 String getSubject()
           
 void setDeliveryDate(Date deliveryDate)
           
 void setMessage(String message)
           
 void setReadDate(Date readDate)
           
 void setRecipient(User recipient)
           
 void setSubject(String subject)
           
 
Methods inherited from class org.zeroexchange.model.IntegerPKPersistent
equals, getId, hashCode, setId
 
Methods inherited from class org.zeroexchange.model.Persistent
getTransientValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Message

public Message()
Method Detail

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.