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 SelectKeyStatement extends SelectStatement { 26 27 private String keyProperty; 28 private boolean after; 29 30 public String getKeyProperty() { 31 return keyProperty; 32 } 33 34 public void setKeyProperty(String keyProperty) { 35 this.keyProperty = keyProperty; 36 } 37 38 public boolean isAfter() { 39 return after; 40 } 41 42 public void setAfter(boolean after) { 43 this.after = after; 44 } 45 46 public List executeQueryForList(RequestScope request, Transaction trans, Object parameterObject, int skipResults, int maxResults) 47 throws SQLException { 48 throw new SQLException ("Select statements cannot be executed for a list."); 49 } 50 51 public void executeQueryWithRowHandler(RequestScope request, Transaction trans, Object parameterObject, RowHandler rowHandler) 52 throws SQLException { 53 throw new SQLException ("Select Key statements cannot be executed with a row handler."); 54 } 55 56 } 57 | Popular Tags |