@Override public void setParameterValue(PreparedStatement ps, int parameterPosition, Object argValue) throws SQLException { if (argValue instanceof SqlParameterValue) { SqlParameterValue paramValue = (SqlParameterValue) argValue; StatementCreatorUtils.setParameterValue( ps, parameterPosition, paramValue, DbmUtils.getActualValue(paramValue.getValue())); } else { StatementCreatorUtils.setParameterValue( ps, parameterPosition, SqlTypeValue.TYPE_UNKNOWN, DbmUtils.getActualValue(argValue)); } }
protected void throwIfEffectiveCountError(String operation, int expectCount, int effectiveCount) { DbmUtils.throwIfEffectiveCountError(operation + " error.", expectCount, effectiveCount); }