|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.dao.mybatis.GlueMybatisDao
public class GlueMybatisDao
MybatisDAO. Mybatis ¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇÑ µ¥ÀÌŸº£À̽º CRUD(Create, Read, Update, Delete) ¿ÀÆÛ·¹À̼ÇÀ» Á¦°øÇÏ´Â Data Access Object
Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query ID¸¦ ÆĶó¸ÞÅÍ·Î ³Ñ°ÜÁÖ¾î¾ß ÇÏ¸ç ¹ÙÀεù µÇ´Â °ªÀÌ ÀÖÀ» °æ¿ì¿¡´Â GlueParameterµµ ÇÕ²² ³Ñ°ÜÁÖ¾î¾ß ÇÑ´Ù.
Constructor Summary | |
---|---|
GlueMybatisDao()
|
Method Summary | ||
---|---|---|
int |
delete(String queryKey)
delete SQLÀ» ¼öÇàÇÑ´Ù.. |
|
|
delete(String queryKey,
GlueParameter<P> param)
delete SQLÀ» ¼öÇàÇÑ´Ù.. |
|
|
find(String queryKey)
select SQLÀ» ¼öÇàÇÑ´Ù.. |
|
|
find(String queryKey,
GlueParameter<P> param)
select SQLÀ» ¼öÇàÇÑ´Ù.. |
|
org.apache.ibatis.session.SqlSession |
getSqlSession()
|
|
int |
insert(String queryKey)
insert SQLÀ» ¼öÇàÇÑ´Ù.. |
|
|
insert(String queryKey,
GlueParameter<P> param)
insert SQLÀ» ¼öÇàÇÑ´Ù.. |
|
void |
setSqlSession(org.apache.ibatis.session.SqlSession sqlSession)
setter method for DI. |
|
int |
update(String queryKey)
update SQLÀ» ¼öÇàÇÑ´Ù.. |
|
|
update(String queryKey,
GlueParameter<P> param)
update SQLÀ» ¼öÇàÇÑ´Ù.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlueMybatisDao()
Method Detail |
---|
public org.apache.ibatis.session.SqlSession getSqlSession()
public void setSqlSession(org.apache.ibatis.session.SqlSession sqlSession)
sqlSession
- public int delete(String queryKey)
delete
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query ID
public <P> int delete(String queryKey, GlueParameter<P> param)
delete
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query IDparam
- Äõ¸®¿¡ ¹ÙÀεù µÉ °ªµéÀÌ Á¤ÀÇµÈ °´Ã¼ ,VO°´Ã¼ ȤÀº MAPÀ» »ý¼ºÇÏ¿© GlueParameter¿¡ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
public <T> List<T> find(String queryKey)
find
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query ID
public <T,P> List<T> find(String queryKey, GlueParameter<P> param)
find
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query IDparam
- Äõ¸®¿¡ ¹ÙÀεù µÉ °ªµéÀÌ Á¤ÀÇµÈ °´Ã¼ ,VO°´Ã¼ ȤÀº MAPÀ» »ý¼ºÇÏ¿© GlueParameter¿¡ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
public int insert(String queryKey)
insert
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query ID
public <P> int insert(String queryKey, GlueParameter<P> param)
insert
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query IDparam
- Äõ¸®¿¡ ¹ÙÀεù µÉ °ªµéÀÌ Á¤ÀÇµÈ °´Ã¼ ,VO°´Ã¼ ȤÀº MAPÀ» »ý¼ºÇÏ¿© GlueParameter¿¡ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
public int update(String queryKey)
update
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query ID
public <P> int update(String queryKey, GlueParameter<P> param)
update
in interface GlueGenericDao
queryKey
- Mybatis Mapper XML¿¡ Á¤ÀÇµÈ Query IDparam
- Äõ¸®¿¡ ¹ÙÀεù µÉ °ªµéÀÌ Á¤ÀÇµÈ °´Ã¼ ,VO°´Ã¼ ȤÀº MAPÀ» »ý¼ºÇÏ¿© GlueParameter¿¡ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |