1 16 package com.ibatis.sqlmap.engine.mapping.statement; 17 18 import com.ibatis.sqlmap.client.event.RowHandler; 19 import com.ibatis.sqlmap.engine.scope.RequestScope; 20 import com.ibatis.sqlmap.engine.transaction.Transaction; 21 22 import java.sql.SQLException ; 23 import java.util.List ; 24 25 public class DeleteStatement extends GeneralStatement { 26 27 public StatementType getStatementType() { 28 return StatementType.DELETE; 29 } 30 31 public Object executeQueryForObject(RequestScope request, Transaction trans, Object parameterObject, Object resultObject) 32 throws SQLException { 33 throw new SQLException ("Delete statements cannot be executed as a query."); 34 } 35 36 public List executeQueryForList(RequestScope request, Transaction trans, Object parameterObject, int skipResults, int maxResults) 37 throws SQLException { 38 throw new SQLException ("Delete statements cannot be executed as a query."); 39 } 40 41 public void executeQueryWithRowHandler(RequestScope request, Transaction trans, Object parameterObject, RowHandler rowHandler) 42 throws SQLException { 43 throw new SQLException ("Delete statements cannot be executed as a query."); 44 } 45 46 } 47 | Popular Tags |