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