public interface SqlMapClientOperations extends PropertyProvider
SqlMapClientTemplate.| Modifier and Type | Method and Description |
|---|---|
int |
delete(String statementName) |
int |
delete(String statementName,
Object parameterObject) |
void |
delete(String statementName,
Object parameterObject,
int requiredRowsAffected)
Convenience method provided by Spring: execute a delete operation with an automatic check that the delete
affected the given required number of rows.
|
int |
deleteArgs(String id,
Object... args)
Do delete operation by var-args paramenters as #1# to #n#
|
<E,K> int |
deleteEntity(Class<E> cls,
K key)
Update an entity object by its key.
|
<T> int |
executeDelete(CriteriaDelete<T> deleteQuery)
Delete entities by the CriteriaUpdate object.
|
<T> List<T> |
executeQuery(CriteriaQuery<T> criteriaQuery)
Query the object list by the CriteriaQuery object.
|
<T> List<T> |
executeQuery(CriteriaQuery<T> criteriaQuery,
int startPosition,
int maxResult)
Query the object list by the CriteriaQuery object.
|
<T> T |
executeQueryObject(CriteriaQuery<T> criteriaQuery)
Query the first object by the CriteriaQuery object.
|
<T> int |
executeQueryPage(CriteriaQuery<T> criteriaQuery,
List<T> page,
int startPosition,
int maxResult)
Query the object list by the CriteriaQuery object and fill into page
|
<T> int |
executeUpdate(CriteriaUpdate<T> updateQuery)
Update entities by the CriteriaUpdate object.
|
<E,K> E |
findEntity(Class<E> cls,
K key)
Find an entity object by its key.
|
CriteriaBuilder |
getCriteriaBuilder()
Return an instance of
CriteriaBuilder for the creation of CriteriaQuery,
CriteriaUpdateor CriteriaDelete objects. |
<T> T |
insert(String statementName) |
<T> T |
insert(String statementName,
Object parameterObject) |
<T> T |
insertArgs(String id,
Object... args)
Do insert operation by var-args paramenters as #1# to #n#
|
<E> E |
insertEntity(Class<E> cls,
E entity)
Insert an entity object.
|
<T> T |
queryForFirst(String id)
Do query and return first row as result object.
|
<T> T |
queryForFirst(String id,
Object parameterObject)
Do query and return first row as result object.
|
<T> T |
queryForFirstArgs(String id,
Object... args)
Do queryForFirst operation by var-args paramenters as #1# to #n#
|
<T> List<T> |
queryForList(String statementName) |
<T> List<T> |
queryForList(String statementName,
int skipResults,
int maxResults) |
<T> List<T> |
queryForList(String statementName,
Object parameterObject) |
<T> List<T> |
queryForList(String statementName,
Object parameterObject,
int skipResults,
int maxResults) |
<T> List<T> |
queryForListArgs(int skip,
int max,
String id,
Object... args)
Do queryForList operation by var-args paramenters as #1# to #n#
|
<T> List<T> |
queryForListArgs(String id,
Object... args)
Do queryForList operation by var-args paramenters as #1# to #n#
|
<K,V> Map<K,V> |
queryForMap(String statementName,
Object parameterObject,
String keyProperty) |
<K,V> Map<K,V> |
queryForMap(String statementName,
Object parameterObject,
String keyProperty,
Class<K> keyType,
String valueProperty,
Class<V> valueType) |
<K,V> Map<K,V> |
queryForMap(String statementName,
Object parameterObject,
String keyProperty,
String valueProperty) |
<K,V> Map<K,V> |
queryForMapArgs(String id,
String keyProp,
Class<K> keyType,
String valueProp,
Class<V> valueType,
Object... args)
Do queryForMap operation by var-args paramenters as #1# to #n#
|
<K,V> Map<K,V> |
queryForMapArgs(String id,
String keyProp,
Object... args)
Do queryForMap operation by var-args paramenters as #1# to #n#
|
<K,V> Map<K,V> |
queryForMapArgs(String id,
String keyProp,
String valueProp,
Object... args)
Do queryForMap operation by var-args paramenters as #1# to #n#
|
<T> T |
queryForObject(String statementName) |
<T> T |
queryForObject(String statementName,
Object parameterObject) |
<T> T |
queryForObject(String statementName,
Object parameterObject,
Object resultObject) |
<T> T |
queryForObjectArgs(String id,
Object... args)
Do queryForObject operation by var-args paramenters as #1# to #n#
|
<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.
|
<T> int |
queryForPageArgs(List<T> page,
String id,
int skip,
int max,
Object... args)
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.
|
ResultSet |
queryForResultSet(String id)
Do query and return a cached result set.
|
ResultSet |
queryForResultSet(String id,
Object parameterObject)
Do query and return a cached result set.
|
ResultSet |
queryForResultSetArgs(String id,
Object... args)
Do queryForResultSet operation by var-args paramenters as #1# to #n#
|
void |
queryWithRowHandler(String statementName,
Object parameterObject,
RowHandler rowHandler) |
void |
queryWithRowHandler(String statementName,
RowHandler rowHandler) |
void |
queryWithRowHandler(String statementName,
RowHandler rowHandler,
Object... args)
Do queryWithRowHandler operation by var-args paramenters as #1# to #n#
|
int |
update(String statementName) |
int |
update(String statementName,
Object parameterObject) |
void |
update(String statementName,
Object parameterObject,
int requiredRowsAffected)
Convenience method provided by Spring: execute an update operation with an automatic check that the update
affected the given required number of rows.
|
int |
updateArgs(String id,
Object... args)
Do update operation by var-args paramenters as #1# to #n#
|
<E,K> int |
updateEntity(Class<E> cls,
E entity)
Update an entity object.
|
getGlobalProperty<T> T queryForObject(String statementName) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForObject(String)<T> T queryForObject(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForObject(String, Object)<T> T queryForObject(String statementName, Object parameterObject, Object resultObject) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForObject(String, Object, Object)<T> List<T> queryForList(String statementName) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForList(String)<T> List<T> queryForList(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForList(String, Object)<T> List<T> queryForList(String statementName, int skipResults, int maxResults) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForList(String, int, int)<T> List<T> queryForList(String statementName, Object parameterObject, int skipResults, int maxResults) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForList(String, Object, int, int)void queryWithRowHandler(String statementName, RowHandler rowHandler) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryWithRowHandler(String, RowHandler)void queryWithRowHandler(String statementName, Object parameterObject, RowHandler rowHandler) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryWithRowHandler(String, Object, RowHandler)void queryWithRowHandler(String statementName, RowHandler rowHandler, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryWithRowHandler(String, Object, RowHandler)<K,V> Map<K,V> queryForMap(String statementName, Object parameterObject, String keyProperty) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForMap(String, Object, String)<K,V> Map<K,V> queryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForMap(String, Object, String, String)<K,V> Map<K,V> queryForMap(String statementName, Object parameterObject, String keyProperty, Class<K> keyType, String valueProperty, Class<V> valueType) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.queryForMap(String, Object, String, Class, String, Class)<T> T insert(String statementName) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.insert(String)<T> T insert(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.insert(String, Object)int update(String statementName) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.update(String)int update(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.update(String, Object)void update(String statementName, Object parameterObject, int requiredRowsAffected) throws org.springframework.dao.DataAccessException
statementName - the name of the mapped statementparameterObject - the parameter objectrequiredRowsAffected - the number of rows that the update is required to affectorg.springframework.dao.DataAccessException - in case of errorsint delete(String statementName) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.delete(String)int delete(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - in case of errorsSqlMapExecutor.delete(String, Object)void delete(String statementName, Object parameterObject, int requiredRowsAffected) throws org.springframework.dao.DataAccessException
statementName - the name of the mapped statementparameterObject - the parameter objectrequiredRowsAffected - the number of rows that the delete is required to affectorg.springframework.dao.DataAccessException - in case of errors<T> T insertArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptioninsert(String, Object)int updateArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionupdate(String, Object)int deleteArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptiondelete(String, Object)<T> List<T> queryForListArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForList(String, Object)<T> List<T> queryForListArgs(int skip, int max, String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForList(String, Object, int, int)<K,V> Map<K,V> queryForMapArgs(String id, String keyProp, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForMap(String, Object, String)<K,V> Map<K,V> queryForMapArgs(String id, String keyProp, String valueProp, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForMap(String, Object, String, String)<K,V> Map<K,V> queryForMapArgs(String id, String keyProp, Class<K> keyType, String valueProp, Class<V> valueType, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForMap(String, Object, String, Class, String, Class)<T> T queryForObjectArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForObject(String, Object)<T> T queryForFirstArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForFirst(String, Object)<T> T queryForFirst(String id) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionSqlMapExecutor.queryForList(String)<T> T queryForFirst(String id, Object parameterObject) throws org.springframework.dao.DataAccessException
parameterObject - the parameter for queryorg.springframework.dao.DataAccessExceptionSqlMapExecutor.queryForList(String, Object)<T> int queryForPage(List<T> page, String id, Object paramObject, int skip, int max) throws org.springframework.dao.DataAccessException
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.java.sql.DataAccessException - If an error occurs.org.springframework.dao.DataAccessException<T> int queryForPage(List<T> page, String id, int skip, int max) throws org.springframework.dao.DataAccessException
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.java.sql.DataAccessException - If an error occurs.org.springframework.dao.DataAccessException<T> int queryForPageArgs(List<T> page, String id, int skip, int max, Object... args) throws org.springframework.dao.DataAccessException
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.args - The parameter objects #1# to #n#java.sql.DataAccessException - If an error occurs.org.springframework.dao.DataAccessExceptionResultSet queryForResultSetArgs(String id, Object... args) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionqueryForResultSet(String, Object)ResultSet queryForResultSet(String id) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionRowSetResultSet queryForResultSet(String id, Object parameterObject) throws org.springframework.dao.DataAccessException
parameterObject - the parameter for queryorg.springframework.dao.DataAccessExceptionRowSet<E> E insertEntity(Class<E> cls, E entity) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionEntityManager.insertEntity(Class, Object)<E,K> int updateEntity(Class<E> cls, E entity) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionEntityManager.updateEntity(Class, Object)<E,K> int deleteEntity(Class<E> cls, K key) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionEntityManager.deleteEntity(Class, Object)<E,K> E findEntity(Class<E> cls, K key) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionEntityManager.findEntity(Class, Object)<T> T executeQueryObject(CriteriaQuery<T> criteriaQuery) throws org.springframework.dao.DataAccessException
criteriaQuery - the CriteriaQuery object.org.springframework.dao.DataAccessException<T> List<T> executeQuery(CriteriaQuery<T> criteriaQuery) throws org.springframework.dao.DataAccessException
criteriaQuery - the CriteriaQuery object.org.springframework.dao.DataAccessException<T> List<T> executeQuery(CriteriaQuery<T> criteriaQuery, int startPosition, int maxResult) throws org.springframework.dao.DataAccessException
criteriaQuery - the CriteriaQuery object.startPosition - position of the first result, numbered from 0maxResult - maximum number of results to retrieveorg.springframework.dao.DataAccessException<T> int executeQueryPage(CriteriaQuery<T> criteriaQuery, List<T> page, int startPosition, int maxResult) throws org.springframework.dao.DataAccessException
criteriaQuery - the CriteriaQuery object.page - the page containerstartPosition - position of the first result, numbered from 0maxResult - maximum number of results to retrieveorg.springframework.dao.DataAccessException<T> int executeUpdate(CriteriaUpdate<T> updateQuery) throws org.springframework.dao.DataAccessException
updateQuery - the CriteriaUpdate object.org.springframework.dao.DataAccessException<T> int executeDelete(CriteriaDelete<T> deleteQuery) throws org.springframework.dao.DataAccessException
deleteQuery - the CriteriaDelete object.org.springframework.dao.DataAccessExceptionCriteriaBuilder getCriteriaBuilder() throws org.springframework.dao.DataAccessException
CriteriaBuilder for the creation of CriteriaQuery,
CriteriaUpdateor CriteriaDelete objects.org.springframework.dao.DataAccessExceptionCopyright © 2084–2018 dukeware.com. All rights reserved.