クラス SqlCharacterValue

java.lang.ObjectSE
org.springframework.jdbc.core.support.SqlCharacterValue
実装されたすべてのインターフェース:
SqlTypeValue

public class SqlCharacterValue extends ObjectSE implements SqlTypeValue
SQL ステートメントの文字ベースのパラメーター値を表すオブジェクト。CLOB/NCLOB または LONGVARCHAR 列の文字ストリーム。

JdbcTemplate および JdbcClient で使用するように設計されており、ターゲットコンテンツ値をラップするパラメーター値として渡されます。SqlParameterValue と組み合わせて SQL 型を指定できます。new SqlParameterValue(Types.CLOB, new SqlCharacterValue(myContent))。ほとんどのデータベースドライバーでは、型 ヒントは実際には必要ありません。

導入:
6.1.4
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • SqlCharacterValue

      public SqlCharacterValue(CharSequenceSE string)
      指定されたコンテンツ文字列で新しい CLOB 値を作成します。
      パラメーター:
      string - 文字列またはその他の CharSequence としてのコンテンツ
    • SqlCharacterValue

      public SqlCharacterValue(char[] characters)
      指定されたコンテンツに対して新しい SqlCharacterValue を作成します。
      パラメーター:
      characters - 文字配列としての内容
    • SqlCharacterValue

      public SqlCharacterValue(ReaderSE reader, long length)
      指定されたコンテンツに対して新しい SqlCharacterValue を作成します。
      パラメーター:
      reader - コンテンツリーダー
      length - コンテンツの長さ
    • SqlCharacterValue

      public SqlCharacterValue(InputStreamSE asciiStream, long length)
      指定されたコンテンツに対して新しい SqlCharacterValue を作成します。
      パラメーター:
      asciiStream - ASCII ストリームとしてのコンテンツ
      length - コンテンツの長さ
  • メソッドの詳細