@MappedSuperclass public abstract class AbstractJPAMessage extends AbstractMessage<Long>
AbstractMessage
Modifier and Type | Class and Description |
---|---|
static class |
AbstractJPAMessage.MailboxIdUidKey
Identifies composite key
|
Constructor and Description |
---|
AbstractJPAMessage()
Deprecated.
|
AbstractJPAMessage(JPAMailbox mailbox,
Date internalDate,
javax.mail.Flags flags,
long contentOctets,
int bodyStartOctet,
PropertyBuilder propertyBuilder) |
AbstractJPAMessage(JPAMailbox mailbox,
long uid,
long modSeq,
Message<?> original)
Constructs a copy of the given message.
|
Modifier and Type | Method and Description |
---|---|
protected String[] |
createUserFlags()
This implementation supports user flags
|
boolean |
equals(Object obj) |
protected int |
getBodyStartOctet()
Return the start octet of the body
|
long |
getFullContentOctets()
The number of octets contained in the full content of this document.
|
Date |
getInternalDate() |
JPAMailbox |
getMailbox()
Utility getter on Mailbox.
|
Long |
getMailboxId()
Return the mailbox id of the linked mailbox
|
String |
getMediaType()
Gets the top level MIME content media type.
|
long |
getModSeq()
Return the mod-sequence for the message
|
List<Property> |
getProperties()
Gets a read-only list of meta-data properties.
|
String |
getSubType()
Gets the MIME content subtype.
|
Long |
getTextualLineCount()
Gets the number of CRLF in a textual document.
|
long |
getUid()
Return the uid
|
int |
hashCode() |
boolean |
isAnswered()
Return if it was marked as answered
|
boolean |
isDeleted()
Return if it was mark as deleted
|
boolean |
isDraft()
Return if it was mark as draft
|
boolean |
isFlagged()
Return if it was flagged
|
boolean |
isRecent()
Return if it was marked as recent
|
boolean |
isSeen()
Return if it was marked as seen
|
void |
setFlags(javax.mail.Flags flags)
Set the Flags
|
void |
setMailbox(JPAMailbox mailbox)
Utility setter on Mailbox.
|
void |
setModSeq(long modSeq)
Set the mod-sequence for the message.
|
void |
setUid(long uid)
Set the uid for the message.
|
String |
toString() |
compareTo, createFlags, getBodyOctets, getFullContent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBodyContent, getHeaderContent
@Deprecated public AbstractJPAMessage()
public AbstractJPAMessage(JPAMailbox mailbox, Date internalDate, javax.mail.Flags flags, long contentOctets, int bodyStartOctet, PropertyBuilder propertyBuilder)
public AbstractJPAMessage(JPAMailbox mailbox, long uid, long modSeq, Message<?> original) throws MailboxException
mailbox
- new mailboxuid
- new UIDmodSeq
- new modSeqoriginal
- message to be copied, not nullIOException
MailboxException
public long getModSeq()
Message
Message.getModSeq()
public void setModSeq(long modSeq)
Message
Message.setModSeq(long)
public String getMediaType()
public String getSubType()
public List<Property> getProperties()
public Long getTextualLineCount()
public long getFullContentOctets()
Message
Message.getFullContentOctets()
protected int getBodyStartOctet()
AbstractMessage
getBodyStartOctet
in class AbstractMessage<Long>
public Date getInternalDate()
Message.getInternalDate()
public Long getMailboxId()
Message
Message.getMailboxId()
public long getUid()
Message
Message.getUid()
public boolean isAnswered()
Message
Message.isAnswered()
public boolean isDeleted()
Message
Message.isDeleted()
public boolean isDraft()
Message
Message.isDraft()
public boolean isFlagged()
Message
Message.isFlagged()
public boolean isRecent()
Message
Message.isRecent()
public boolean isSeen()
Message
Message.isSeen()
public void setUid(long uid)
Message
public void setFlags(javax.mail.Flags flags)
Message
Message.setFlags(javax.mail.Flags)
public JPAMailbox getMailbox()
protected String[] createUserFlags()
createUserFlags
in class AbstractMessage<Long>
public void setMailbox(JPAMailbox mailbox)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.