|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate3.HibernateAccessor org.springframework.orm.hibernate3.HibernateTemplate net.sf.beanlib.hibernate3.DtoCentricHibernate3Template
public class DtoCentricHibernate3Template
Base class for Hibernate 3 DTO Centric HibernateTemplate
.
Nested Class Summary | |
---|---|
class |
DtoCentricHibernate3Template.DtoCentricCloseSuppressingInvocationHandler
Cloned from HibernateTemplate.CloseSuppressingInvocationHandler
so we can dig out the target session, if needs be. |
Field Summary | |
---|---|
private String |
applicationPackagePrefix
|
private Class |
applicationSampleClass
|
Fields inherited from class org.springframework.orm.hibernate3.HibernateAccessor |
---|
FLUSH_ALWAYS, FLUSH_AUTO, FLUSH_COMMIT, FLUSH_EAGER, FLUSH_NEVER, logger |
Constructor Summary | |
---|---|
DtoCentricHibernate3Template()
|
|
DtoCentricHibernate3Template(SessionFactory sessionFactory)
|
|
DtoCentricHibernate3Template(SessionFactory sessionFactory,
boolean allowCreate)
|
Method Summary | |
---|---|
protected Session |
createSessionProxy(Session session)
|
List |
find(String queryString,
Object[] values)
|
List |
findByNamedParam(String queryString,
String[] paramNames,
Object[] values)
|
List |
findByNamedQuery(String queryName,
Object[] values)
|
List |
findByNamedQueryAndNamedParam(String queryName,
String[] paramNames,
Object[] values)
|
List |
findByNamedQueryAndValueBean(String queryName,
Object valueBean)
|
List |
findByValueBean(String queryString,
Object valueBean)
|
Object |
get(Class entityClass,
Serializable id,
LockMode lockMode)
|
Object |
get(String entityName,
Serializable id,
LockMode lockMode)
|
private Hibernate3DtoCopier |
getHibernateDtoCopier()
|
DtoCentricHibernate3Template |
init(String applicationPackagePrefix,
Class applicationSampleClass)
|
Object |
load(Class entityClass,
Serializable id,
LockMode lockMode)
|
Object |
load(String entityName,
Serializable id,
LockMode lockMode)
|
List |
loadAll(Class entityClass)
|
List |
loadByCriteria(CriteriaSpecifiable specifier)
|
Methods inherited from class org.springframework.orm.hibernate3.HibernateTemplate |
---|
applyNamedParameterToQuery, bulkUpdate, bulkUpdate, bulkUpdate, checkWriteOperationAllowed, clear, closeIterator, contains, delete, delete, deleteAll, enableFilter, evict, execute, execute, executeFind, find, find, findByCriteria, findByCriteria, findByExample, findByExample, findByNamedParam, findByNamedQuery, findByNamedQuery, findByNamedQueryAndNamedParam, flush, get, get, getFetchSize, getMaxResults, getQueryCacheRegion, getSession, initialize, isAllowCreate, isAlwaysUseNewSession, isCacheQueries, isCheckWriteOperations, isExposeNativeSession, iterate, iterate, iterate, load, load, load, 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 |
Methods inherited from class org.springframework.orm.hibernate3.HibernateAccessor |
---|
afterPropertiesSet, applyFlushMode, convertHibernateAccessException, convertJdbcAccessException, convertJdbcAccessException, disableFilters, enableFilters, flushIfNecessary, getDefaultJdbcExceptionTranslator, getEntityInterceptor, getFilterNames, getFlushMode, getJdbcExceptionTranslator, getSessionFactory, setBeanFactory, setEntityInterceptor, setEntityInterceptorBeanName, setFilterName, setFilterNames, setFlushMode, setFlushModeName, setJdbcExceptionTranslator, setSessionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String applicationPackagePrefix
private Class applicationSampleClass
Constructor Detail |
---|
public DtoCentricHibernate3Template()
public DtoCentricHibernate3Template(SessionFactory sessionFactory)
public DtoCentricHibernate3Template(SessionFactory sessionFactory, boolean allowCreate)
Method Detail |
---|
public DtoCentricHibernate3Template init(String applicationPackagePrefix, Class applicationSampleClass)
private Hibernate3DtoCopier getHibernateDtoCopier()
public Object get(Class entityClass, Serializable id, LockMode lockMode) throws org.springframework.dao.DataAccessException
get
in interface org.springframework.orm.hibernate3.HibernateOperations
get
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public Object get(String entityName, Serializable id, LockMode lockMode) throws org.springframework.dao.DataAccessException
get
in interface org.springframework.orm.hibernate3.HibernateOperations
get
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public Object load(Class entityClass, Serializable id, LockMode lockMode) throws org.springframework.dao.DataAccessException
load
in interface org.springframework.orm.hibernate3.HibernateOperations
load
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public Object load(String entityName, Serializable id, LockMode lockMode) throws org.springframework.dao.DataAccessException
load
in interface org.springframework.orm.hibernate3.HibernateOperations
load
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List loadAll(Class entityClass) throws org.springframework.dao.DataAccessException
loadAll
in interface org.springframework.orm.hibernate3.HibernateOperations
loadAll
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List loadByCriteria(CriteriaSpecifiable specifier) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
public List find(String queryString, Object[] values) throws org.springframework.dao.DataAccessException
find
in interface org.springframework.orm.hibernate3.HibernateOperations
find
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List findByNamedParam(String queryString, String[] paramNames, Object[] values) throws org.springframework.dao.DataAccessException
findByNamedParam
in interface org.springframework.orm.hibernate3.HibernateOperations
findByNamedParam
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List findByValueBean(String queryString, Object valueBean) throws org.springframework.dao.DataAccessException
findByValueBean
in interface org.springframework.orm.hibernate3.HibernateOperations
findByValueBean
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List findByNamedQuery(String queryName, Object[] values) throws org.springframework.dao.DataAccessException
findByNamedQuery
in interface org.springframework.orm.hibernate3.HibernateOperations
findByNamedQuery
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List findByNamedQueryAndNamedParam(String queryName, String[] paramNames, Object[] values) throws org.springframework.dao.DataAccessException
findByNamedQueryAndNamedParam
in interface org.springframework.orm.hibernate3.HibernateOperations
findByNamedQueryAndNamedParam
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
public List findByNamedQueryAndValueBean(String queryName, Object valueBean) throws org.springframework.dao.DataAccessException
findByNamedQueryAndValueBean
in interface org.springframework.orm.hibernate3.HibernateOperations
findByNamedQueryAndValueBean
in class org.springframework.orm.hibernate3.HibernateTemplate
org.springframework.dao.DataAccessException
protected Session createSessionProxy(Session session)
createSessionProxy
in class org.springframework.orm.hibernate3.HibernateTemplate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |