Esempio n. 1
0
 private void releaseStatementParameters(SQLQuery sqlStatement) {
   if (!CommonUtils.isEmpty(sqlStatement.getParameters())) {
     for (SQLQueryParameter param : sqlStatement.getParameters()) {
       if (param.isResolved()) {
         param.getValueHandler().releaseValueObject(param.getValue());
       }
     }
   }
 }
Esempio n. 2
0
 private void bindStatementParameters(DBCSession session, SQLQuery sqlStatement)
     throws DBCException {
   // Bind them
   for (SQLQueryParameter param : sqlStatement.getParameters()) {
     if (param.isResolved()) {
       // convert value to native form
       Object realValue =
           param.getValueHandler().getValueFromObject(session, param, param.getValue(), false);
       // bind
       param
           .getValueHandler()
           .bindValueObject(session, curStatement, param, param.getOrdinalPosition(), realValue);
     }
   }
 }