org.apache.james.mailbox.jpa.mail.model.openjpa
Class JPAMessage

java.lang.Object
  extended by org.apache.james.mailbox.store.mail.model.AbstractMessage<Long>
      extended by org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
          extended by org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage
All Implemented Interfaces:
Comparable<Message<Long>>, Message<Long>

@Entity(name="Message")
public class JPAMessage
extends AbstractJPAMessage


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
AbstractJPAMessage.MailboxIdUidKey
 
Constructor Summary
JPAMessage()
          Deprecated. 
JPAMessage(JPAMailbox mailbox, long uid, Date internalDate, int size, javax.mail.Flags flags, InputStream content, int bodyStartOctet, List<JPAHeader> headers, PropertyBuilder propertyBuilder)
           
JPAMessage(JPAMailbox mailbox, long uid, Message<?> message)
          Create a copy of the given message
 
Method Summary
 InputStream getBodyContent()
           
 InputStream getFullContent()
           
 
Methods inherited from class org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
createUserFlags, equals, getBodyStartOctet, getFullContentOctets, getHeaders, getInternalDate, getMailbox, getMailboxId, getMediaType, getProperties, getSubType, getTextualLineCount, getUid, hashCode, isAnswered, isDeleted, isDraft, isFlagged, isRecent, isSeen, setFlags, setMailbox, setUid, 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
 

Constructor Detail

JPAMessage

@Deprecated
public JPAMessage()
Deprecated. 


JPAMessage

public JPAMessage(JPAMailbox mailbox,
                  long uid,
                  Date internalDate,
                  int size,
                  javax.mail.Flags flags,
                  InputStream content,
                  int bodyStartOctet,
                  List<JPAHeader> headers,
                  PropertyBuilder propertyBuilder)
           throws MailboxException
Throws:
MailboxException

JPAMessage

public JPAMessage(JPAMailbox mailbox,
                  long uid,
                  Message<?> message)
           throws MailboxException
Create a copy of the given message

Parameters:
message -
Throws:
MailboxException
Method Detail

getFullContent

public InputStream getFullContent()
                           throws IOException
Throws:
IOException

getBodyContent

public InputStream getBodyContent()
                           throws IOException
Throws:
IOException


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.