示例#1
0
 public void bindValue(Connection conn, CallableStatement cs, String parameterName, Object value)
     throws SQLException {
   if (value == null) {
     setNull(cs, parameterName);
   } else {
     cs.setInt(parameterName, DfTypeUtil.toPrimitiveInt(value));
   }
 }
示例#2
0
 public void bindValue(Connection conn, PreparedStatement ps, int index, Object value)
     throws SQLException {
   if (value == null) {
     setNull(ps, index);
   } else {
     ps.setInt(index, DfTypeUtil.toPrimitiveInt(value));
   }
 }