Example #1
0
 protected void setConditionValue(
     ReportRequest rrequest,
     SPDataSetValueBean spBean,
     CallableStatement cstmt,
     AbsDatabaseType dbtype,
     int index,
     String conname,
     VarcharType varcharObj)
     throws SQLException {
   ConditionBean cbean = spBean.getOwnerSpProvider().getConditionBeanByName(conname);
   IDataType dataTypeObj = cbean.getDatatypeObj() == null ? varcharObj : cbean.getDatatypeObj();
   dataTypeObj.setPreparedStatementValue(
       index, cbean.getConditionValueForSP(rrequest), cstmt, dbtype);
 }