|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.argius.stu.sql.LimitEditor
有限件数SQL編集クラスの基底クラスです。
DBごとに異なる有限件数SQLの実装を吸収するために
SQLクラスの内部で使用されます。
直接使用することもできます。
(使用例) // Connection conn, Statement stmt LimitEditor editor = LimitEditor.getLimitEditor(conn); String edited = editor.edit("SELECT * FROM ANY_TABLE", 5); ResultSet rs = stmt.executeQuery(edited);
SQL
,
SelectSQL
フィールドの概要 | |
protected static String |
FROM
FROM キーワードです。 |
protected static String |
SELECT
SELECT キーワードです。 |
コンストラクタの概要 | |
LimitEditor()
デフォルトの編集オブジェクトを生成します。 |
メソッドの概要 | |
String |
edit(String sql,
int limit)
SQLに有限件数キーワードを設定します。 |
static LimitEditor |
getLimitEditor(Connection conn)
有限件数SQL編集オブジェクトを取得します。 |
static LimitEditor |
getLimitEditor(String dbname)
有限件数SQL編集オブジェクトを取得します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final String SELECT
SELECT
キーワードです。
protected static final String FROM
FROM
キーワードです。
コンストラクタの詳細 |
public LimitEditor()
メソッドの詳細 |
public String edit(String sql, int limit)
sql
- SQL文limit
- 上限値
public static LimitEditor getLimitEditor(Connection conn)
LimitEditor
自体のインスタンスが返されます。
conn
- DBコネクション
public static LimitEditor getLimitEditor(String dbname)
LimitEditor
自体のインスタンスが返されます。
dbname
- DB製品名
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |