|
||||||||||
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 com.poscoict.glueframework.dao.hibernate.GlueHibernateTemplate
P
- public class GlueHibernateTemplate
ÀÌ Å¬·¡½º´Â Hibernate Template Ŭ·¡½ºÀÌ´Ù.
Field Summary |
---|
Fields inherited from class org.springframework.orm.hibernate3.HibernateAccessor |
---|
FLUSH_ALWAYS, FLUSH_AUTO, FLUSH_COMMIT, FLUSH_EAGER, FLUSH_NEVER, logger |
Constructor Summary | |
---|---|
GlueHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
Create a new HibernateTemplate instance. |
Method Summary | ||
---|---|---|
Object |
createEntity(Object entity)
|
|
|
createEntity(String entityName,
GlueParameter<P> param)
ÁÖ¾îÁø entityName¿Í GlueParameter Á¤º¸·Î Entity¸¦ »ý¼ºÇÏ¿© DB¿¡ ¹Ý¿µ(Insert)ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
find(String hql,
GlueParameter<P> param)
ÁÖ¾îÁø Query¿Í GlueParameter Á¤º¸·Î Á¶È¸ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
Object |
getEntity(String entityName,
Serializable entityId)
ÁÖ¾îÁø entityName¿Í entityId Á¤º¸·Î °´Ã¼¸¦ ¹ÝȯÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
modifyEntity(String entityName,
Object entity,
GlueParameter<P> param)
|
|
Object |
removeEntity(Object entity)
|
|
Object |
removeEntity(String entityName,
Serializable entityId)
ÁÖ¾îÁø entityName¿Í entityId Á¤º¸·Î Hibernate °´Ã¼¸¦ »èÁ¦ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
update(String hql,
GlueHibernateParameter<P> param)
ÁÖ¾îÁø Query¿Í GlueParameter Á¤º¸·Î Update/DeleteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
Methods inherited from class org.springframework.orm.hibernate3.HibernateTemplate |
---|
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 |
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 |
Constructor Detail |
---|
public GlueHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- SessionFactory to create SessionsMethod Detail |
---|
public <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
- ¿£Æ¼Æ¼ Id
public <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 createEntity(Object entity)
public Object removeEntity(String entityName, Serializable entityId)
entityName
- ¿£Æ¼Æ¼¸íentityId
- ¿£Æ¼Æ¼ Id
public Object removeEntity(Object entity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |