org.apache.james.mailbox.jpa
Class JPAMessageManager

java.lang.Object
  extended by org.apache.james.mailbox.store.StoreMessageManager<Id>
      extended by org.apache.james.mailbox.store.MapperStoreMessageManager<java.lang.Long>
          extended by org.apache.james.mailbox.jpa.JPAMessageManager
All Implemented Interfaces:
MessageManager
Direct Known Subclasses:
OpenJPAMessageManager

public class JPAMessageManager
extends MapperStoreMessageManager<java.lang.Long>

Abstract base class which should be used from JPA 2.0 implementations


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.mailbox.MessageManager
MessageManager.MetaData
 
Constructor Summary
JPAMessageManager(JPAMailboxSessionMapperFactory mapperFactory, MailboxEventDispatcher dispatcher, Mailbox<java.lang.Long> mailbox)
           
 
Method Summary
protected  Header createHeader(int lineNumber, java.lang.String name, java.lang.String value)
           
protected  MailboxMembership<java.lang.Long> createMessage(java.util.Date internalDate, int size, int bodyStartOctet, java.io.InputStream document, javax.mail.Flags flags, java.util.List<Header> headers, PropertyBuilder propertyBuilder)
           
 
Methods inherited from class org.apache.james.mailbox.store.MapperStoreMessageManager
appendMessageToStore, copy, countUnseenMessagesInMailbox, deleteMarkedInMailbox, findFirstUnseenMessageUid, getMessageCount, getMessages, recent, search, updateFlags
 
Methods inherited from class org.apache.james.mailbox.store.StoreMessageManager
addListener, appendMessage, copyTo, expunge, getDispatcher, getMailboxEntity, getMetaData, isWriteable, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAMessageManager

public JPAMessageManager(JPAMailboxSessionMapperFactory mapperFactory,
                         MailboxEventDispatcher dispatcher,
                         Mailbox<java.lang.Long> mailbox)
                  throws MailboxException
Throws:
MailboxException
Method Detail

createMessage

protected MailboxMembership<java.lang.Long> createMessage(java.util.Date internalDate,
                                                          int size,
                                                          int bodyStartOctet,
                                                          java.io.InputStream document,
                                                          javax.mail.Flags flags,
                                                          java.util.List<Header> headers,
                                                          PropertyBuilder propertyBuilder)
                                                   throws MailboxException
Specified by:
createMessage in class StoreMessageManager<java.lang.Long>
Throws:
MailboxException

createHeader

protected Header createHeader(int lineNumber,
                              java.lang.String name,
                              java.lang.String value)
Specified by:
createHeader in class StoreMessageManager<java.lang.Long>


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