Package com.soffid.iam.spring
Class JbpmSession
- java.lang.Object
-
- com.soffid.iam.spring.JbpmSession
-
- All Implemented Interfaces:
Serializable
,org.hibernate.Session
public class JbpmSession extends Object implements org.hibernate.Session
- Author:
- bubu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JbpmSession(org.hibernate.Session proxy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.Transaction
beginTransaction()
void
cancelQuery()
protected void
checkMemoryUsage()
void
clear()
Connection
close()
Connection
connection()
boolean
contains(Object object)
org.hibernate.Criteria
createCriteria(Class persistentClass)
org.hibernate.Criteria
createCriteria(Class persistentClass, String alias)
org.hibernate.Criteria
createCriteria(String entityName)
org.hibernate.Criteria
createCriteria(String entityName, String alias)
org.hibernate.Query
createFilter(Object collection, String queryString)
org.hibernate.Query
createQuery(String queryString)
org.hibernate.SQLQuery
createSQLQuery(String queryString)
void
delete(Object object)
void
delete(String entityName, Object object)
void
disableFilter(String filterName)
Connection
disconnect()
org.hibernate.Filter
enableFilter(String filterName)
void
evict(Object object)
void
flush()
Object
get(Class clazz, Serializable id)
Object
get(Class clazz, Serializable id, org.hibernate.LockMode lockMode)
Object
get(String entityName, Serializable id)
Object
get(String entityName, Serializable id, org.hibernate.LockMode lockMode)
org.hibernate.CacheMode
getCacheMode()
org.hibernate.LockMode
getCurrentLockMode(Object object)
Collection<Object>
getDirtyEntities()
static Collection<Object>
getDirtyEntities(org.hibernate.Session session)
org.hibernate.Filter
getEnabledFilter(String filterName)
org.hibernate.EntityMode
getEntityMode()
String
getEntityName(Object object)
org.hibernate.FlushMode
getFlushMode()
Serializable
getIdentifier(Object object)
org.hibernate.Query
getNamedQuery(String queryName)
org.hibernate.Session
getSession(org.hibernate.EntityMode entityMode)
org.hibernate.SessionFactory
getSessionFactory()
org.hibernate.stat.SessionStatistics
getStatistics()
org.hibernate.Transaction
getTransaction()
boolean
isConnected()
boolean
isDirty()
boolean
isOpen()
Object
load(Class theClass, Serializable id)
Object
load(Class theClass, Serializable id, org.hibernate.LockMode lockMode)
void
load(Object object, Serializable id)
Object
load(String entityName, Serializable id)
Object
load(String entityName, Serializable id, org.hibernate.LockMode lockMode)
void
lock(Object object, org.hibernate.LockMode lockMode)
void
lock(String entityName, Object object, org.hibernate.LockMode lockMode)
Object
merge(Object object)
Object
merge(String entityName, Object object)
void
persist(Object object)
void
persist(String entityName, Object object)
void
reconnect()
void
reconnect(Connection connection)
void
refresh(Object object)
void
refresh(Object object, org.hibernate.LockMode lockMode)
void
replicate(Object object, org.hibernate.ReplicationMode replicationMode)
void
replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)
Serializable
save(Object object)
Serializable
save(String entityName, Object object)
void
saveOrUpdate(Object object)
void
saveOrUpdate(String entityName, Object object)
void
setCacheMode(org.hibernate.CacheMode cacheMode)
void
setFlushMode(org.hibernate.FlushMode flushMode)
void
setReadOnly(Object entity, boolean readOnly)
void
update(Object object)
void
update(String entityName, Object object)
-
-
-
Method Detail
-
checkMemoryUsage
protected void checkMemoryUsage()
-
getEntityMode
public org.hibernate.EntityMode getEntityMode()
- Specified by:
getEntityMode
in interfaceorg.hibernate.Session
-
getSession
public org.hibernate.Session getSession(org.hibernate.EntityMode entityMode)
- Specified by:
getSession
in interfaceorg.hibernate.Session
-
flush
public void flush() throws org.hibernate.HibernateException
- Specified by:
flush
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
setFlushMode
public void setFlushMode(org.hibernate.FlushMode flushMode)
- Specified by:
setFlushMode
in interfaceorg.hibernate.Session
-
getFlushMode
public org.hibernate.FlushMode getFlushMode()
- Specified by:
getFlushMode
in interfaceorg.hibernate.Session
-
setCacheMode
public void setCacheMode(org.hibernate.CacheMode cacheMode)
- Specified by:
setCacheMode
in interfaceorg.hibernate.Session
-
getCacheMode
public org.hibernate.CacheMode getCacheMode()
- Specified by:
getCacheMode
in interfaceorg.hibernate.Session
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Specified by:
getSessionFactory
in interfaceorg.hibernate.Session
-
connection
public Connection connection() throws org.hibernate.HibernateException
- Specified by:
connection
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
close
public Connection close() throws org.hibernate.HibernateException
- Specified by:
close
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
cancelQuery
public void cancelQuery() throws org.hibernate.HibernateException
- Specified by:
cancelQuery
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfaceorg.hibernate.Session
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceorg.hibernate.Session
-
isDirty
public boolean isDirty() throws org.hibernate.HibernateException
- Specified by:
isDirty
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
getIdentifier
public Serializable getIdentifier(Object object) throws org.hibernate.HibernateException
- Specified by:
getIdentifier
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceorg.hibernate.Session
-
evict
public void evict(Object object) throws org.hibernate.HibernateException
- Specified by:
evict
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
load
public Object load(Class theClass, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
load
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
load
public Object load(String entityName, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
load
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
load
public Object load(Class theClass, Serializable id) throws org.hibernate.HibernateException
- Specified by:
load
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
load
public Object load(String entityName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
load
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
load
public void load(Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
load
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
replicate
public void replicate(Object object, org.hibernate.ReplicationMode replicationMode) throws org.hibernate.HibernateException
- Specified by:
replicate
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
replicate
public void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode) throws org.hibernate.HibernateException
- Specified by:
replicate
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
save
public Serializable save(Object object) throws org.hibernate.HibernateException
- Specified by:
save
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
save
public Serializable save(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
save
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
saveOrUpdate
public void saveOrUpdate(Object object) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdate
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
saveOrUpdate
public void saveOrUpdate(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdate
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
update
public void update(Object object) throws org.hibernate.HibernateException
- Specified by:
update
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
update
public void update(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
update
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
merge
public Object merge(Object object) throws org.hibernate.HibernateException
- Specified by:
merge
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
merge
public Object merge(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
merge
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
persist
public void persist(Object object) throws org.hibernate.HibernateException
- Specified by:
persist
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
persist
public void persist(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
persist
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
delete
public void delete(Object object) throws org.hibernate.HibernateException
- Specified by:
delete
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
delete
public void delete(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
delete
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
lock
public void lock(Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
lock
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
lock
public void lock(String entityName, Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
lock
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
refresh
public void refresh(Object object) throws org.hibernate.HibernateException
- Specified by:
refresh
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
refresh
public void refresh(Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
refresh
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
getCurrentLockMode
public org.hibernate.LockMode getCurrentLockMode(Object object) throws org.hibernate.HibernateException
- Specified by:
getCurrentLockMode
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
beginTransaction
public org.hibernate.Transaction beginTransaction() throws org.hibernate.HibernateException
- Specified by:
beginTransaction
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
getTransaction
public org.hibernate.Transaction getTransaction()
- Specified by:
getTransaction
in interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(Class persistentClass)
- Specified by:
createCriteria
in interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(Class persistentClass, String alias)
- Specified by:
createCriteria
in interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(String entityName)
- Specified by:
createCriteria
in interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(String entityName, String alias)
- Specified by:
createCriteria
in interfaceorg.hibernate.Session
-
createQuery
public org.hibernate.Query createQuery(String queryString) throws org.hibernate.HibernateException
- Specified by:
createQuery
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
createSQLQuery
public org.hibernate.SQLQuery createSQLQuery(String queryString) throws org.hibernate.HibernateException
- Specified by:
createSQLQuery
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
createFilter
public org.hibernate.Query createFilter(Object collection, String queryString) throws org.hibernate.HibernateException
- Specified by:
createFilter
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
getNamedQuery
public org.hibernate.Query getNamedQuery(String queryName) throws org.hibernate.HibernateException
- Specified by:
getNamedQuery
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.hibernate.Session
-
get
public Object get(Class clazz, Serializable id) throws org.hibernate.HibernateException
- Specified by:
get
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
get
public Object get(Class clazz, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
get
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
get
public Object get(String entityName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
get
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
get
public Object get(String entityName, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
get
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
getEntityName
public String getEntityName(Object object) throws org.hibernate.HibernateException
- Specified by:
getEntityName
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
enableFilter
public org.hibernate.Filter enableFilter(String filterName)
- Specified by:
enableFilter
in interfaceorg.hibernate.Session
-
getEnabledFilter
public org.hibernate.Filter getEnabledFilter(String filterName)
- Specified by:
getEnabledFilter
in interfaceorg.hibernate.Session
-
disableFilter
public void disableFilter(String filterName)
- Specified by:
disableFilter
in interfaceorg.hibernate.Session
-
getStatistics
public org.hibernate.stat.SessionStatistics getStatistics()
- Specified by:
getStatistics
in interfaceorg.hibernate.Session
-
setReadOnly
public void setReadOnly(Object entity, boolean readOnly)
- Specified by:
setReadOnly
in interfaceorg.hibernate.Session
-
disconnect
public Connection disconnect() throws org.hibernate.HibernateException
- Specified by:
disconnect
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
reconnect
public void reconnect() throws org.hibernate.HibernateException
- Specified by:
reconnect
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
reconnect
public void reconnect(Connection connection) throws org.hibernate.HibernateException
- Specified by:
reconnect
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
getDirtyEntities
public Collection<Object> getDirtyEntities()
-
getDirtyEntities
public static Collection<Object> getDirtyEntities(org.hibernate.Session session)
-
-