sqlTemplateField = wrappedPreparedStatement.getField(fieldName);
String methodName = ProxettaAsmUtil.adviceMethodName("getQueryString", 0);
getQueryStringMethod = wrappedPreparedStatement.getMethod(methodName);
} catch (Exception ex) {
throw new DbSqlException(ex);
}
}
// wrap prepared statement instance
PreparedStatement wrapper;
try {
wrapper = wrappedPreparedStatement.newInstance();
} catch (Exception ex) {
throw new DbSqlException(ex);
}
builder.injectTargetIntoWrapper(preparedStatement, wrapper);
try {
sqlTemplateField.set(wrapper, sql);
} catch (Exception ex) {
throw new DbSqlException(ex);
}
return wrapper;
}