|
||||||||||
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 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 |