|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.types.AbstractValueType
org.seasar.extension.jdbc.types.BytesType
byte[]
用の ValueType
です。
入れ子クラスの概要 | |
static class |
BytesType.BlobTrait
バイト配列を getBlob()/setBinaryStream() で扱うトレイトです。 |
static class |
BytesType.BytesTrait
バイト配列を getBytes()/setBytes() で扱うトレイトです。 |
static class |
BytesType.StreamTrait
バイト配列を getBinaryStream()/setBinaryStream() で扱うトレイトです。 |
static interface |
BytesType.Trait
|
フィールドの概要 | |
static BytesType.Trait |
BLOB_TRAIT
バイト配列を getBlob()/setBytes() で扱うトレイト |
static BytesType.Trait |
BYTES_TRAIT
バイト配列を getBytes()/setBytes() で扱うトレイト |
static BytesType.Trait |
STREAM_TRAIT
バイト配列を getBinaryStream()/setBinaryStream() で扱うトレイト |
protected BytesType.Trait |
trait
バイト配列を操作するためのトレイトです。 |
コンストラクタの概要 | |
BytesType(BytesType.Trait trait)
インスタンスを構築します。 |
メソッドの概要 | |
void |
bindValue(CallableStatement cs,
String parameterName,
Object value)
変数の値をバインドします。 |
void |
bindValue(PreparedStatement ps,
int index,
Object value)
変数の値をバインドします。 |
Object |
getValue(CallableStatement cs,
int index)
パラメータの値を返します。 |
Object |
getValue(CallableStatement cs,
String parameterName)
パラメータの値を返します。 |
Object |
getValue(ResultSet resultSet,
int index)
カラムの値を返します。 |
Object |
getValue(ResultSet resultSet,
String columnName)
カラムの値を返します。 |
static byte[] |
toBytes(Blob blob)
Blob からバイト配列を取得して返します。 |
static byte[] |
toBytes(InputStream is)
InputStream からバイト配列を取得して返します。 |
String |
toText(Object value)
変数の値を文字列表現に変換します。 |
クラス org.seasar.extension.jdbc.types.AbstractValueType から継承したメソッド |
getSqlType, registerOutParameter, registerOutParameter, setNull, setNull |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final BytesType.Trait BYTES_TRAIT
getBytes()/setBytes()
で扱うトレイト
public static final BytesType.Trait STREAM_TRAIT
getBinaryStream()/setBinaryStream()
で扱うトレイト
public static final BytesType.Trait BLOB_TRAIT
getBlob()/setBytes()
で扱うトレイト
protected BytesType.Trait trait
コンストラクタの詳細 |
public BytesType(BytesType.Trait trait)
trait
- トレイトメソッドの詳細 |
public void bindValue(PreparedStatement ps, int index, Object value) throws SQLException
ValueType
の記述:
ps
- 準備されたSQL文index
- 位置value
- 値
SQLException
- SQL例外が発生した場合public void bindValue(CallableStatement cs, String parameterName, Object value) throws SQLException
ValueType
の記述:
cs
- ストアドプロシージャを表す文parameterName
- パラメータ名value
- 値
SQLException
- SQL例外が発生した場合public Object getValue(ResultSet resultSet, int index) throws SQLException
ValueType
の記述:
resultSet
- 結果セットindex
- 位置
SQLException
- SQL例外が発生した場合public Object getValue(ResultSet resultSet, String columnName) throws SQLException
ValueType
の記述:
resultSet
- 結果セットcolumnName
- カラム名
SQLException
- SQL例外が発生した場合public Object getValue(CallableStatement cs, int index) throws SQLException
ValueType
の記述:
cs
- ストアドプロシージャを表す文index
- 位置
SQLException
- SQL例外が発生した場合public Object getValue(CallableStatement cs, String parameterName) throws SQLException
ValueType
の記述:
cs
- ストアドプロシージャを表す文parameterName
- パラメータ名
SQLException
- SQL例外が発生した場合public String toText(Object value)
ValueType
の記述:
value
- 値
public static byte[] toBytes(InputStream is) throws SQLException
InputStream
からバイト配列を取得して返します。
is
- 入力ストリーム
SQLException
- SQL例外が発生した場合public static byte[] toBytes(Blob blob) throws SQLException
Blob
からバイト配列を取得して返します。
blob
- BLOB
SQLException
- SQL例外が発生した場合
ArrayIndexOutOfBoundsException
- BLOBのデータ長がint
型の最大長を越えている場合
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |