|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.hishidama.sql.SqlUtil
public class SqlUtil
SQL生成補助クラス.
コンストラクタの概要 | |
---|---|
SqlUtil()
|
メソッドの概要 | |
---|---|
static void |
append(StringBuffer cb,
StringBuffer vb,
String col,
int val,
boolean quote)
insert用項目値付加. |
static void |
append(StringBuffer cb,
StringBuffer vb,
String col,
String val,
boolean quote)
insert用項目値付加. |
static void |
append(StringBuffer sb,
String col,
int val,
boolean quote)
update用項目値追加. |
static void |
append(StringBuffer sb,
String col,
String val,
boolean quote)
update用項目値追加. |
static boolean |
endsTrimWith(StringBuffer sb,
String str)
|
static int |
execute(Connection conn,
String sql)
更新SQL実行. |
static boolean |
isSpace(char c)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public SqlUtil()
メソッドの詳細 |
---|
public static void append(StringBuffer cb, StringBuffer vb, String col, int val, boolean quote)
cb
- 項目用StringBuffervb
- 値用StringBuffercol
- カラム名val
- 値quote
- true:値をシングルクォートでくくるpublic static void append(StringBuffer cb, StringBuffer vb, String col, String val, boolean quote)
cb
- 項目用StringBuffervb
- 値用StringBuffercol
- カラム名val
- 値quote
- true:値をシングルクォートでくくるpublic static void append(StringBuffer sb, String col, int val, boolean quote)
sb
- StringBuffercol
- カラム名val
- 値quote
- true:値をシングルクォートでくくるpublic static void append(StringBuffer sb, String col, String val, boolean quote)
sb
- StringBuffercol
- カラム名val
- 値quote
- true:値をシングルクォートでくくるpublic static boolean endsTrimWith(StringBuffer sb, String str)
public static boolean isSpace(char c)
public static int execute(Connection conn, String sql)
conn
- コネクションsql
- SQL
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |