net.csdn.jpa.context
Class JPAConfig

java.lang.Object
  extended by net.csdn.jpa.context.JPAConfig

public class JPAConfig
extends Object

BlogInfo: WilliamZhu Date: 12-6-26 Time: 下午9:19


Constructor Summary
JPAConfig(Map<String,String> _properties, String _configName)
           
 
Method Summary
protected  void clearJPAContext()
           
protected  void close()
           
 String getConfigName()
           
 JPAContext getJPAContext()
           
 boolean isEnabled()
           
 javax.persistence.EntityManager newEntityManager()
           
 JPAContext reInitJPAContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAConfig

public JPAConfig(Map<String,String> _properties,
                 String _configName)
Method Detail

getConfigName

public String getConfigName()

close

protected void close()

isEnabled

public boolean isEnabled()
Returns:
true 如果 entityManagerFactory 已经启动

newEntityManager

public javax.persistence.EntityManager newEntityManager()

getJPAContext

public JPAContext getJPAContext()

reInitJPAContext

public JPAContext reInitJPAContext()

clearJPAContext

protected void clearJPAContext()


Copyright © 2014. All Rights Reserved.