org.hibernate.ogm.jpa.impl
Class OgmEntityManagerFactory

java.lang.Object
  extended by org.hibernate.ogm.jpa.impl.OgmEntityManagerFactory
All Implemented Interfaces:
Serializable, javax.persistence.EntityManagerFactory, HibernateEntityManagerFactory

public class OgmEntityManagerFactory
extends Object
implements javax.persistence.EntityManagerFactory, HibernateEntityManagerFactory

Delegate most work to the underlying EntityManagerFactory. REturn an OgmEntityManager to cope with query operations

Author:
Emmanuel Bernard
See Also:
Serialized Form

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

Constructor Detail

OgmEntityManagerFactory

public OgmEntityManagerFactory(javax.persistence.EntityManagerFactory hibernateEmf)
Method Detail

createEntityManager

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

createEntityManager

public javax.persistence.EntityManager createEntityManager(Map map)
Specified by:
createEntityManager in interface javax.persistence.EntityManagerFactory

getSessionFactory

public SessionFactory getSessionFactory()
Specified by:
getSessionFactory in interface HibernateEntityManagerFactory

getCriteriaBuilder

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

getMetamodel

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

isOpen

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

close

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

getProperties

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

getCache

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

getPersistenceUnitUtil

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


Copyright © 2010-2011 Red Hat Middleware, LLC, Emmanuel Bernard and various contributors. All Rights Reserved