|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate3.support.HibernateDaoSupport com.poscoict.glueframework.dao.hibernate.GlueHibernateDao
public class GlueHibernateDao
Hibernate¿ë Dao ClassÀÌ´Ù.
bean property ¼³Á¤ - queryManager : (Çʼö) - sessionFactory : (Çʼö) [sample] »ç¿ë ¿¹
Field Summary | |
---|---|
GlueQueryManager |
queryManager
|
Constructor Summary | |
---|---|
GlueHibernateDao()
|
Method Summary | ||
---|---|---|
Object |
createEntity(Object entity)
|
|
|
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ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
delete(String sqlkey,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿Í GlueHibernateParameter·Î DeleteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
int |
deleteByHql(String hql)
|
|
|
deleteByHql(String hql,
GlueParameter<P> param)
|
|
|
find(String sqlkey)
ÁÖ¾îÁø query·Î Á¶È¸ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
find(String sqlkey,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿¡ GlueParameter °´Ã¼¸¦ BindingÇÏ¿© Á¶È¸ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
findByHql(String hql)
|
|
|
findByHql(String hql,
GlueParameter<P> param)
|
|
int |
insert(String sqlkey)
HQLÀ» ÅëÇÑ insert´Â Áö¿øÇÏÁö ¾ÊÀ½. createEntity¸¦ »ç¿ëÇϼ¼¿ä. |
|
|
insert(String sqlkey,
GlueParameter<P> param)
HQLÀ» ÅëÇÑ insert´Â Áö¿øÇÏÁö ¾ÊÀ½. createEntity¸¦ »ç¿ëÇϼ¼¿ä. |
|
Object |
loadEntity(String entityName,
Serializable id)
ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤ÇÑ Entity¸¦ ã¾Æ¼ ReturnÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
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ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
|
update(String sqlkey,
GlueParameter<P> param)
ÁÖ¾îÁø named query¿Í GlueHibernateParameter·Î UpdateÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
|
int |
updateByHql(String hql)
|
|
|
updateByHql(String hql,
GlueParameter<P> param)
|
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public GlueQueryManager queryManager
Constructor Detail |
---|
public GlueHibernateDao()
Method Detail |
---|
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¸¦ °¡Áø GlueHibernateParameter
public <T,P> List<T> find(String sqlkey, GlueParameter<P> param)
find
in interface GlueGenericDao
name
- query name(id)param
- query¿¡ ¹ÙÀεùÇÒ Parameter °´Ã¼. GlueContext¸¦ °¡Áø GlueHibernateParameter
public <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 id
public <P> int insert(String sqlkey, GlueParameter<P> param)
insert
in interface GlueGenericDao
name
- query id
public int update(String sqlkey)
update
in interface GlueGenericDao
name
- query idparam
- GlueHibernateParameter Object
public <P> int update(String sqlkey, GlueParameter<P> param)
update
in interface GlueGenericDao
name
- query idparam
- GlueHibernateParameter Object
public 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 id
public <P> int delete(String sqlkey, GlueParameter<P> param)
delete
in interface GlueGenericDao
name
- query idparam
- GlueHibernateParameter Object
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |