org.eiichiro.gig.heroku
Class HerokuJPAEntityManager

java.lang.Object
  extended by org.eiichiro.jazzmaster.Component<javax.persistence.EntityManager>
      extended by org.eiichiro.gig.heroku.HerokuJPAEntityManager

@Request
public class HerokuJPAEntityManager
extends org.eiichiro.jazzmaster.Component<javax.persistence.EntityManager>

HerokuJPAEntityManager is a representing JPA 2.0 EntityManager for PostgreSQL-based Heroku database service.

Author:
Eiichiro Uchiumi

Constructor Summary
HerokuJPAEntityManager()
           
 
Method Summary
 void assemble()
          Lifecycle callback to assemble this instance with the EntityManager HerokuJPAEntityManagerFactory returns.
 void close()
          Lifecycle callback to close the EntityManager.
 javax.persistence.EntityManager instance()
          Returns the EntityManager this instance manages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HerokuJPAEntityManager

public HerokuJPAEntityManager()
Method Detail

assemble

@Activated
public void assemble()
Lifecycle callback to assemble this instance with the EntityManager HerokuJPAEntityManagerFactory returns.


close

@Passivated
public void close()
Lifecycle callback to close the EntityManager.


instance

public javax.persistence.EntityManager instance()
Returns the EntityManager this instance manages. The EntityManager may be null if the HerokuJPAEntityManagerFactory could not establish the connection to the database service.

Specified by:
instance in class org.eiichiro.jazzmaster.Component<javax.persistence.EntityManager>


Copyright © 2012 Eiichiro Uchiumi. All Rights Reserved.