public class GlueHibernateDao extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements GlueGenericHibernateDao
Bean Property - queryManager : (Çʼö) - sessionFactory : (Çʼö) ¿¹Á¦»ç¿ë ¿¹# 1
Modifier and Type | Field and Description |
---|---|
GlueQueryManager |
queryManager |
Constructor and Description |
---|
GlueHibernateDao() |
Modifier and Type | Method and Description |
---|---|
Object |
createEntity(Object entity) |
<P> Object |
createEntity(String entityName,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿Í GlueHibernateParameter·Î insertÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected org.springframework.orm.hibernate3.HibernateTemplate |
createHibernateTemplate(org.hibernate.SessionFactory sessionFactory) |
int |
delete(String sqlkey)
ÁÖ¾îÁø query·Î DeleteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<P> int |
delete(String sqlkey,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿Í GlueHibernateParameter·Î DeleteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
int |
deleteByHql(String hql) |
<P> int |
deleteByHql(String hql,
GlueParameter<P> param) |
<T> List<T> |
find(String sqlkey)
ÁÖ¾îÁø query·Î Á¶È¸ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<T,P> List<T> |
find(String sqlkey,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿¡ GlueParameter °´Ã¼¸¦ BindingÇÏ¿© Á¶È¸ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<T> List<T> |
findByHql(String hql) |
<T,P> List<T> |
findByHql(String hql,
GlueParameter<P> param) |
int |
insert(String sqlkey)
HQLÀ» ÅëÇÑ insert´Â Áö¿øÇÏÁö ¾ÊÀ½. createEntity¸¦ »ç¿ëÇϼ¼¿ä.
|
<P> int |
insert(String sqlkey,
GlueParameter<P> param)
HQLÀ» ÅëÇÑ insert´Â Áö¿øÇÏÁö ¾ÊÀ½. createEntity¸¦ »ç¿ëÇϼ¼¿ä.
|
Object |
loadEntity(String entityName,
Serializable id)
ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤ÇÑ Entity¸¦ ã¾Æ¼ ReturnÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<P> Object |
modifyEntity(String entityName,
Object entity,
GlueParameter<P> param) |
Object |
removeEntity(Object entity) |
Object |
removeEntity(String entityName,
Serializable entityId)
ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤ÇÑ Entity¸¦ ã¾Æ¼ »èÁ¦ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
void |
setQueryManager(GlueQueryManager queryManager)
setter method for DI.
|
int |
update(String sqlkey)
ÁÖ¾îÁø query·Î UpdateÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
<P> int |
update(String sqlkey,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿Í GlueHibernateParameter·Î UpdateÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
int |
updateByHql(String hql) |
<P> int |
updateByHql(String hql,
GlueParameter<P> param) |
public GlueQueryManager queryManager
public void setQueryManager(GlueQueryManager queryManager)
queryManager
- queryManager Objectprotected org.springframework.orm.hibernate3.HibernateTemplate createHibernateTemplate(org.hibernate.SessionFactory sessionFactory)
createHibernateTemplate
in class org.springframework.orm.hibernate3.support.HibernateDaoSupport
public <T> List<T> find(String sqlkey)
find
in interface GlueGenericDao
name
- query name(id)param
- query¿¡ ¹ÙÀεùÇÒ Parameter °´Ã¼. GlueContext¸¦ °¡Áø GlueHibernateParameterpublic <T,P> List<T> find(String sqlkey, GlueParameter<P> param)
find
in interface GlueGenericDao
name
- query name(id)param
- query¿¡ ¹ÙÀεùÇÒ Parameter °´Ã¼. GlueContext¸¦ °¡Áø GlueHibernateParameterpublic <T> List<T> findByHql(String hql)
findByHql
in interface GlueGenericHibernateDao
public <T,P> List<T> findByHql(String hql, GlueParameter<P> param)
findByHql
in interface GlueGenericHibernateDao
public int insert(String sqlkey)
insert
in interface GlueGenericDao
name
- query idpublic <P> int insert(String sqlkey, GlueParameter<P> param)
insert
in interface GlueGenericDao
name
- query idpublic int update(String sqlkey)
update
in interface GlueGenericDao
name
- query idparam
- GlueHibernateParameter Objectpublic <P> int update(String sqlkey, GlueParameter<P> param)
update
in interface GlueGenericDao
name
- query idparam
- GlueHibernateParameter Objectpublic int updateByHql(String hql)
updateByHql
in interface GlueGenericHibernateDao
public <P> int updateByHql(String hql, GlueParameter<P> param)
updateByHql
in interface GlueGenericHibernateDao
public int delete(String sqlkey)
delete
in interface GlueGenericDao
name
- query idpublic <P> int delete(String sqlkey, GlueParameter<P> param)
delete
in interface GlueGenericDao
name
- query idparam
- GlueHibernateParameter Objectpublic int deleteByHql(String hql)
deleteByHql
in interface GlueGenericHibernateDao
public <P> int deleteByHql(String hql, GlueParameter<P> param)
deleteByHql
in interface GlueGenericHibernateDao
public Object loadEntity(String entityName, Serializable id)
loadEntity
in interface GlueGenericHibernateDao
entityName
- ¿£Æ¼Æ¼¸íentityId
- ¿£Æ¼Æ¼ À¯ÀÏ Å°public Object createEntity(Object entity)
createEntity
in interface GlueGenericHibernateDao
public <P> Object createEntity(String entityName, GlueParameter<P> param)
createEntity
in interface GlueGenericHibernateDao
name
- query idpublic Object removeEntity(String entityName, Serializable entityId)
removeEntity
in interface GlueGenericHibernateDao
entityName
- ¿£Æ¼Æ¼¸íentityId
- ¿£Æ¼Æ¼ À¯ÀÏ Å°public Object removeEntity(Object entity)
removeEntity
in interface GlueGenericHibernateDao
public <P> Object modifyEntity(String entityName, Object entity, GlueParameter<P> param)
modifyEntity
in interface GlueGenericHibernateDao
Copyright © 2013–2020 POSCO ICT. All rights reserved.