|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectwoolpack.crud.CrudConstants
public final class CrudConstants
定数と静的メソッドの集まり。
フィールドの概要 | |
---|---|
static ExpressionFactory2 |
DELETE
削除用 Expression を生成するExpressionFactory2 。 |
static ExpressionFactory2 |
INSERT
登録用 Expression を生成するExpressionFactory2 。 |
static ExpressionFactory2 |
SELECT
検索用 Expression を生成するExpressionFactory2 。 |
static ExpressionFactory2 |
UPDATE
更新用 Expression を生成するExpressionFactory2 。 |
メソッドの概要 | |
---|---|
static void |
buildSelectQueryBase(TableInfo tableInfo,
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> map,
MarkableStringBuilder sb,
java.util.List<InputMapPointer> inputMapPointerList,
int colIndex,
int whereIndex)
SELECT クエリのベース部分を作成し、sb と inputMapPointerList に反映する。 |
static void |
buildSelectQueryOrder(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> map,
MarkableStringBuilder sb,
java.util.regex.Pattern orderPattern,
int orderIndex)
SELECT クエリの ORDER BY 部分を作成し、sb に反映する。 |
static java.util.Map<java.lang.String,TableInfo> |
convertJavaNameTableInfoMap(java.util.List<TableInfo> list)
テーブル情報の一覧をテーブル名の java 表現をキーとしてテーブル情報を値とした Map に変換する。 |
static CrudFactory |
getCrudFactory(javax.sql.DataSource dataSource,
java.util.regex.Pattern orderPattern,
int maxRecode,
java.lang.String startPositionKey,
java.lang.String recodeCountKey)
デフォルトの CrudFactory を生成して返す。 |
static ExpressionFactory2 |
getSelectExpressionFactory2(java.util.regex.Pattern orderPattern)
検索用 Expression を生成するExpressionFactory2 を生成して返す。 |
static java.util.List<TableInfo> |
getTableInfoList(javax.sql.DataSource dataSource)
テーブル情報の一覧を取得して返す。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final ExpressionFactory2 INSERT
Expression
を生成するExpressionFactory2
。
public static final ExpressionFactory2 SELECT
Expression
を生成するExpressionFactory2
。
public static final ExpressionFactory2 UPDATE
Expression
を生成するExpressionFactory2
。
public static final ExpressionFactory2 DELETE
Expression
を生成するExpressionFactory2
。
メソッドの詳細 |
---|
public static void buildSelectQueryBase(TableInfo tableInfo, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> map, MarkableStringBuilder sb, java.util.List<InputMapPointer> inputMapPointerList, int colIndex, int whereIndex)
tableInfo
- テーブル情報。本メソッドはこの引数の状態を変化させない。map
- 条件値のMap
。本メソッドはこの引数の状態を変化させない。sb
- 編集中のクエリ文字列。本メソッドはこの引数の状態を変化させる。inputMapPointerList
- 値を設定することが可能な、解析されたクエリの入力マップのポインタの一覧。本メソッドはこの引数の状態を変化させる。colIndex
- sb 上における SELECT 句を挿入する位置。whereIndex
- sb 上における WHERE 句を挿入する位置。public static void buildSelectQueryOrder(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> map, MarkableStringBuilder sb, java.util.regex.Pattern orderPattern, int orderIndex)
map
- 条件値のMap
。sb
- 編集中のクエリ文字列。orderPattern
- ORDER BY の適用対象となる map のキーのパターン。orderIndex
- sb 上における ORDER BY 句を挿入する位置。public static ExpressionFactory2 getSelectExpressionFactory2(java.util.regex.Pattern orderPattern)
Expression
を生成するExpressionFactory2
を生成して返す。
orderPattern
- ORDER BY の適用対象となる map のキーのパターン。
Expression
を生成するExpressionFactory2
。public static java.util.List<TableInfo> getTableInfoList(javax.sql.DataSource dataSource)
dataSource
- データソース。
public static java.util.Map<java.lang.String,TableInfo> convertJavaNameTableInfoMap(java.util.List<TableInfo> list)
Map
に変換する。
list
- テーブル情報の一覧。
Map
。public static CrudFactory getCrudFactory(javax.sql.DataSource dataSource, java.util.regex.Pattern orderPattern, int maxRecode, java.lang.String startPositionKey, java.lang.String recodeCountKey)
CrudFactory
を生成して返す。
dataSource
- データソース。orderPattern
- ORDER BY の適用対象となる map のキーのパターン。maxRecode
- 取得する最大レコード数。startPositionKey
- ResultSet
から取得する開始位置のキー。recodeCountKey
- ResultSet
から取得する件数のキー。
CrudFactory
。
java.lang.NullPointerException
- 引数が null の場合。
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |