|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.util.BindVariableUtil
バインド変数用のユーティリティです。
メソッドの概要 | |
protected static void |
addDate(SStringBuilder buf,
Calendar calendar)
文字列バッファに yyyy-mm-dd のフォーマットで日付を設定します。 |
protected static void |
addTime(SStringBuilder buf,
Calendar calendar)
文字列バッファに hh:mm:ss のフォーマットで値を設定します。 |
protected static void |
addTimeDecimalPart(SStringBuilder buf,
int decimalPart)
文字列バッファに時間の小数点以下の値を設定します。 |
static String |
getBindVariableText(Object bindVariable)
バインド変数を文字列として返します。 |
static String |
getBindVariableText(Object bindVariable,
ValueType valueType)
バインド変数を文字列として返します。 |
static String |
getCompleteSql(String sql,
Object[] args)
バインド変数をSQLの中にリテラルで埋め込んだ完全なSQLを返します。 |
static String |
getCompleteSql(String sql,
Object[] args,
ValueType[] valueTypes)
バインド変数をSQLの中にリテラルで埋め込んだ完全なSQLを返します。 |
static String |
nullText()
null の文字列表現を返します。 |
protected static String |
quote(String text)
文字列をシングルクォートで囲みます。 |
static String |
toText(Boolean value)
Boolean の文字列表現を返します。 |
static String |
toText(byte[] value)
byte[] の文字列表現を返します。 |
static String |
toText(Date value)
Date の文字列表現を返します。 |
static String |
toText(Number value)
Number の文字列表現を返します。 |
static String |
toText(Object value)
Object の文字列表現を返します。 |
static String |
toText(String value)
String の文字列表現を返します。 |
static String |
toText(Time value)
Time の文字列表現を返します。 |
static String |
toText(Timestamp value)
Timestamp の文字列表現を返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
public static String getCompleteSql(String sql, Object[] args)
sql
- SQLargs
- 引数
public static String getCompleteSql(String sql, Object[] args, ValueType[] valueTypes)
sql
- SQLargs
- 引数valueTypes
- 値タイプの配列
public static String getBindVariableText(Object bindVariable)
bindVariable
- バインド変数
public static String getBindVariableText(Object bindVariable, ValueType valueType)
bindVariable
- バインド変数valueType
- 値タイプ
public static String nullText()
null
の文字列表現を返します。
public static String toText(Number value)
Number
の文字列表現を返します。
value
- 値
public static String toText(Boolean value)
Boolean
の文字列表現を返します。
value
- 値
public static String toText(String value)
String
の文字列表現を返します。
value
- 値
public static String toText(Date value)
Date
の文字列表現を返します。
value
- 値
public static String toText(Time value)
Time
の文字列表現を返します。
value
- 値
public static String toText(Timestamp value)
Timestamp
の文字列表現を返します。
value
- 値
public static String toText(byte[] value)
byte[]
の文字列表現を返します。
value
- 値
public static String toText(Object value)
Object
の文字列表現を返します。
value
- 値
protected static void addDate(SStringBuilder buf, Calendar calendar)
yyyy-mm-dd
のフォーマットで日付を設定します。
buf
- 文字列バッファcalendar
- カレンダprotected static void addTime(SStringBuilder buf, Calendar calendar)
hh:mm:ss
のフォーマットで値を設定します。
buf
- 文字列バッファcalendar
- カレンダprotected static void addTimeDecimalPart(SStringBuilder buf, int decimalPart)
buf
- 文字列バッファdecimalPart
- 小数点以下の値protected static String quote(String text)
text
- 文字列
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |