OSDN Git Service

DBFlute-0.9.3に更新
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / cbean / cq / bs / AbstractBsTImplementCQ.java
1 package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;\r
2 \r
3 import java.util.Collection;\r
4 \r
5 import org.seasar.dbflute.cbean.*;\r
6 import org.seasar.dbflute.cbean.ckey.*;\r
7 import org.seasar.dbflute.cbean.coption.*;\r
8 import org.seasar.dbflute.cbean.cvalue.ConditionValue;\r
9 import org.seasar.dbflute.cbean.sqlclause.SqlClause;\r
10 import org.seasar.dbflute.dbmeta.DBMetaProvider;\r
11 import jp.sourceforge.ea2ddl.dao.allcommon.*;\r
12 import jp.sourceforge.ea2ddl.dao.cbean.*;\r
13 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;\r
14 \r
15 /**\r
16  * The abstract condition-query of t_implement.\r
17  * @author DBFlute(AutoGenerator)\r
18  */\r
19 public abstract class AbstractBsTImplementCQ extends AbstractConditionQuery {\r
20 \r
21     // ===================================================================================\r
22     //                                                                           Attribute\r
23     //                                                                           =========\r
24     protected final DBMetaProvider _dbmetaProvider = new DBMetaInstanceHandler();\r
25 \r
26     // ===================================================================================\r
27     //                                                                         Constructor\r
28     //                                                                         ===========\r
29     public AbstractBsTImplementCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) {\r
30         super(childQuery, sqlClause, aliasName, nestLevel);\r
31     }\r
32 \r
33     // ===================================================================================\r
34     //                                                                     DBMeta Provider\r
35     //                                                                     ===============\r
36     @Override\r
37     protected DBMetaProvider getDBMetaProvider() {\r
38         return _dbmetaProvider;\r
39     }\r
40 \r
41     // ===================================================================================\r
42     //                                                                          Table Name\r
43     //                                                                          ==========\r
44     public String getTableDbName() {\r
45         return "t_implement";\r
46     }\r
47     \r
48     public String getTableSqlName() {\r
49         return "t_implement";\r
50     }\r
51 \r
52     // ===================================================================================\r
53     //                                                                               Query\r
54     //                                                                               =====\r
55 \r
56     /**\r
57      * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. {VARCHAR(50)}\r
58      * @param type The value of type as equal.\r
59      */\r
60     public void setType_Equal(String type) {\r
61         regType(CK_EQ, fRES(type));\r
62     }\r
63 \r
64     /**\r
65      * NotEqual(!=). And NullOrEmptyIgnored, OnlyOnceRegistered.\r
66      * @param type The value of type as notEqual.\r
67      */\r
68     public void setType_NotEqual(String type) {\r
69         regType(CK_NE, fRES(type));\r
70     }\r
71 \r
72     /**\r
73      * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered.\r
74      * @param type The value of type as greaterThan.\r
75      */\r
76     public void setType_GreaterThan(String type) {\r
77         regType(CK_GT, fRES(type));\r
78     }\r
79 \r
80     /**\r
81      * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered.\r
82      * @param type The value of type as lessThan.\r
83      */\r
84     public void setType_LessThan(String type) {\r
85         regType(CK_LT, fRES(type));\r
86     }\r
87 \r
88     /**\r
89      * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered.\r
90      * @param type The value of type as greaterEqual.\r
91      */\r
92     public void setType_GreaterEqual(String type) {\r
93         regType(CK_GE, fRES(type));\r
94     }\r
95 \r
96     /**\r
97      * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered.\r
98      * @param type The value of type as lessEqual.\r
99      */\r
100     public void setType_LessEqual(String type) {\r
101         regType(CK_LE, fRES(type));\r
102     }\r
103 \r
104     /**\r
105      * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnlyOnceRegistered.\r
106      * @param type The value of type as prefixSearch.\r
107      */\r
108     public void setType_PrefixSearch(String type) {\r
109         regType(CK_PS, fRES(type));\r
110     }\r
111 \r
112     /**\r
113      * InScope(in ('a', 'b')). And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered.\r
114      * @param typeList The collection of type as inScope.\r
115      */\r
116     public void setType_InScope(Collection<String> typeList) {\r
117         regType(CK_INS, cTL(typeList));\r
118     }\r
119 \r
120     /**\r
121      * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.\r
122      * @param type The value of type as likeSearch.\r
123      * @param likeSearchOption The option of like-search. (NotNull)\r
124      */\r
125     public void setType_LikeSearch(String type, LikeSearchOption likeSearchOption) {\r
126         regLSQ(CK_LS, fRES(type), getCValueType(), "Type", likeSearchOption);\r
127     }\r
128 \r
129     /**\r
130      * NotLikeSearch(not like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.\r
131      * @param type The value of type as notLikeSearch.\r
132      * @param likeSearchOption The option of not-like-search. (NotNull)\r
133      */\r
134     public void setType_NotLikeSearch(String type, LikeSearchOption likeSearchOption) {\r
135         regLSQ(CK_NLS, fRES(type), getCValueType(), "Type", likeSearchOption);\r
136     }\r
137 \r
138     /**\r
139      * IsNull(is null). And OnlyOnceRegistered.\r
140      */\r
141     public void setType_IsNull() { regType(CK_ISN, DOBJ); }\r
142 \r
143     /**\r
144      * IsNotNull(is not null). And OnlyOnceRegistered.\r
145      */\r
146     public void setType_IsNotNull() { regType(CK_ISNN, DOBJ); }\r
147 \r
148     protected void regType(ConditionKey k, Object v) { regQ(k, v, getCValueType(), "Type"); }\r
149     abstract protected ConditionValue getCValueType();\r
150 \r
151     // ===================================================================================\r
152     //                                                                       Very Internal\r
153     //                                                                       =============\r
154     // Very Internal (for Suppressing Warn about 'Not Use Import')\r
155     String xCB() { return TImplementCB.class.getName(); }\r
156     String xCQ() { return TImplementCQ.class.getName(); }\r
157     String xLSO() { return LikeSearchOption.class.getName(); }\r
158 }\r