インターフェースの使用
org.springframework.jdbc.core.namedparam.SqlParameterSource
パッケージ
説明
テーブルの挿入とストアドプロシージャコールの構成と実行のためのコンテキストメタデータの抽象化。
名前付きパラメーターをサポートする JdbcTemplate バリアント。
テーブルの挿入とストアドプロシージャ呼び出しの簡略化レイヤー。
org.springframework.jdbc.core.metadata 内の SqlParameterSource 使用
修飾子と型メソッド説明CallMetaDataContext.matchInParameterValuesWithCallParameters
(SqlParameterSource parameterSource) 入力パラメーター値を、呼び出しで使用するように宣言されたパラメーターと一致させます。TableMetaDataContext.matchInParameterValuesWithInsertColumns
(SqlParameterSource parameterSource) 指定された列の名前と値を、使用されている列のリストと一致させます。org.springframework.jdbc.core.namedparam 内の SqlParameterSource 使用
修飾子と型クラス説明class
SqlParameterSource
実装の抽象基本クラス。class
特定の JavaBean オブジェクトの Bean プロパティからパラメーター値を取得するSqlParameterSource
実装。class
SqlParameterSource
インターフェースの単純な空の実装。class
パラメーターの特定のマップを保持するSqlParameterSource
実装。修飾子と型メソッド説明static SqlParameterSource[]
SqlParameterSourceUtils.createBatch
(ObjectSE... candidates) 渡された値(Map
SE または Bean オブジェクト)からのデータが入力されたSqlParameterSource
オブジェクトの配列を作成します。static SqlParameterSource[]
SqlParameterSourceUtils.createBatch
(CollectionSE<?> candidates) 渡された値(Map
SE または Bean オブジェクト)からのデータが入力されたSqlParameterSource
オブジェクトの配列を作成します。static SqlParameterSource[]
SqlParameterSourceUtils.createBatch
(MapSE<StringSE, ?>[] valueMaps) 渡された値からのデータが入力されたMapSqlParameterSource
オブジェクトの配列を作成します。修飾子と型メソッド説明int[]
NamedParameterJdbcOperations.batchUpdate
(StringSE sql, SqlParameterSource[] batchArgs) 提供された引数のバッチで提供された SQL ステートメントを使用して、バッチを実行します。int[]
NamedParameterJdbcTemplate.batchUpdate
(StringSE sql, SqlParameterSource[] batchArgs) static ListSE<SqlParameter>
NamedParameterUtils.buildSqlParameterList
(ParsedSql parsedSql, SqlParameterSource paramSource) パラメーター宣言を SqlParameterSource から対応する SqlParameters のリストに変換します。static int[]
NamedParameterUtils.buildSqlTypeArray
(ParsedSql parsedSql, SqlParameterSource paramSource) パラメーター型を SqlParameterSource から対応する int 配列に変換します。static ObjectSE[]
NamedParameterUtils.buildValueArray
(ParsedSql parsedSql, SqlParameterSource paramSource, ListSE<SqlParameter> declaredParams) 名前付きパラメーター値のマップを対応する配列に変換します。<T> T
NamedParameterJdbcOperations.execute
(StringSE sql, SqlParameterSource paramSource, PreparedStatementCallback<T> action) JDBC PreparedStatement で動作するコールバックアクションとして実装される JDBC データアクセス操作を実行します。<T> T
NamedParameterJdbcTemplate.execute
(StringSE sql, SqlParameterSource paramSource, PreparedStatementCallback<T> action) SqlParameterSourceUtils.extractCaseInsensitiveParameterNames
(SqlParameterSource parameterSource) 元の名前と一緒に大文字と小文字を区別しないパラメーター名のマップを作成します。protected PreparedStatementCreator
NamedParameterJdbcTemplate.getPreparedStatementCreator
(StringSE sql, SqlParameterSource paramSource) 指定された SQL および名前付きパラメーターに基づいてPreparedStatementCreator
を作成します。protected PreparedStatementCreator
NamedParameterJdbcTemplate.getPreparedStatementCreator
(StringSE sql, SqlParameterSource paramSource, ConsumerSE<PreparedStatementCreatorFactory> customizer) 指定された SQL および名前付きパラメーターに基づいてPreparedStatementCreator
を作成します。protected PreparedStatementCreatorFactory
NamedParameterJdbcTemplate.getPreparedStatementCreatorFactory
(ParsedSql parsedSql, SqlParameterSource paramSource) 指定された SQL および名前付きパラメーターに基づいてPreparedStatementCreatorFactory
を作成します。static ObjectSE
SqlParameterSourceUtils.getTypedValue
(SqlParameterSource source, StringSE parameterName) パラメーターに型情報がある場合はラップされた値を作成し、ない場合はプレーンオブジェクトを作成します。<T> T
NamedParameterJdbcOperations.query
(StringSE sql, SqlParameterSource paramSource, ResultSetExtractor<T> rse) 指定された SQL をクエリして、SQL から準備されたステートメントと、クエリにバインドする引数のリストを作成し、ResultSet を ResultSetExtractor で読み取ります。void
NamedParameterJdbcOperations.query
(StringSE sql, SqlParameterSource paramSource, RowCallbackHandler rch) 指定された SQL にクエリを実行して、SQL から準備されたステートメントとクエリにバインドする引数のリストを作成し、RowCallbackHandler で ResultSet を行ごとに読み取ります。<T> ListSE<T>
NamedParameterJdbcOperations.query
(StringSE sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) 指定された SQL をクエリして、SQL から準備されたステートメントとクエリにバインドする引数のリストを作成し、RowMapper を介して各行を Java オブジェクトにマッピングします。<T> T
NamedParameterJdbcTemplate.query
(StringSE sql, SqlParameterSource paramSource, ResultSetExtractor<T> rse) void
NamedParameterJdbcTemplate.query
(StringSE sql, SqlParameterSource paramSource, RowCallbackHandler rch) <T> ListSE<T>
NamedParameterJdbcTemplate.query
(StringSE sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) NamedParameterJdbcOperations.queryForList
(StringSE sql, SqlParameterSource paramSource) 指定された SQL をクエリし、SQL から準備されたステートメントと、クエリにバインドする引数のリストを作成し、結果リストを期待します。<T> ListSE<T>
NamedParameterJdbcOperations.queryForList
(StringSE sql, SqlParameterSource paramSource, ClassSE<T> elementType) 指定された SQL をクエリし、SQL から準備されたステートメントと、クエリにバインドする引数のリストを作成し、結果リストを期待します。NamedParameterJdbcTemplate.queryForList
(StringSE sql, SqlParameterSource paramSource) <T> ListSE<T>
NamedParameterJdbcTemplate.queryForList
(StringSE sql, SqlParameterSource paramSource, ClassSE<T> elementType) NamedParameterJdbcOperations.queryForMap
(StringSE sql, SqlParameterSource paramSource) 指定された SQL をクエリして、SQL から準備されたステートメントと、クエリにバインドする引数のリストを作成し、結果マップを期待します。NamedParameterJdbcTemplate.queryForMap
(StringSE sql, SqlParameterSource paramSource) <T> T
NamedParameterJdbcOperations.queryForObject
(StringSE sql, SqlParameterSource paramSource, ClassSE<T> requiredType) 指定された SQL をクエリし、SQL から準備されたステートメントと、クエリにバインドする引数のリストを作成し、結果オブジェクトを期待します。<T> T
NamedParameterJdbcOperations.queryForObject
(StringSE sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) 指定された SQL をクエリして、SQL から準備されたステートメントとクエリにバインドする引数のリストを作成し、RowMapper を介して単一の結果行を Java オブジェクトにマッピングします。<T> T
NamedParameterJdbcTemplate.queryForObject
(StringSE sql, SqlParameterSource paramSource, ClassSE<T> requiredType) <T> T
NamedParameterJdbcTemplate.queryForObject
(StringSE sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) NamedParameterJdbcOperations.queryForRowSet
(StringSE sql, SqlParameterSource paramSource) 指定された SQL を照会して、SQL から準備済みステートメントを作成し、SqlRowSet を想定して、照会にバインドする引数のリストを作成します。NamedParameterJdbcTemplate.queryForRowSet
(StringSE sql, SqlParameterSource paramSource) <T> StreamSE<T>
NamedParameterJdbcOperations.queryForStream
(StringSE sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) 指定された SQL をクエリして、SQL とクエリにバインドする引数のリストから準備済みステートメントを作成し、各行を RowMapper を介して Java オブジェクトにマッピングし、反復可能でクローズ可能なストリームに変換します。<T> StreamSE<T>
NamedParameterJdbcTemplate.queryForStream
(StringSE sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) static StringSE
NamedParameterUtils.substituteNamedParameters
(StringSE sql, SqlParameterSource paramSource) SQL ステートメントを解析し、プレースホルダーまたは名前付きパラメーターを見つけます。static StringSE
NamedParameterUtils.substituteNamedParameters
(ParsedSql parsedSql, SqlParameterSource paramSource) SQL ステートメントを解析し、プレースホルダーまたは名前付きパラメーターを見つけます。int
NamedParameterJdbcOperations.update
(StringSE sql, SqlParameterSource paramSource) 準備されたステートメントを介して更新を発行し、指定された引数をバインドします。int
NamedParameterJdbcOperations.update
(StringSE sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder) 準備されたステートメントを介して更新を発行し、指定された引数をバインドし、生成されたキーを返します。int
NamedParameterJdbcOperations.update
(StringSE sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder, StringSE[] keyColumnNames) 準備されたステートメントを介して更新を発行し、指定された引数をバインドし、生成されたキーを返します。int
NamedParameterJdbcTemplate.update
(StringSE sql, SqlParameterSource paramSource) int
NamedParameterJdbcTemplate.update
(StringSE sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder) int
NamedParameterJdbcTemplate.update
(StringSE sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder, StringSE[] keyColumnNames) org.springframework.jdbc.core.simple 内の SqlParameterSource 使用
修飾子と型メソッド説明AbstractJdbcCall.doExecute
(SqlParameterSource parameterSource) 渡されたSqlParameterSource
を使用して呼び出しを実行するデリゲートメソッド。protected int
AbstractJdbcInsert.doExecute
(SqlParameterSource parameterSource) 渡されたSqlParameterSource
を使用して挿入を実行するデリゲートメソッド。protected NumberSE
AbstractJdbcInsert.doExecuteAndReturnKey
(SqlParameterSource parameterSource) 渡されたSqlParameterSource
を使用して挿入を実行し、生成されたキーを返すメソッド。protected KeyHolder
AbstractJdbcInsert.doExecuteAndReturnKeyHolder
(SqlParameterSource parameterSource) 渡されたSqlParameterSource
を使用して挿入を実行し、生成されたすべてのキーを返すメソッド。protected int[]
AbstractJdbcInsert.doExecuteBatch
(SqlParameterSource... batch) 渡されたSqlParameterSources
を使用してバッチ挿入を実行するデリゲートメソッド。SimpleJdbcCall.execute
(SqlParameterSource parameterSource) SimpleJdbcCallOperations.execute
(SqlParameterSource args) ストアドプロシージャを実行し、パラメーター宣言のように名前をキーとする出力パラメーターのマップを返します。int
SimpleJdbcInsert.execute
(SqlParameterSource parameterSource) int
SimpleJdbcInsertOperations.execute
(SqlParameterSource parameterSource) 渡された値を使用して挿入を実行します。SimpleJdbcInsert.executeAndReturnKey
(SqlParameterSource parameterSource) SimpleJdbcInsertOperations.executeAndReturnKey
(SqlParameterSource parameterSource) 渡された値を使用して挿入を実行し、生成されたキーを返します。SimpleJdbcInsert.executeAndReturnKeyHolder
(SqlParameterSource parameterSource) SimpleJdbcInsertOperations.executeAndReturnKeyHolder
(SqlParameterSource parameterSource) 渡された値を使用して挿入を実行し、生成されたキーを返します。int[]
SimpleJdbcInsert.executeBatch
(SqlParameterSource... batch) int[]
SimpleJdbcInsertOperations.executeBatch
(SqlParameterSource... batch) 渡された値のバッチを使用してバッチ挿入を実行します。<T> T
SimpleJdbcCall.executeFunction
(ClassSE<T> returnType, SqlParameterSource args) <T> T
SimpleJdbcCallOperations.executeFunction
(ClassSE<T> returnType, SqlParameterSource args) ストアド関数を実行し、指定した戻り値の型のオブジェクトとして取得した結果を返します。<T> T
SimpleJdbcCall.executeObject
(ClassSE<T> returnType, SqlParameterSource args) <T> T
SimpleJdbcCallOperations.executeObject
(ClassSE<T> returnType, SqlParameterSource args) ストアドプロシージャを実行し、指定された戻り値型のオブジェクトとしてシングル出力パラメーターを返します。AbstractJdbcCall.matchInParameterValuesWithCallParameters
(SqlParameterSource parameterSource) 提供されたパラメーター値を、登録されているパラメーターおよびメタデータ処理を介して定義されたパラメーターと一致させます。AbstractJdbcInsert.matchInParameterValuesWithInsertColumns
(SqlParameterSource parameterSource) 提供されたパラメーター値を、登録されているパラメーターおよびメタデータ処理を介して定義されたパラメーターと一致させます。