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()
           
JPATestBean(javax.persistence.EntityManagerFactory constructorEMF, javax.persistence.EntityManager constructorEM)
           
 
Method Summary
 boolean constructorPContextAvailable()
           
 boolean constructorPUnitAvailable()
           
 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(javax.persistence.EntityManagerFactory constructorEMF,
                   javax.persistence.EntityManager constructorEM)

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

constructorPUnitAvailable

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

constructorPContextAvailable

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


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