org.apache.james.mailbox.jpa
Class JPAMailboxSessionMapperFactory

java.lang.Object
  extended by org.apache.james.mailbox.store.MailboxSessionMapperFactory<java.lang.Long>
      extended by org.apache.james.mailbox.jpa.JPAMailboxSessionMapperFactory
All Implemented Interfaces:
RequestAware, MailboxMapperFactory<java.lang.Long>, MessageMapperFactory<java.lang.Long>, SubscriptionMapperFactory

public class JPAMailboxSessionMapperFactory
extends MailboxSessionMapperFactory<java.lang.Long>

JPA implementation of MailboxSessionMapperFactory


Field Summary
 
Fields inherited from class org.apache.james.mailbox.store.MailboxSessionMapperFactory
MAILBOXMAPPER, MESSAGEMAPPER, SUBSCRIPTIONMAPPER
 
Constructor Summary
JPAMailboxSessionMapperFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
           
JPAMailboxSessionMapperFactory(javax.persistence.EntityManagerFactory entityManagerFactory, char delimiter)
           
 
Method Summary
 javax.persistence.EntityManager createEntityManager()
          Return a new EntityManager instance
 MailboxMapper<java.lang.Long> createMailboxMapper(MailboxSession session)
           
 MessageMapper<java.lang.Long> createMessageMapper(MailboxSession session)
           
 SubscriptionMapper createSubscriptionMapper(MailboxSession session)
           
 
Methods inherited from class org.apache.james.mailbox.store.MailboxSessionMapperFactory
endProcessingRequest, getMailboxMapper, getMessageMapper, getSubscriptionMapper, startProcessingRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAMailboxSessionMapperFactory

public JPAMailboxSessionMapperFactory(javax.persistence.EntityManagerFactory entityManagerFactory)

JPAMailboxSessionMapperFactory

public JPAMailboxSessionMapperFactory(javax.persistence.EntityManagerFactory entityManagerFactory,
                                      char delimiter)
Method Detail

createMailboxMapper

public MailboxMapper<java.lang.Long> createMailboxMapper(MailboxSession session)
Specified by:
createMailboxMapper in class MailboxSessionMapperFactory<java.lang.Long>

createMessageMapper

public MessageMapper<java.lang.Long> createMessageMapper(MailboxSession session)
Specified by:
createMessageMapper in class MailboxSessionMapperFactory<java.lang.Long>

createSubscriptionMapper

public SubscriptionMapper createSubscriptionMapper(MailboxSession session)
Specified by:
createSubscriptionMapper in class MailboxSessionMapperFactory<java.lang.Long>

createEntityManager

public javax.persistence.EntityManager createEntityManager()
Return a new EntityManager instance

Returns:
manager


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