public class ManualFlushHibernateTemplate
extends org.springframework.orm.hibernate3.HibernateTemplate
Constructor and Description |
---|
ManualFlushHibernateTemplate() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkWriteOperationAllowed(org.hibernate.Session session)
Check whether write operations are allowed on the given Session.
|
applyNamedParameterToQuery, bulkUpdate, bulkUpdate, bulkUpdate, clear, closeIterator, contains, createSessionProxy, delete, delete, delete, delete, deleteAll, doExecute, enableFilter, evict, execute, executeFind, executeWithNativeSession, executeWithNewSession, find, find, find, findByCriteria, findByCriteria, findByExample, findByExample, findByExample, findByExample, findByNamedParam, findByNamedParam, findByNamedQuery, findByNamedQuery, findByNamedQuery, findByNamedQueryAndNamedParam, findByNamedQueryAndNamedParam, findByNamedQueryAndValueBean, findByValueBean, flush, get, get, get, get, getFetchSize, getMaxResults, getQueryCacheRegion, getSession, initialize, isAllowCreate, isAlwaysUseNewSession, isCacheQueries, isCheckWriteOperations, isExposeNativeSession, iterate, iterate, iterate, load, load, load, load, load, loadAll, lock, lock, merge, merge, persist, persist, prepareCriteria, prepareQuery, refresh, refresh, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, saveOrUpdateAll, setAllowCreate, setAlwaysUseNewSession, setCacheQueries, setCheckWriteOperations, setExposeNativeSession, setFetchSize, setMaxResults, setQueryCacheRegion, update, update, update, update
afterPropertiesSet, applyFlushMode, convertHibernateAccessException, convertJdbcAccessException, convertJdbcAccessException, disableFilters, enableFilters, flushIfNecessary, getDefaultJdbcExceptionTranslator, getEntityInterceptor, getFilterNames, getFlushMode, getJdbcExceptionTranslator, getSessionFactory, setBeanFactory, setEntityInterceptor, setEntityInterceptorBeanName, setFilterName, setFilterNames, setFlushMode, setFlushModeName, setJdbcExceptionTranslator, setSessionFactory
protected void checkWriteOperationAllowed(org.hibernate.Session session) throws org.springframework.dao.InvalidDataAccessApiUsageException
org.springframework.orm.hibernate3.HibernateTemplate
Default implementation throws an InvalidDataAccessApiUsageException in
case of FlushMode.MANUAL
. Can be overridden in subclasses.
checkWriteOperationAllowed
in class org.springframework.orm.hibernate3.HibernateTemplate
session
- current Hibernate Sessionorg.springframework.dao.InvalidDataAccessApiUsageException
- if write operations are not allowedHibernateTemplate.setCheckWriteOperations(boolean)
,
HibernateAccessor.getFlushMode()
,
HibernateAccessor.FLUSH_EAGER
,
Session.getFlushMode()
,
FlushMode.MANUAL
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.