Package com.soffid.iam.spring
Class CustomSession
- java.lang.Object
-
- com.soffid.iam.spring.CustomSession
-
- All Implemented Interfaces:
Serializable,org.hibernate.classic.Session,org.hibernate.Session
public class CustomSession extends Object implements org.hibernate.classic.Session
- Author:
- bubu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomSession(org.hibernate.classic.Session proxy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.TransactionbeginTransaction()voidcancelQuery()protected voidcheckMemoryUsage()voidclear()Connectionclose()Connectionconnection()booleancontains(Object object)org.hibernate.CriteriacreateCriteria(Class persistentClass)org.hibernate.CriteriacreateCriteria(Class persistentClass, String alias)org.hibernate.CriteriacreateCriteria(String entityName)org.hibernate.CriteriacreateCriteria(String entityName, String alias)org.hibernate.QuerycreateFilter(Object collection, String queryString)org.hibernate.QuerycreateQuery(String queryString)org.hibernate.SQLQuerycreateSQLQuery(String queryString)org.hibernate.QuerycreateSQLQuery(String sql, String[] returnAliases, Class[] returnClasses)org.hibernate.QuerycreateSQLQuery(String sql, String returnAlias, Class returnClass)voiddelete(Object object)intdelete(String query)voiddelete(String entityName, Object object)intdelete(String query, Object[] values, org.hibernate.type.Type[] types)intdelete(String query, Object value, org.hibernate.type.Type type)voiddisableFilter(String filterName)Connectiondisconnect()org.hibernate.FilterenableFilter(String filterName)voidevict(Object object)Collectionfilter(Object collection, String filter)Collectionfilter(Object collection, String filter, Object[] values, org.hibernate.type.Type[] types)Collectionfilter(Object collection, String filter, Object value, org.hibernate.type.Type type)Listfind(String query)Listfind(String query, Object[] values, org.hibernate.type.Type[] types)Listfind(String query, Object value, org.hibernate.type.Type type)voidflush()Objectget(Class clazz, Serializable id)Objectget(Class clazz, Serializable id, org.hibernate.LockMode lockMode)Objectget(String entityName, Serializable id)Objectget(String entityName, Serializable id, org.hibernate.LockMode lockMode)org.hibernate.CacheModegetCacheMode()org.hibernate.LockModegetCurrentLockMode(Object object)Collection<Object>getDirtyEntities()static Collection<Object>getDirtyEntities(org.hibernate.Session session)org.hibernate.FiltergetEnabledFilter(String filterName)org.hibernate.EntityModegetEntityMode()StringgetEntityName(Object object)org.hibernate.FlushModegetFlushMode()SerializablegetIdentifier(Object object)org.hibernate.QuerygetNamedQuery(String queryName)org.hibernate.SessiongetSession(org.hibernate.EntityMode entityMode)org.hibernate.SessionFactorygetSessionFactory()org.hibernate.stat.SessionStatisticsgetStatistics()org.hibernate.TransactiongetTransaction()booleanisConnected()booleanisDirty()booleanisOpen()Iteratoriterate(String query)Iteratoriterate(String query, Object[] values, org.hibernate.type.Type[] types)Iteratoriterate(String query, Object value, org.hibernate.type.Type type)Objectload(Class theClass, Serializable id)Objectload(Class theClass, Serializable id, org.hibernate.LockMode lockMode)voidload(Object object, Serializable id)Objectload(String entityName, Serializable id)Objectload(String entityName, Serializable id, org.hibernate.LockMode lockMode)voidlock(Object object, org.hibernate.LockMode lockMode)voidlock(String entityName, Object object, org.hibernate.LockMode lockMode)Objectmerge(Object object)Objectmerge(String entityName, Object object)voidpersist(Object object)voidpersist(String entityName, Object object)voidreconnect()voidreconnect(Connection connection)voidrefresh(Object object)voidrefresh(Object object, org.hibernate.LockMode lockMode)voidreplicate(Object object, org.hibernate.ReplicationMode replicationMode)voidreplicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)Serializablesave(Object object)voidsave(Object object, Serializable id)Serializablesave(String entityName, Object object)voidsave(String entityName, Object object, Serializable id)voidsaveOrUpdate(Object object)voidsaveOrUpdate(String entityName, Object object)ObjectsaveOrUpdateCopy(Object object)ObjectsaveOrUpdateCopy(Object object, Serializable id)ObjectsaveOrUpdateCopy(String entityName, Object object)ObjectsaveOrUpdateCopy(String entityName, Object object, Serializable id)voidsetCacheMode(org.hibernate.CacheMode cacheMode)voidsetFlushMode(org.hibernate.FlushMode flushMode)voidsetReadOnly(Object entity, boolean readOnly)voidupdate(Object object)voidupdate(Object object, Serializable id)voidupdate(String entityName, Object object)voidupdate(String entityName, Object object, Serializable id)
-
-
-
Method Detail
-
checkMemoryUsage
protected void checkMemoryUsage()
-
saveOrUpdateCopy
public Object saveOrUpdateCopy(Object object) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdateCopyin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
saveOrUpdateCopy
public Object saveOrUpdateCopy(Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdateCopyin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
saveOrUpdateCopy
public Object saveOrUpdateCopy(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdateCopyin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
saveOrUpdateCopy
public Object saveOrUpdateCopy(String entityName, Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdateCopyin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
find
public List find(String query) throws org.hibernate.HibernateException
- Specified by:
findin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
find
public List find(String query, Object value, org.hibernate.type.Type type) throws org.hibernate.HibernateException
- Specified by:
findin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
find
public List find(String query, Object[] values, org.hibernate.type.Type[] types) throws org.hibernate.HibernateException
- Specified by:
findin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
iterate
public Iterator iterate(String query) throws org.hibernate.HibernateException
- Specified by:
iteratein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
iterate
public Iterator iterate(String query, Object value, org.hibernate.type.Type type) throws org.hibernate.HibernateException
- Specified by:
iteratein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
iterate
public Iterator iterate(String query, Object[] values, org.hibernate.type.Type[] types) throws org.hibernate.HibernateException
- Specified by:
iteratein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
filter
public Collection filter(Object collection, String filter) throws org.hibernate.HibernateException
- Specified by:
filterin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
filter
public Collection filter(Object collection, String filter, Object value, org.hibernate.type.Type type) throws org.hibernate.HibernateException
- Specified by:
filterin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
filter
public Collection filter(Object collection, String filter, Object[] values, org.hibernate.type.Type[] types) throws org.hibernate.HibernateException
- Specified by:
filterin interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
delete
public int delete(String query) throws org.hibernate.HibernateException
- Specified by:
deletein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
delete
public int delete(String query, Object value, org.hibernate.type.Type type) throws org.hibernate.HibernateException
- Specified by:
deletein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
delete
public int delete(String query, Object[] values, org.hibernate.type.Type[] types) throws org.hibernate.HibernateException
- Specified by:
deletein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
createSQLQuery
public org.hibernate.Query createSQLQuery(String sql, String returnAlias, Class returnClass)
- Specified by:
createSQLQueryin interfaceorg.hibernate.classic.Session
-
createSQLQuery
public org.hibernate.Query createSQLQuery(String sql, String[] returnAliases, Class[] returnClasses)
- Specified by:
createSQLQueryin interfaceorg.hibernate.classic.Session
-
save
public void save(Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
savein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
save
public void save(String entityName, Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
savein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
update
public void update(Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
updatein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
update
public void update(String entityName, Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
updatein interfaceorg.hibernate.classic.Session- Throws:
org.hibernate.HibernateException
-
getEntityMode
public org.hibernate.EntityMode getEntityMode()
- Specified by:
getEntityModein interfaceorg.hibernate.Session
-
getSession
public org.hibernate.Session getSession(org.hibernate.EntityMode entityMode)
- Specified by:
getSessionin interfaceorg.hibernate.Session
-
flush
public void flush() throws org.hibernate.HibernateException- Specified by:
flushin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
setFlushMode
public void setFlushMode(org.hibernate.FlushMode flushMode)
- Specified by:
setFlushModein interfaceorg.hibernate.Session
-
getFlushMode
public org.hibernate.FlushMode getFlushMode()
- Specified by:
getFlushModein interfaceorg.hibernate.Session
-
setCacheMode
public void setCacheMode(org.hibernate.CacheMode cacheMode)
- Specified by:
setCacheModein interfaceorg.hibernate.Session
-
getCacheMode
public org.hibernate.CacheMode getCacheMode()
- Specified by:
getCacheModein interfaceorg.hibernate.Session
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Specified by:
getSessionFactoryin interfaceorg.hibernate.Session
-
connection
public Connection connection() throws org.hibernate.HibernateException
- Specified by:
connectionin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
close
public Connection close() throws org.hibernate.HibernateException
- Specified by:
closein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
cancelQuery
public void cancelQuery() throws org.hibernate.HibernateException- Specified by:
cancelQueryin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceorg.hibernate.Session
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceorg.hibernate.Session
-
isDirty
public boolean isDirty() throws org.hibernate.HibernateException- Specified by:
isDirtyin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
getIdentifier
public Serializable getIdentifier(Object object) throws org.hibernate.HibernateException
- Specified by:
getIdentifierin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceorg.hibernate.Session
-
evict
public void evict(Object object) throws org.hibernate.HibernateException
- Specified by:
evictin 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:
loadin 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:
loadin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
load
public Object load(Class theClass, Serializable id) throws org.hibernate.HibernateException
- Specified by:
loadin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
load
public Object load(String entityName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
loadin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
load
public void load(Object object, Serializable id) throws org.hibernate.HibernateException
- Specified by:
loadin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
replicate
public void replicate(Object object, org.hibernate.ReplicationMode replicationMode) throws org.hibernate.HibernateException
- Specified by:
replicatein 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:
replicatein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
save
public Serializable save(Object object) throws org.hibernate.HibernateException
- Specified by:
savein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
save
public Serializable save(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
savein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
saveOrUpdate
public void saveOrUpdate(Object object) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdatein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
saveOrUpdate
public void saveOrUpdate(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
saveOrUpdatein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
update
public void update(Object object) throws org.hibernate.HibernateException
- Specified by:
updatein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
update
public void update(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
updatein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
merge
public Object merge(Object object) throws org.hibernate.HibernateException
- Specified by:
mergein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
merge
public Object merge(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
mergein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
persist
public void persist(Object object) throws org.hibernate.HibernateException
- Specified by:
persistin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
persist
public void persist(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
persistin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
delete
public void delete(Object object) throws org.hibernate.HibernateException
- Specified by:
deletein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
delete
public void delete(String entityName, Object object) throws org.hibernate.HibernateException
- Specified by:
deletein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
lock
public void lock(Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
lockin 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:
lockin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
refresh
public void refresh(Object object) throws org.hibernate.HibernateException
- Specified by:
refreshin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
refresh
public void refresh(Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
- Specified by:
refreshin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
getCurrentLockMode
public org.hibernate.LockMode getCurrentLockMode(Object object) throws org.hibernate.HibernateException
- Specified by:
getCurrentLockModein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
beginTransaction
public org.hibernate.Transaction beginTransaction() throws org.hibernate.HibernateException- Specified by:
beginTransactionin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
getTransaction
public org.hibernate.Transaction getTransaction()
- Specified by:
getTransactionin interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(Class persistentClass)
- Specified by:
createCriteriain interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(Class persistentClass, String alias)
- Specified by:
createCriteriain interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(String entityName)
- Specified by:
createCriteriain interfaceorg.hibernate.Session
-
createCriteria
public org.hibernate.Criteria createCriteria(String entityName, String alias)
- Specified by:
createCriteriain interfaceorg.hibernate.Session
-
createQuery
public org.hibernate.Query createQuery(String queryString) throws org.hibernate.HibernateException
- Specified by:
createQueryin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
createSQLQuery
public org.hibernate.SQLQuery createSQLQuery(String queryString) throws org.hibernate.HibernateException
- Specified by:
createSQLQueryin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
createFilter
public org.hibernate.Query createFilter(Object collection, String queryString) throws org.hibernate.HibernateException
- Specified by:
createFilterin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
getNamedQuery
public org.hibernate.Query getNamedQuery(String queryName) throws org.hibernate.HibernateException
- Specified by:
getNamedQueryin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
clear
public void clear()
- Specified by:
clearin interfaceorg.hibernate.Session
-
get
public Object get(Class clazz, Serializable id) throws org.hibernate.HibernateException
- Specified by:
getin 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:
getin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
get
public Object get(String entityName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
getin 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:
getin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
getEntityName
public String getEntityName(Object object) throws org.hibernate.HibernateException
- Specified by:
getEntityNamein interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
enableFilter
public org.hibernate.Filter enableFilter(String filterName)
- Specified by:
enableFilterin interfaceorg.hibernate.Session
-
getEnabledFilter
public org.hibernate.Filter getEnabledFilter(String filterName)
- Specified by:
getEnabledFilterin interfaceorg.hibernate.Session
-
disableFilter
public void disableFilter(String filterName)
- Specified by:
disableFilterin interfaceorg.hibernate.Session
-
getStatistics
public org.hibernate.stat.SessionStatistics getStatistics()
- Specified by:
getStatisticsin interfaceorg.hibernate.Session
-
setReadOnly
public void setReadOnly(Object entity, boolean readOnly)
- Specified by:
setReadOnlyin interfaceorg.hibernate.Session
-
disconnect
public Connection disconnect() throws org.hibernate.HibernateException
- Specified by:
disconnectin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
reconnect
public void reconnect() throws org.hibernate.HibernateException- Specified by:
reconnectin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
reconnect
public void reconnect(Connection connection) throws org.hibernate.HibernateException
- Specified by:
reconnectin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
getDirtyEntities
public Collection<Object> getDirtyEntities()
-
getDirtyEntities
public static Collection<Object> getDirtyEntities(org.hibernate.Session session)
-
-