public interface SqlMapExecutor extends SqlMapExecutor2, EntityManager
SqlMapSession,
SqlMapClient| Modifier and Type | Method and Description |
|---|---|
int |
delete(String id)
Executes a mapped SQL DELETE statement.
|
int |
delete(String id,
Object parameterObject)
Executes a mapped SQL DELETE statement.
|
int |
executeBatch()
Executes (flushes) all statements currently batched.
|
List<BatchResult> |
executeBatchDetailed()
Executes (flushes) all statements currently batched.
|
<T> T |
insert(String id)
Executes a mapped SQL INSERT statement.
|
<T> T |
insert(String id,
Object parameterObject)
Executes a mapped SQL INSERT statement.
|
<T> List<T> |
queryForList(String id)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects.
|
<T> List<T> |
queryForList(String id,
int skip,
int max)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects within a certain
range.
|
<T> List<T> |
queryForList(String id,
Object parameterObject)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects.
|
<T> List<T> |
queryForList(String id,
Object parameterObject,
int skip,
int max)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects within a certain
range.
|
<K,V> Map<K,V> |
queryForMap(String id,
Object parameterObject,
String keyProp)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects that will be
keyed into a Map.
|
<K,V> Map<K,V> |
queryForMap(String id,
Object parameterObject,
String keyProp,
Class<K> keyType,
String valueProp,
Class<V> valueType)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects from which one
property will be keyed into a Map.
|
<K,V> Map<K,V> |
queryForMap(String id,
Object parameterObject,
String keyProp,
String valueProp)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects from which one
property will be keyed into a Map.
|
<T> T |
queryForObject(String id)
Executes a mapped SQL SELECT statement that returns data to populate a single object instance.
|
<T> T |
queryForObject(String id,
Object parameterObject)
Executes a mapped SQL SELECT statement that returns data to populate a single object instance.
|
<T> T |
queryForObject(String id,
Object parameterObject,
Object resultObject)
Executes a mapped SQL SELECT statement that returns data to populate the supplied result object.
|
<T> int |
queryForPage(List<T> page,
String id,
int skip,
int max)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects within a certain
range into the page argument and return the total number.
|
<T> int |
queryForPage(List<T> page,
String id,
Object paramObject,
int skip,
int max)
Executes a mapped SQL SELECT statement that returns data to populate a number of result objects within a certain
range into the page argument and return the total number.
|
void |
queryWithRowHandler(String id,
Object parameterObject,
RowHandler rowHandler)
Executes a mapped SQL SELECT statement that returns a number of result objects that will be handled one at a time
by a RowHandler.
|
void |
queryWithRowHandler(String id,
RowHandler rowHandler)
Executes a mapped SQL SELECT statement that returns a number of result objects that will be handled one at a time
by a RowHandler.
|
void |
startBatch() |
void |
startBatch(int batchSize)
Starts a batch in which update statements will be cached before being sent to the database all at once.
|
int |
update(String id)
Executes a mapped SQL UPDATE statement.
|
int |
update(String id,
Object parameterObject)
Executes a mapped SQL UPDATE statement.
|
deleteArgs, insertArgs, queryForFirst, queryForFirst, queryForFirstArgs, queryForListArgs, queryForListArgs, queryForMapArgs, queryForMapArgs, queryForMapArgs, queryForObjectArgs, queryForPageArgs, queryForResultSet, queryForResultSet, queryForResultSetArgs, queryWithRowHandlerArgs, updateArgsdeleteEntity, executeDelete, executeQuery, executeQuery, executeQueryObject, executeQueryPage, executeUpdate, findEntity, getCriteriaBuilder, initEntityClass, insertEntity, updateEntity<T> T insert(String id, Object parameterObject) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).SQLException - If an error occurs.<T> T insert(String id) throws SQLException
id - The name of the statement to execute.SQLException - If an error occurs.int update(String id, Object parameterObject) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).SQLException - If an error occurs.int update(String id) throws SQLException
id - The name of the statement to execute.SQLException - If an error occurs.int delete(String id, Object parameterObject) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).SQLException - If an error occurs.int delete(String id) throws SQLException
id - The name of the statement to execute.SQLException - If an error occurs.<T> T queryForObject(String id, Object parameterObject) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).SQLException - If more than one result was found, or if any other error occurs.<T> T queryForObject(String id) throws SQLException
id - The name of the statement to execute.SQLException - If more than one result was found, or if any other error occurs.<T> T queryForObject(String id, Object parameterObject, Object resultObject) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).resultObject - The result object instance that should be populated with result data.SQLException - If more than one result was found, or if any other error occurs.<T> List<T> queryForList(String id, Object parameterObject) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).SQLException - If an error occurs.<T> List<T> queryForList(String id) throws SQLException
id - The name of the statement to execute.SQLException - If an error occurs.<T> List<T> queryForList(String id, Object parameterObject, int skip, int max) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).skip - The number of results to ignore.max - The maximum number of results to return.SQLException - If an error occurs.<T> List<T> queryForList(String id, int skip, int max) throws SQLException
id - The name of the statement to execute.skip - The number of results to ignore.max - The maximum number of results to return.SQLException - If an error occurs.<T> int queryForPage(List<T> page, String id, Object paramObject, int skip, int max) throws SQLException
page - page container, input/output parameterid - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).skip - The number of results to ignore.max - The maximum number of results to return.SQLException - If an error occurs.<T> int queryForPage(List<T> page, String id, int skip, int max) throws SQLException
page - page container, input/output parameterid - The name of the statement to execute.skip - The number of results to ignore.max - The maximum number of results to return.SQLException - If an error occurs.void queryWithRowHandler(String id, Object parameterObject, RowHandler rowHandler) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).rowHandler - A RowHandler instanceSQLException - If an error occurs.void queryWithRowHandler(String id, RowHandler rowHandler) throws SQLException
id - The name of the statement to execute.rowHandler - A RowHandler instanceSQLException - If an error occurs.<K,V> Map<K,V> queryForMap(String id, Object parameterObject, String keyProp) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).keyProp - The property to be used as the key in the Map.SQLException - If an error occurs.<K,V> Map<K,V> queryForMap(String id, Object parameterObject, String keyProp, String valueProp) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).keyProp - The property to be used as the key in the Map.valueProp - The property to be used as the value in the Map.SQLException - If an error occurs.<K,V> Map<K,V> queryForMap(String id, Object parameterObject, String keyProp, Class<K> keyType, String valueProp, Class<V> valueType) throws SQLException
id - The name of the statement to execute.parameterObject - The parameter object (e.g. JavaBean, Map, XML etc.).keyProp - The property to be used as the key in the Map.keyType - The type of property to be used as the key in the Map.valueProp - The property to be used as the value in the Map.valueType - The type of property to be used as the value in the Map.SQLException - If an error occurs.void startBatch()
throws SQLException
SQLExceptionvoid startBatch(int batchSize)
throws SQLException
batchSize - if > 0 and batchSize reached, then flush the batch.SQLException - If the batch could not be started.int executeBatch()
throws SQLException
SQLException - If the batch could not be executed or if any of the statements fails.List<BatchResult> executeBatchDetailed() throws SQLException, com.ibatis.sqlmap.engine.execution.BatchException
SQLException - if a database access error occurs, or the drive does not support batch statementscom.ibatis.sqlmap.engine.execution.BatchException - if the driver throws BatchUpdateExceptionBatchExceptionCopyright © 2084–2018 dukeware.com. All rights reserved.