|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.db.JbpmSessionFactory
JbpmContext
and JbpmConfiguration
instead.
public class 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)
Deprecated. |
|
JbpmSessionFactory(org.hibernate.cfg.Configuration configuration,
org.hibernate.SessionFactory sessionFactory)
Deprecated. |
Method Summary | |
---|---|
static JbpmSessionFactory |
buildJbpmSessionFactory()
Deprecated. |
static JbpmSessionFactory |
buildJbpmSessionFactory(org.hibernate.cfg.Configuration configuration)
Deprecated. |
static JbpmSessionFactory |
buildJbpmSessionFactory(java.lang.String configResource)
Deprecated. |
static org.hibernate.SessionFactory |
buildSessionFactory(org.hibernate.cfg.Configuration configuration)
Deprecated. |
static org.hibernate.cfg.Configuration |
createConfiguration()
Deprecated. |
static org.hibernate.cfg.Configuration |
createConfiguration(java.lang.String configResource)
Deprecated. |
org.hibernate.cfg.Configuration |
getConfiguration()
Deprecated. |
static JbpmSessionFactory |
getInstance()
Deprecated. a singleton is kept in JbpmSessionFactory as a convenient central location. |
JbpmSchema |
getJbpmSchema()
Deprecated. |
org.hibernate.SessionFactory |
getSessionFactory()
Deprecated. |
boolean |
isHibernatableWithLongId(java.lang.Class clazz)
Deprecated. checks if the given class is persistable with hibernate and has an id of type long. |
boolean |
isHibernatableWithStringId(java.lang.Class clazz)
Deprecated. checks if the given class is persistable with hibernate and has an id of type string. |
JbpmSession |
openJbpmSession()
Deprecated. obtains a jdbc connection as specified in the hibernate configurations and creates a DbSession with it. |
JbpmSession |
openJbpmSession(java.sql.Connection jdbcConnection)
Deprecated. creates a DbSession around the given connection. |
JbpmSession |
openJbpmSession(org.hibernate.Session session)
Deprecated. |
JbpmSession |
openJbpmSessionAndBeginTransaction()
Deprecated. |
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 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 |