|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mailbox.store.mail.model.AbstractMessage<Long>
org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
@MappedSuperclass public abstract class AbstractJPAMessage
Abstract base class for JPA based implementations of AbstractMessage
| Nested Class Summary | |
|---|---|
static class |
AbstractJPAMessage.MailboxIdUidKey
Identifies composite key |
| Constructor Summary | |
|---|---|
AbstractJPAMessage()
Deprecated. |
|
AbstractJPAMessage(JPAMailbox mailbox,
long uid,
Date internalDate,
javax.mail.Flags flags,
long contentOctets,
int bodyStartOctet,
List<JPAHeader> headers,
PropertyBuilder propertyBuilder)
|
|
AbstractJPAMessage(JPAMailbox mailbox,
long uid,
Message<?> original)
Constructs a copy of the given message. |
|
| Method Summary | |
|---|---|
protected String[] |
createUserFlags()
This implementation supports user flags |
boolean |
equals(Object obj)
|
protected int |
getBodyStartOctet()
|
long |
getFullContentOctets()
|
List<Header> |
getHeaders()
|
Date |
getInternalDate()
|
JPAMailbox |
getMailbox()
Utility getter on Mailbox. |
Long |
getMailboxId()
|
String |
getMediaType()
Gets the top level MIME content media type. |
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()
|
int |
hashCode()
|
boolean |
isAnswered()
|
boolean |
isDeleted()
|
boolean |
isDraft()
|
boolean |
isFlagged()
|
boolean |
isRecent()
|
boolean |
isSeen()
|
void |
setFlags(javax.mail.Flags flags)
|
void |
setMailbox(JPAMailbox mailbox)
Utility setter on Mailbox. |
void |
setUid(long uid)
|
String |
toString()
|
| Methods inherited from class org.apache.james.mailbox.store.mail.model.AbstractMessage |
|---|
compareTo, createFlags, getBodyOctets |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.james.mailbox.store.mail.model.Message |
|---|
getBodyContent, getFullContent |
| Constructor Detail |
|---|
@Deprecated public AbstractJPAMessage()
public AbstractJPAMessage(JPAMailbox mailbox,
long uid,
Date internalDate,
javax.mail.Flags flags,
long contentOctets,
int bodyStartOctet,
List<JPAHeader> headers,
PropertyBuilder propertyBuilder)
public AbstractJPAMessage(JPAMailbox mailbox,
long uid,
Message<?> original)
throws MailboxException
mailboxId - new mailbox IDuid - new UIDoriginal - message to be copied, not null
IOException
MailboxException| Method Detail |
|---|
public List<Header> getHeaders()
Message.getHeaders()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String getMediaType()
public String getSubType()
public List<Property> getProperties()
public Long getTextualLineCount()
public long getFullContentOctets()
protected int getBodyStartOctet()
getBodyStartOctet in class AbstractMessage<Long>public Date getInternalDate()
MailboxMembershippublic Long getMailboxId()
MailboxMembershippublic long getUid()
MailboxMembershippublic boolean isAnswered()
MailboxMembershippublic boolean isDeleted()
MailboxMembershippublic boolean isDraft()
MailboxMembershippublic boolean isFlagged()
MailboxMembershippublic boolean isRecent()
MailboxMembershippublic boolean isSeen()
MailboxMembershippublic void setUid(long uid)
public void setFlags(javax.mail.Flags flags)
MailboxMembershippublic JPAMailbox getMailbox()
protected String[] createUserFlags()
createUserFlags in class AbstractMessage<Long>public void setMailbox(JPAMailbox mailbox)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||