일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- librecad
- 스크래치
- html5
- 예제
- Spring Security
- 코딩
- 라즈베리파이
- 아두이노
- 잡토이
- 톰캣
- 시작하기
- mysql
- oracle
- 잡토이 메이킹 코딩 학원
- MSSQL
- s4a
- Unity
- tomcat
- 유니티
- 파주
- 설정
- 안드로이드
- 오라클
- 설치
- 리브레캐드
- jsp
- 운정
- 강좌
- Android
- jobtoy
- Today
- Total
목록programming/ibatis mybatis (13)
랩제이
[ibaitis] mysql select PROCEDURE ibatis 코드1) - java @Override public List selectEtraininglistList(int code) throws Exception { logger.debug("selectEtraininglistList -------------------------->> " + code); Map condition = new HashMap(); condition.put("code", code); return sqlMap.queryForList("member.selectEtraininglist", condition); } - ibatis ?)} ]]> 코드2) - java @Override public List selectEtrai..
[mybatis] oracle insert 리턴값 받기 selectKey - insert할 도메인에서는 시퀀스값을 설정하지 않는다. *java Authors auth = new Authors();auth .setAutGender("xxx");...auth .setAutInfo("xxx"); - 시퀀스값은 autID로 insert하기전에 order="BEFORE" 먼저 실행시켜서 autID에 담는다.- insert문에서 autID에 설정된 값으로 insert한다. *.xml SELECT SW_LIBRO.F_GET_NEW_AUTHOR_ID FROM DUAL INSERT INTO AUTHORS ( AUT_I D, AUT_GENDER, AUT_NAME, AUT_ENAME, AUT_PROFILE, AUT_INFO..
[mybatis] function 호출하고 리턴값 받기 String strResult1 = ordDetailService.funccall(ordDetail7); @Override public String funccall(T domain) throws Exception { return this.crudMapper.funccall(domain); } { #{ordCancelResult,jdbcType=VARCHAR, mode=OUT} = call F_WMS_CHANGE_ORDER_ITEM(#{ordSno ,jdbcType=VARCHAR, mode=IN}, #{ordGoodsId ,jdbcType=VARCHAR, mode=IN}, #{ordNums ,jdbcType=NUMERIC, mode=IN}, #{fla..
[ibatis] in 조건 생성하기 * ctrl List option_state_no = new ArrayList(); option_state_no.add("1"); option_state_no.add("2"); condition.put("option_state_no", option_state_no); List goodsList = goodsService.getList(condition); * svc public List getList(Map condition) throws Exception { return goodsDao.getList(condition); } * dao @SuppressWarnings("unchecked") @Override public List getList(Map condition..
[ibatis] in 조건으로 delete 하기 1. jsp : ,,, idx 해당하는 값을 담는다. 2. java control // parameter 받기 String chkNum = ServletRequestUtils.getStringParameter(request, "chkNum", "0"); //삭제 옵션코드 List에 담기 String[] chkNumArray; chkNumArray = chkNum.split(","); List delOptionCode = new ArrayList(chkNumArray.length); for(int i=0; i
[ibatis] delete sql in 사용 prepend : 쿼리로 쓰여질 문자. property : 파라미터명. open : 시작 문자. close : 종료 문자. conjunction : 구분자. ====================================================================================== List list = new ArrayList(); list.add("A"); list.add("B"); list.add("C"); HashMap map = new HashMap(); map.put("idList", list); =====================================================================..
[ibatis] sql문 예제5 procedure {call U_I_SA ( ?, ?, ?, ?, ?, ? )} [ibatis] sql문 예제5 procedure
[ibatis] sql문 예제4 update UPDATE dbo.MENU_TREE SET MENU_NM = #menuNm:VARCHAR#, DISP_ORDER = #dispOrder:INTEGER#, MENU_URL = #menuUrl:VARCHAR#, MOD_DT = #modDt:VARCHAR#, MOD_ID = #modId:VARCHAR#, USE_YN = #useYn:VARCHAR# WHERE MENU_ID = #menuId:VARCHAR# ]]> [ibatis] sql문 예제4 update