org.kuali.rice.core.framework.persistence.jpa
Class NullEntityManagerFactory

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.jpa.NullEntityManagerFactory
All Implemented Interfaces:
javax.persistence.EntityManagerFactory

public class NullEntityManagerFactory
extends Object
implements javax.persistence.EntityManagerFactory

Null EntityManagerFactory that enables SharedEntityManagerBean to create a proxy when jpa is not enabled.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NullEntityManagerFactory()
           
 
Method Summary
 void close()
           
 javax.persistence.EntityManager createEntityManager()
           
 javax.persistence.EntityManager createEntityManager(Map arg0)
           
 javax.persistence.Cache getCache()
           
 javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
           
 javax.persistence.metamodel.Metamodel getMetamodel()
           
 javax.persistence.PersistenceUnitUtil getPersistenceUnitUtil()
           
 Map<String,Object> getProperties()
           
 boolean isOpen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullEntityManagerFactory

public NullEntityManagerFactory()
Method Detail

close

public void close()
Specified by:
close in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.close()

createEntityManager

public javax.persistence.EntityManager createEntityManager()
Specified by:
createEntityManager in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.createEntityManager()

createEntityManager

public javax.persistence.EntityManager createEntityManager(Map arg0)
Specified by:
createEntityManager in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.createEntityManager(java.util.Map)

isOpen

public boolean isOpen()
Specified by:
isOpen in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.isOpen()

getCache

public javax.persistence.Cache getCache()
Specified by:
getCache in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.getCache()

getCriteriaBuilder

public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
Specified by:
getCriteriaBuilder in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.getCriteriaBuilder()

getMetamodel

public javax.persistence.metamodel.Metamodel getMetamodel()
Specified by:
getMetamodel in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.getMetamodel()

getPersistenceUnitUtil

public javax.persistence.PersistenceUnitUtil getPersistenceUnitUtil()
Specified by:
getPersistenceUnitUtil in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.getPersistenceUnitUtil()

getProperties

public Map<String,Object> getProperties()
Specified by:
getProperties in interface javax.persistence.EntityManagerFactory
See Also:
EntityManagerFactory.getProperties()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.