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

java.lang.Object
  extended by org.apache.james.mailbox.store.mail.model.AbstractMessage
      extended by org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
          extended by org.apache.james.mailbox.jpa.mail.model.openjpa.JPAStreamingMessage
All Implemented Interfaces:
Message

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

JPA implementation of AbstractJPAMessage which use openjpas Persistent type to be able to stream the message content without loading it into the memory at all. This is not supported for all DB's yet. See http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_mapping_jpa.html If your DB is not supported by this, use JPAMessage


Constructor Summary
JPAStreamingMessage()
          Deprecated. 
JPAStreamingMessage(java.io.InputStream content, long contentOctets, int bodyStartOctet, java.util.List<JPAHeader> headers, PropertyBuilder propertyBuilder)
           
JPAStreamingMessage(Message message)
          Create a copy of the given message
 
Method Summary
protected  java.io.InputStream getRawFullContent()
           
 
Methods inherited from class org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
equals, getBodyStartOctet, getFullContentOctets, getHeaders, getMediaType, getProperties, getSubType, getTextualLineCount, hashCode, toString
 
Methods inherited from class org.apache.james.mailbox.store.mail.model.AbstractMessage
getBodyContent, getBodyOctets, getFullContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPAStreamingMessage

@Deprecated
public JPAStreamingMessage()
Deprecated. 


JPAStreamingMessage

public JPAStreamingMessage(java.io.InputStream content,
                           long contentOctets,
                           int bodyStartOctet,
                           java.util.List<JPAHeader> headers,
                           PropertyBuilder propertyBuilder)

JPAStreamingMessage

public JPAStreamingMessage(Message message)
                    throws java.io.IOException
Create a copy of the given message

Parameters:
message -
Throws:
java.io.IOException
Method Detail

getRawFullContent

protected java.io.InputStream getRawFullContent()
Specified by:
getRawFullContent in class AbstractMessage


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