use of org.dbflute.s2dao.sqlhandler.TnBasicParameterHandler in project dbflute-core by dbflute.
the class TnAbstractTwoWaySqlCommand method createBasicParameterHandler.
// ===================================================================================
// Handler
// =======
protected TnBasicParameterHandler createBasicParameterHandler(CommandContext context, String executedSql) {
final TnBasicParameterHandler handler = newBasicParameterHandler(executedSql);
final Object[] bindVariables = context.getBindVariables();
handler.setExceptionMessageSqlArgs(bindVariables);
return handler;
}
use of org.dbflute.s2dao.sqlhandler.TnBasicParameterHandler in project dbflute-core by dbflute.
the class TnAbstractTwoWaySqlCommand method execute.
// ===================================================================================
// Execute
// =======
public Object execute(Object[] args) {
final Node rootNode = getRootNode(args);
final CommandContext ctx = apply(rootNode, args, getArgNames(args), getArgTypes(args));
final String executedSql = filterExecutedSql(ctx);
final TnBasicParameterHandler handler = createBasicParameterHandler(ctx, executedSql);
final Object[] bindVariables = ctx.getBindVariables();
final Class<?>[] bindVariableTypes = ctx.getBindVariableTypes();
return filterReturnValue(handler.execute(bindVariables, bindVariableTypes));
}
Aggregations