org.apache.aries.jpa.blueprint.itest
Class JPATestBean

java.lang.Object
  extended by org.apache.aries.jpa.blueprint.itest.JPATestBean

public class JPATestBean
extends Object


Constructor Summary
JPATestBean()
           
 
Method Summary
 boolean pContextAvailable()
           
 boolean pUnitAvailable()
           
 void setPersistenceContext(javax.persistence.EntityManager em)
           
 void setPersistenceUnit(javax.persistence.EntityManagerFactory emf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPATestBean

public JPATestBean()
Method Detail

setPersistenceUnit

public void setPersistenceUnit(javax.persistence.EntityManagerFactory emf)

setPersistenceContext

public void setPersistenceContext(javax.persistence.EntityManager em)

pUnitAvailable

public boolean pUnitAvailable()
Returns:
True if we sucessfully called a method on the EMF

pContextAvailable

public boolean pContextAvailable()
Returns:
True if we sucessfully called a method on the EM


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