コード例 #1
0
 @Override
 public void executeSetPreparedStatement(Object pstmt, int index, Object data) throws Exception {
   if (data == null) {
     ((PreparedStatement) pstmt).setNull(index, Types.CHAR);
   } else {
     ((PreparedStatement) pstmt).setString(index, SqlUtils.getString((Boolean) data));
   }
 }
コード例 #2
0
 @Override
 public Object executeGetResult(Object rs, int index) throws Exception {
   return SqlUtils.getBoolean(((ResultSet) rs).getString(index));
 }