|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.db.JbpmSessionFactory
creates JbpmSessions. Obtain a JbpmSessionFactory with
static JbpmSessionFactory jbpmSessionFactory = JbpmSessionFactory.buildJbpmSessionFactory();and store it somewhere static. It takes quite some time to create a DbSessionFactory, but you only have to do it once. After that, creating DbSession's is really fast.
Constructor Summary | |
JbpmSessionFactory(org.hibernate.cfg.Configuration configuration)
|
|
JbpmSessionFactory(org.hibernate.cfg.Configuration configuration,
org.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
static JbpmSessionFactory |
buildJbpmSessionFactory()
|
static JbpmSessionFactory |
buildJbpmSessionFactory(org.hibernate.cfg.Configuration configuration)
|
static JbpmSessionFactory |
buildJbpmSessionFactory(java.lang.String configResource)
|
static org.hibernate.SessionFactory |
buildSessionFactory(org.hibernate.cfg.Configuration configuration)
|
static org.hibernate.cfg.Configuration |
createConfiguration()
|
static org.hibernate.cfg.Configuration |
createConfiguration(java.lang.String configResource)
|
void |
evictCachedProcessDefinitions()
clears the process definitions from hibernate's second level cache. |
org.hibernate.cfg.Configuration |
getConfiguration()
|
static JbpmSessionFactory |
getInstance()
a singleton is kept in JbpmSessionFactory as a convenient central location. |
JbpmSchema |
getJbpmSchema()
|
org.hibernate.SessionFactory |
getSessionFactory()
|
boolean |
isHibernatableWithLongId(java.lang.Class clazz)
checks if the given class is persistable with hibernate and has an id of type long. |
boolean |
isHibernatableWithStringId(java.lang.Class clazz)
checks if the given class is persistable with hibernate and has an id of type string. |
JbpmSession |
openJbpmSession()
obtains a jdbc connection as specified in the hibernate configurations and creates a DbSession with it. |
JbpmSession |
openJbpmSession(java.sql.Connection jdbcConnection)
creates a DbSession around the given connection. |
JbpmSession |
openJbpmSession(org.hibernate.Session session)
|
JbpmSession |
openJbpmSessionAndBeginTransaction()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JbpmSessionFactory(org.hibernate.cfg.Configuration configuration)
public JbpmSessionFactory(org.hibernate.cfg.Configuration configuration, org.hibernate.SessionFactory sessionFactory)
Method Detail |
public static JbpmSessionFactory getInstance()
public static JbpmSessionFactory buildJbpmSessionFactory()
public static JbpmSessionFactory buildJbpmSessionFactory(java.lang.String configResource)
public static JbpmSessionFactory buildJbpmSessionFactory(org.hibernate.cfg.Configuration configuration)
public static org.hibernate.cfg.Configuration createConfiguration()
public static org.hibernate.cfg.Configuration createConfiguration(java.lang.String configResource)
public static org.hibernate.SessionFactory buildSessionFactory(org.hibernate.cfg.Configuration configuration)
public JbpmSession openJbpmSession()
public JbpmSession openJbpmSession(java.sql.Connection jdbcConnection)
public JbpmSession openJbpmSession(org.hibernate.Session session)
public JbpmSession openJbpmSessionAndBeginTransaction()
public org.hibernate.SessionFactory getSessionFactory()
public org.hibernate.cfg.Configuration getConfiguration()
public void evictCachedProcessDefinitions()
public boolean isHibernatableWithLongId(java.lang.Class clazz)
public boolean isHibernatableWithStringId(java.lang.Class clazz)
public JbpmSchema getJbpmSchema()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |