org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperationspublic final class OracleNamedParameterJdbcTemplate
extends org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate
NamedParameterJdbcTemplate the uses
Oracle named parameter to avoid parsing building a new query.
SqlValue, instead NamedSqlValue has to be usedSqlOracleArrayValue
or similar have to be usedSqlTypeValueCalendar| Modifier and Type | Class | Description |
|---|---|---|
(package private) static class |
OracleNamedParameterJdbcTemplate.NamedPreparedStatementCreator |
Binds named parameters using proprietary Oracle methods.
|
| Constructor | Description |
|---|---|
OracleNamedParameterJdbcTemplate(DataSource dataSource) |
Create a new NamedParameterJdbcTemplate for the given
DataSource. |
OracleNamedParameterJdbcTemplate(org.springframework.jdbc.core.JdbcOperations classicJdbcTemplate) |
Create a new NamedParameterJdbcTemplate for the given classic
Spring
JdbcTemplate. |
| Modifier and Type | Method | Description |
|---|---|---|
int[] |
batchUpdate(String sql,
org.springframework.jdbc.core.namedparam.SqlParameterSource[] batchArgs) |
|
protected org.springframework.jdbc.core.namedparam.ParsedSql |
getParsedSql(String sql) |
|
protected org.springframework.jdbc.core.PreparedStatementCreator |
getPreparedStatementCreator(String sql,
org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource) |
|
int |
update(String sql,
org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource,
org.springframework.jdbc.support.KeyHolder generatedKeyHolder,
String[] keyColumnNames) |
batchUpdate, execute, execute, execute, getCacheLimit, getJdbcOperations, getJdbcTemplate, getPreparedStatementCreator, query, query, query, query, query, query, query, query, query, queryForList, queryForList, queryForList, queryForList, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForObject, queryForRowSet, queryForRowSet, setCacheLimit, update, update, updatepublic OracleNamedParameterJdbcTemplate(DataSource dataSource)
DataSource.
Creates a classic Spring JdbcTemplate and wraps it.
dataSource - the JDBC DataSource to accesspublic OracleNamedParameterJdbcTemplate(org.springframework.jdbc.core.JdbcOperations classicJdbcTemplate)
JdbcTemplate.classicJdbcTemplate - the classic Spring JdbcTemplate to wrappublic int update(String sql, org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource, org.springframework.jdbc.support.KeyHolder generatedKeyHolder, @Nullable String[] keyColumnNames)
update in interface org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperationsupdate in class org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplatepublic int[] batchUpdate(String sql, org.springframework.jdbc.core.namedparam.SqlParameterSource[] batchArgs)
batchUpdate in interface org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperationsbatchUpdate in class org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplateprotected org.springframework.jdbc.core.PreparedStatementCreator getPreparedStatementCreator(String sql, org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource)
getPreparedStatementCreator in class org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplateprotected org.springframework.jdbc.core.namedparam.ParsedSql getParsedSql(String sql)
getParsedSql in class org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplateCopyright © 2018. All rights reserved.