com.ibatis.sqlmap.engine.mapping.statement
Class GeneralStatement
java.lang.Object
com.ibatis.sqlmap.engine.mapping.statement.BaseStatement
com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement
- All Implemented Interfaces:
- MappedStatement
- Direct Known Subclasses:
- DeleteStatement, InsertStatement, ProcedureStatement, SelectStatement, UpdateStatement
- public class GeneralStatement
- extends BaseStatement
Method Summary |
java.util.List |
executeQueryForList(RequestScope request,
Transaction trans,
java.lang.Object parameterObject,
int skipResults,
int maxResults)
|
java.lang.Object |
executeQueryForObject(RequestScope request,
Transaction trans,
java.lang.Object parameterObject,
java.lang.Object resultObject)
|
protected void |
executeQueryWithCallback(RequestScope request,
java.sql.Connection conn,
java.lang.Object parameterObject,
java.lang.Object resultObject,
RowHandler rowHandler,
int skipResults,
int maxResults)
|
void |
executeQueryWithRowHandler(RequestScope request,
Transaction trans,
java.lang.Object parameterObject,
RowHandler rowHandler)
|
int |
executeUpdate(RequestScope request,
Transaction trans,
java.lang.Object parameterObject)
|
StatementType |
getStatementType()
|
protected void |
postProcessParameterObject(RequestScope request,
java.lang.Object parameterObject,
java.lang.Object[] parameters)
|
protected void |
sqlExecuteQuery(RequestScope request,
java.sql.Connection conn,
java.lang.String sqlString,
java.lang.Object[] parameters,
int skipResults,
int maxResults,
RowHandlerCallback callback)
|
protected int |
sqlExecuteUpdate(RequestScope request,
java.sql.Connection conn,
java.lang.String sqlString,
java.lang.Object[] parameters)
|
protected java.lang.Object |
validateParameter(java.lang.Object param)
|
Methods inherited from class com.ibatis.sqlmap.engine.mapping.statement.BaseStatement |
addExecuteListener, addResultMap, getAdditionalResultMaps, getCacheKey, getFetchSize, getId, getParameterClass, getParameterMap, getResource, getResultMap, getResultSetType, getSql, getSqlExecutor, getSqlMapClient, getTimeout, hasMultipleResultMaps, initRequest, notifyListeners, setBaseCacheKey, setFetchSize, setId, setParameterClass, setParameterMap, setResource, setResultMap, setResultSetType, setSql, setSqlMapClient, setTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneralStatement
public GeneralStatement()
getStatementType
public StatementType getStatementType()
executeUpdate
public int executeUpdate(RequestScope request,
Transaction trans,
java.lang.Object parameterObject)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeQueryForObject
public java.lang.Object executeQueryForObject(RequestScope request,
Transaction trans,
java.lang.Object parameterObject,
java.lang.Object resultObject)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeQueryForList
public java.util.List executeQueryForList(RequestScope request,
Transaction trans,
java.lang.Object parameterObject,
int skipResults,
int maxResults)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeQueryWithRowHandler
public void executeQueryWithRowHandler(RequestScope request,
Transaction trans,
java.lang.Object parameterObject,
RowHandler rowHandler)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeQueryWithCallback
protected void executeQueryWithCallback(RequestScope request,
java.sql.Connection conn,
java.lang.Object parameterObject,
java.lang.Object resultObject,
RowHandler rowHandler,
int skipResults,
int maxResults)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
postProcessParameterObject
protected void postProcessParameterObject(RequestScope request,
java.lang.Object parameterObject,
java.lang.Object[] parameters)
sqlExecuteUpdate
protected int sqlExecuteUpdate(RequestScope request,
java.sql.Connection conn,
java.lang.String sqlString,
java.lang.Object[] parameters)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
sqlExecuteQuery
protected void sqlExecuteQuery(RequestScope request,
java.sql.Connection conn,
java.lang.String sqlString,
java.lang.Object[] parameters,
int skipResults,
int maxResults,
RowHandlerCallback callback)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
validateParameter
protected java.lang.Object validateParameter(java.lang.Object param)
throws java.sql.SQLException
- Throws:
java.sql.SQLException