1 16 package com.ibatis.sqlmap.engine.mapping.statement; 17 18 import com.ibatis.sqlmap.engine.scope.RequestScope; 19 20 import java.sql.Connection ; 21 import java.sql.SQLException ; 22 23 public class ProcedureStatement extends GeneralStatement { 24 25 protected void postProcessParameterObject(RequestScope request, Object parameterObject, Object [] parameters) { 26 request.getParameterMap().refreshParameterObjectValues(request, parameterObject, parameters); 27 } 28 29 protected int sqlExecuteUpdate(RequestScope request, Connection conn, String sqlString, Object [] parameters) throws SQLException { 30 return getSqlExecutor().executeUpdateProcedure(request, conn, sqlString.trim(), parameters); 31 } 32 33 protected void sqlExecuteQuery(RequestScope request, Connection conn, String sqlString, Object [] parameters, int skipResults, int maxResults, RowHandlerCallback callback) throws SQLException { 34 getSqlExecutor().executeQueryProcedure(request, conn, sqlString.trim(), parameters, skipResults, maxResults, callback); 35 } 36 37 public StatementType getStatementType() { 38 return StatementType.PROCEDURE; 39 } 40 } 41 | Popular Tags |