| org.springframework.jdbc.core.simple.SimpleJdbcOperations
All known Subclasses: org.springframework.jdbc.core.simple.SimpleJdbcTemplate,
Method Summary | |
public int[] | batchUpdate(String sql, Map[] batchValues) Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the named parameter support.
Parameters: sql - the SQL statement to execute. Parameters: batchValues - the array of Maps containing the batch of arguments for the query. | public int[] | batchUpdate(String sql, SqlParameterSource[] batchArgs) Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the named parameter support.
Parameters: sql - the SQL statement to execute. Parameters: batchArgs - the array of SqlParameterSource containing the batch of arguments for the query. | public int[] | batchUpdate(String sql, List<Object[]> batchArgs) Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the standard '?' placeholders for parameters
Parameters: sql - the SQL statement to execute. Parameters: batchArgs - the List of Object arrays containing the batch of arguments for the query. | public int[] | batchUpdate(String sql, List<Object[]> batchArgs, int[] argTypes) Executes a batch using the supplied SQL statement with the batch of supplied arguments. | JdbcOperations | getJdbcOperations() Expose the classic Spring JdbcTemplate to allow invocation of less
commonly used methods. | NamedParameterJdbcOperations | getNamedParameterJdbcOperations() Expose the Spring NamedParameterJdbcTemplate to allow invocation of less
commonly used methods. | List<T> | query(String sql, ParameterizedRowMapper<T> rm, Map args) Query for a
List of Objects of type T using
the supplied
ParameterizedRowMapper to the query results to the object. | List<T> | query(String sql, ParameterizedRowMapper<T> rm, SqlParameterSource args) Query for a
List of Objects of type T using
the supplied
ParameterizedRowMapper to the query results to the object. | List<T> | query(String sql, ParameterizedRowMapper<T> rm, Object... args) Query for a
List of Objects of type T using
the supplied
ParameterizedRowMapper to the query results to the object. | int | queryForInt(String sql, Map args) Query for an int passing in a SQL query
using the named parameter support provided by the
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate and a map containing the arguments. | int | queryForInt(String sql, SqlParameterSource args) Query for an int passing in a SQL query
using the named parameter support provided by the
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate and a SqlParameterSource containing the arguments. | int | queryForInt(String sql, Object... args) Query for an int passing in a SQL query
using the standard '?' placeholders for parameters
and a variable number of arguments. | List<Map<String, Object>> | queryForList(String sql, Map args) Execute the supplied query with the supplied arguments. | List<Map<String, Object>> | queryForList(String sql, SqlParameterSource args) Execute the supplied query with the supplied arguments. | List<Map<String, Object>> | queryForList(String sql, Object... args) Execute the supplied query with the (optional) supplied arguments. | long | queryForLong(String sql, Map args) Query for an long passing in a SQL query
using the named parameter support provided by the
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate and a map containing the arguments. | long | queryForLong(String sql, SqlParameterSource args) Query for an long passing in a SQL query
using the named parameter support provided by the
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate and a SqlParameterSource containing the arguments. | long | queryForLong(String sql, Object... args) Query for an long passing in a SQL query
using the standard '?' placeholders for parameters
and a variable number of arguments. | Map<String, Object> | queryForMap(String sql, Map args) Execute the supplied query with the supplied arguments. | Map<String, Object> | queryForMap(String sql, SqlParameterSource args) Execute the supplied query with the supplied arguments. | Map<String, Object> | queryForMap(String sql, Object... args) Execute the supplied query with the (optional) supplied arguments. | T | queryForObject(String sql, Class<T> requiredType, Map args) Query for an object of type T identified by the supplied @
Class . | T | queryForObject(String sql, Class<T> requiredType, SqlParameterSource args) Query for an object of type T identified by the supplied @
Class . | T | queryForObject(String sql, Class<T> requiredType, Object... args) Query for an object of type T identified by the supplied @
Class . | T | queryForObject(String sql, ParameterizedRowMapper<T> rm, Map args) Query for an object of type T using the supplied
ParameterizedRowMapper to the query results to the object. | T | queryForObject(String sql, ParameterizedRowMapper<T> rm, SqlParameterSource args) Query for an object of type T using the supplied
ParameterizedRowMapper to the query results to the object. | T | queryForObject(String sql, ParameterizedRowMapper<T> rm, Object... args) Query for an object of type T using the supplied
ParameterizedRowMapper to the query results to the object. | int | update(String sql, Map args) Executes the supplied SQL statement with (optional) supplied arguments.
Uses sql with the named parameter support provided by the
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate Parameters: sql - the SQL statement to execute. Parameters: args - the map containing the arguments for the query. | int | update(String sql, SqlParameterSource args) Executes the supplied SQL statement with supplied arguments.
Uses sql with the named parameter support provided by the
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate Parameters: sql - the SQL statement to execute. Parameters: args - the SqlParameterSource containing the arguments for the statement. | int | update(String sql, Object... args) Executes the supplied SQL statement with supplied arguments.
Uses sql with the standard '?' placeholders for parameters
Parameters: sql - the SQL statement to execute. Parameters: args - the variable number of arguments for the query. |
batchUpdate | public int[] batchUpdate(String sql, Map[] batchValues)(Code) | | Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the named parameter support.
Parameters: sql - the SQL statement to execute. Parameters: batchValues - the array of Maps containing the batch of arguments for the query. an array containing the numbers of rows affected by each update in the batch. |
batchUpdate | public int[] batchUpdate(String sql, SqlParameterSource[] batchArgs)(Code) | | Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the named parameter support.
Parameters: sql - the SQL statement to execute. Parameters: batchArgs - the array of SqlParameterSource containing the batch of arguments for the query. an array containing the numbers of rows affected by each update in the batch. |
batchUpdate | public int[] batchUpdate(String sql, List<Object[]> batchArgs)(Code) | | Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the standard '?' placeholders for parameters
Parameters: sql - the SQL statement to execute. Parameters: batchArgs - the List of Object arrays containing the batch of arguments for the query. an array containing the numbers of rows affected by each update in the batch. |
batchUpdate | public int[] batchUpdate(String sql, List<Object[]> batchArgs, int[] argTypes)(Code) | | Executes a batch using the supplied SQL statement with the batch of supplied arguments.
Uses sql with the standard '?' placeholders for parameters
Parameters: sql - the SQL statement to execute. Parameters: batchArgs - the List of Object arrays containing the batch of arguments for the query. Parameters: argTypes - SQL types of the arguments(constants from java.sql.Types ) an array containing the numbers of rows affected by each update in the batch. |
getJdbcOperations | JdbcOperations getJdbcOperations()(Code) | | Expose the classic Spring JdbcTemplate to allow invocation of less
commonly used methods.
|
getNamedParameterJdbcOperations | NamedParameterJdbcOperations getNamedParameterJdbcOperations()(Code) | | Expose the Spring NamedParameterJdbcTemplate to allow invocation of less
commonly used methods.
|
queryForInt | int queryForInt(String sql, Object... args) throws DataAccessException(Code) | | Query for an int passing in a SQL query
using the standard '?' placeholders for parameters
and a variable number of arguments.
Parameters: sql - the SQL query to run. Parameters: args - the variable number of arguments for the query. |
queryForLong | long queryForLong(String sql, Object... args) throws DataAccessException(Code) | | Query for an long passing in a SQL query
using the standard '?' placeholders for parameters
and a variable number of arguments.
Parameters: sql - the SQL query to run. Parameters: args - the variable number of arguments for the query. |
|
|