|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.jdbc.type.AbstractJdbcType<T>
T - JDBCで扱う型public abstract class AbstractJdbcType<T>
JdbcType の骨格実装です。
| フィールドの概要 | |
|---|---|
protected int |
type
SQL型 |
| コンストラクタの概要 | |
|---|---|
protected |
AbstractJdbcType(int type)
SQL型を指定してインスタンスを構築します。 |
| メソッドの概要 | |
|---|---|
String |
convertToLogFormat(T value)
値をSQLのログ用文字列に変換します。 |
protected abstract String |
doConvertToLogFormat(T value)
サブクラスで値をログ用フォーマットの文字列に変換します。 |
protected abstract T |
doGetValue(CallableStatement callableStatement,
int index)
サブクラスで CallableStatement から値を取得します。 |
protected abstract T |
doGetValue(ResultSet resultSet,
int index)
サブクラスで ResultSet から値を取得します。 |
protected abstract void |
doSetValue(PreparedStatement preparedStatement,
int index,
T value)
サブクラスで PreparedStatement に値を設定します。 |
T |
getValue(CallableStatement callableStatement,
int index)
CallableStatement から値を取得します。 |
T |
getValue(ResultSet resultSet,
int index)
ResultSet から値を取得します。 |
void |
registerOutParameter(CallableStatement callableStatement,
int index)
CallableStatement にOUTパラメータを登録します。 |
void |
setValue(PreparedStatement preparedStatement,
int index,
T value)
PreparedStatement に値を設定します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final int type
Types| コンストラクタの詳細 |
|---|
protected AbstractJdbcType(int type)
type - SQL型| メソッドの詳細 |
|---|
public T getValue(ResultSet resultSet,
int index)
throws SQLException
JdbcType の記述:ResultSet から値を取得します。
JdbcType<T> 内の getValueSQLException
public void setValue(PreparedStatement preparedStatement,
int index,
T value)
throws SQLException
JdbcType の記述:PreparedStatement に値を設定します。
JdbcType<T> 内の setValueSQLException
public void registerOutParameter(CallableStatement callableStatement,
int index)
throws SQLException
JdbcType の記述:CallableStatement にOUTパラメータを登録します。
JdbcType<T> 内の registerOutParameterSQLException
public T getValue(CallableStatement callableStatement,
int index)
throws SQLException
JdbcType の記述:CallableStatement から値を取得します。
JdbcType<T> 内の getValueSQLExceptionpublic String convertToLogFormat(T value)
SqlLogFormatter の記述:
SqlLogFormatter<T> 内の convertToLogFormatvalue - 値
protected abstract T doGetValue(ResultSet resultSet,
int index)
throws SQLException
ResultSet から値を取得します。
resultSet - 結果セットindex - インデックス
SQLException - SQL例外が発生した場合
protected abstract void doSetValue(PreparedStatement preparedStatement,
int index,
T value)
throws SQLException
PreparedStatement に値を設定します。
preparedStatement - 準備された文index - インデックスvalue - 値
SQLException - SQL例外が発生した場合
protected abstract T doGetValue(CallableStatement callableStatement,
int index)
throws SQLException
CallableStatement から値を取得します。
callableStatement - ストアドファンクションまたはプロシージャーを実行可能な文index - インデックス
SQLException - SQL例外が発生した場合protected abstract String doConvertToLogFormat(T value)
value - 値
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||