P
- public class GlueHibernateTemplate
extends org.springframework.orm.hibernate3.HibernateTemplate
Constructor and Description |
---|
GlueHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
Create a new HibernateTemplate instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
createEntity(Object entity) |
<P> Object |
createEntity(String entityName,
GlueParameter<P> param)
ÁÖ¾îÁø entityName¿Í GlueParameter Á¤º¸·Î Entity¸¦ »ý¼ºÇÏ¿© DB¿¡ ¹Ý¿µ(Insert)ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<T,P> List<T> |
find(String hql,
GlueParameter<P> param)
ÁÖ¾îÁø Query¿Í GlueParameter Á¤º¸·Î Á¶È¸ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
Object |
getEntity(String entityName,
Serializable entityId)
ÁÖ¾îÁø entityName¿Í entityId Á¤º¸·Î °´Ã¼¸¦ ¹ÝȯÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<P> Object |
modifyEntity(String entityName,
Object entity,
GlueParameter<P> param) |
Object |
removeEntity(Object entity) |
Object |
removeEntity(String entityName,
Serializable entityId)
ÁÖ¾îÁø entityName¿Í entityId Á¤º¸·Î Hibernate °´Ã¼¸¦ »èÁ¦ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<P> Integer |
update(String hql,
GlueHibernateParameter<P> param)
ÁÖ¾îÁø Query¿Í GlueParameter Á¤º¸·Î Update/DeleteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
applyNamedParameterToQuery, bulkUpdate, bulkUpdate, bulkUpdate, checkWriteOperationAllowed, 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
public GlueHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- SessionFactory to create Sessionspublic <T,P> List<T> find(String hql, GlueParameter<P> param)
hql
- Á¶È¸ÇÒ Queryparameter
- GlueHibernateParameter¸¦ ³Ñ°Ü¾ß ÇÔ.public <P> Integer update(String hql, GlueHibernateParameter<P> param)
T
- hql
- update/delete hqlparameter
- GlueHibernateParameter¸¦ ³Ñ°Ü¾ß ÇÔ.public Object getEntity(String entityName, Serializable entityId)
entityName
- ¿£Æ¼Æ¼¸íentityId
- ¿£Æ¼Æ¼ Idpublic <P> Object createEntity(String entityName, GlueParameter<P> param)
P
- entityName
- »ý¼ºÇÒ Entity Nameparameter
- GlueHibernateParameter·Î GlueContext¿¡ »ý¼º ½Ã ¸ÅÇÎÇÒ °ªÀ» °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù.public <P> Object modifyEntity(String entityName, Object entity, GlueParameter<P> param)
public Object removeEntity(String entityName, Serializable entityId)
entityName
- ¿£Æ¼Æ¼¸íentityId
- ¿£Æ¼Æ¼ IdCopyright © 2013–2020 POSCO ICT. All rights reserved.