Class SelectKeyStatement
java.lang.Object
com.ibatis.sqlmap.engine.mapping.statement.MappedStatement
com.ibatis.sqlmap.engine.mapping.statement.SelectStatement
com.ibatis.sqlmap.engine.mapping.statement.SelectKeyStatement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteQueryForList
(StatementScope statementScope, Transaction trans, Object parameterObject, int skipResults, int maxResults) Execute query for list.void
executeQueryWithRowHandler
(StatementScope statementScope, Transaction trans, Object parameterObject, RowHandler rowHandler) Execute query with row handler.Gets the key property.boolean
Checks if is run after SQL.void
setKeyProperty
(String keyProperty) Sets the key property.void
setRunAfterSQL
(boolean runAfterSQL) Sets the run after SQL.Methods inherited from class com.ibatis.sqlmap.engine.mapping.statement.SelectStatement
executeUpdate, getStatementType
Methods inherited from class com.ibatis.sqlmap.engine.mapping.statement.MappedStatement
addExecuteListener, addResultMap, executeQueryForObject, executeQueryWithCallback, getAdditionalResultMaps, getCacheKey, getFetchSize, getId, getParameterClass, getParameterMap, getResource, getResultMap, getResultSetType, getSql, getSqlExecutor, getSqlMapClient, getTimeout, hasMultipleResultMaps, initRequest, notifyListeners, postProcessParameterObject, setBaseCacheKey, setFetchSize, setId, setParameterClass, setParameterMap, setResource, setResultMap, setResultSetType, setSql, setSqlMapClient, setTimeout, sqlExecuteQuery, sqlExecuteUpdate, validateParameter
-
Constructor Details
-
SelectKeyStatement
public SelectKeyStatement()
-
-
Method Details
-
getKeyProperty
-
setKeyProperty
Sets the key property.- Parameters:
keyProperty
- the new key property
-
isRunAfterSQL
public boolean isRunAfterSQL()Checks if is run after SQL.- Returns:
- true, if is run after SQL
-
setRunAfterSQL
public void setRunAfterSQL(boolean runAfterSQL) Sets the run after SQL.- Parameters:
runAfterSQL
- the new run after SQL
-
executeQueryForList
public List executeQueryForList(StatementScope statementScope, Transaction trans, Object parameterObject, int skipResults, int maxResults) throws SQLException Description copied from class:MappedStatement
Execute query for list.- Overrides:
executeQueryForList
in classMappedStatement
- Parameters:
statementScope
- the statement scopetrans
- the transparameterObject
- the parameter objectskipResults
- the skip resultsmaxResults
- the max results- Returns:
- the list
- Throws:
SQLException
- the SQL exception
-
executeQueryWithRowHandler
public void executeQueryWithRowHandler(StatementScope statementScope, Transaction trans, Object parameterObject, RowHandler rowHandler) throws SQLException Description copied from class:MappedStatement
Execute query with row handler.- Overrides:
executeQueryWithRowHandler
in classMappedStatement
- Parameters:
statementScope
- the statement scopetrans
- the transparameterObject
- the parameter objectrowHandler
- the row handler- Throws:
SQLException
- the SQL exception
-