31. Idea No.1 - REPL
実装したら即試したい!!いちいちビルドだるい!
SELECT /* _SQL_ID_ */
DEPT.DEPT_NO AS DEPT_NO
, DEPT.DEPT_NAME AS DEPT_NAME
FROM
DEPARTMENT DEPT
WHERE
1 = 1
/*IF SF.isNotEmpty(dept_no)*/
AND DEPT.DEPT_NO = /*dept_no*/1
/*END*/
/*IF SF.isNotEmpty(dept_name)*/
AND DEPT.DEPT_NAME = /*dept_name*/'sample'
/*END*/
department/select_department.sql
45. 区分値サポート
あらかじめ定義された定数クラス、列挙体が利用可能
SELECT /* _SQL_ID_ */
EMP.EMP_NO AS EMP_NO
, EMP.FIRST_NAME AS FIRST_NAME
, EMP.LAST_NAME AS LAST_NAME
, EMP.BIRTH_DATE AS BIRTH_DATE
, EMP.GENDER AS GENDER
FROM
EMPLOYEE EMP
WHERE
/*IF SF.isNotEmpty(emp_no)*/
AND EMP.EMP_NO = /*emp_no*/1
/*END*/
/*IF female != null and female*/
AND EMP.GENDER = /*#CLS_GENDER_FEMALE*/'M'
/*END*/