1 16 package com.ibatis.sqlmap.engine.mapping.statement; 17 18 import com.ibatis.sqlmap.engine.scope.RequestScope; 19 import com.ibatis.sqlmap.engine.transaction.Transaction; 20 21 import java.sql.SQLException ; 22 23 public class SelectStatement extends GeneralStatement { 24 25 public StatementType getStatementType() { 26 return StatementType.SELECT; 27 } 28 29 public int executeUpdate(RequestScope request, Transaction trans, Object parameterObject) 30 throws SQLException { 31 throw new SQLException ("Select statements cannot be executed as an update."); 32 } 33 34 } 35 | Popular Tags |