1 package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
\r
3 import java.util.Collection;
\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
16 * The abstract condition-query of t_primitives.
\r
17 * @author DBFlute(AutoGenerator)
\r
19 public abstract class AbstractBsTPrimitivesCQ extends AbstractConditionQuery {
\r
21 // ===================================================================================
\r
24 protected final DBMetaProvider _dbmetaProvider = new DBMetaInstanceHandler();
\r
26 // ===================================================================================
\r
29 public AbstractBsTPrimitivesCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) {
\r
30 super(childQuery, sqlClause, aliasName, nestLevel);
\r
33 // ===================================================================================
\r
37 protected DBMetaProvider getDBMetaProvider() {
\r
38 return _dbmetaProvider;
\r
41 // ===================================================================================
\r
44 public String getTableDbName() {
\r
45 return "t_primitives";
\r
48 public String getTableSqlName() {
\r
49 return "t_primitives";
\r
52 // ===================================================================================
\r
57 * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. {UQ : VARCHAR(50)}
\r
58 * @param datatype The value of datatype as equal.
\r
60 public void setDatatype_Equal(String datatype) {
\r
61 regDatatype(CK_EQ, fRES(datatype));
\r
65 * NotEqual(!=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
66 * @param datatype The value of datatype as notEqual.
\r
68 public void setDatatype_NotEqual(String datatype) {
\r
69 regDatatype(CK_NE, fRES(datatype));
\r
73 * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
74 * @param datatype The value of datatype as greaterThan.
\r
76 public void setDatatype_GreaterThan(String datatype) {
\r
77 regDatatype(CK_GT, fRES(datatype));
\r
81 * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
82 * @param datatype The value of datatype as lessThan.
\r
84 public void setDatatype_LessThan(String datatype) {
\r
85 regDatatype(CK_LT, fRES(datatype));
\r
89 * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
90 * @param datatype The value of datatype as greaterEqual.
\r
92 public void setDatatype_GreaterEqual(String datatype) {
\r
93 regDatatype(CK_GE, fRES(datatype));
\r
97 * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
98 * @param datatype The value of datatype as lessEqual.
\r
100 public void setDatatype_LessEqual(String datatype) {
\r
101 regDatatype(CK_LE, fRES(datatype));
\r
105 * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
106 * @param datatype The value of datatype as prefixSearch.
\r
108 public void setDatatype_PrefixSearch(String datatype) {
\r
109 regDatatype(CK_PS, fRES(datatype));
\r
113 * InScope(in ('a', 'b')). And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered.
\r
114 * @param datatypeList The collection of datatype as inScope.
\r
116 public void setDatatype_InScope(Collection<String> datatypeList) {
\r
117 regDatatype(CK_INS, cTL(datatypeList));
\r
121 * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.
\r
122 * @param datatype The value of datatype as likeSearch.
\r
123 * @param likeSearchOption The option of like-search. (NotNull)
\r
125 public void setDatatype_LikeSearch(String datatype, LikeSearchOption likeSearchOption) {
\r
126 regLSQ(CK_LS, fRES(datatype), getCValueDatatype(), "Datatype", likeSearchOption);
\r
130 * NotLikeSearch(not like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.
\r
131 * @param datatype The value of datatype as notLikeSearch.
\r
132 * @param likeSearchOption The option of not-like-search. (NotNull)
\r
134 public void setDatatype_NotLikeSearch(String datatype, LikeSearchOption likeSearchOption) {
\r
135 regLSQ(CK_NLS, fRES(datatype), getCValueDatatype(), "Datatype", likeSearchOption);
\r
139 * IsNull(is null). And OnlyOnceRegistered.
\r
141 public void setDatatype_IsNull() { regDatatype(CK_ISN, DOBJ); }
\r
144 * IsNotNull(is not null). And OnlyOnceRegistered.
\r
146 public void setDatatype_IsNotNull() { regDatatype(CK_ISNN, DOBJ); }
\r
148 protected void regDatatype(ConditionKey k, Object v) { regQ(k, v, getCValueDatatype(), "Datatype"); }
\r
149 abstract protected ConditionValue getCValueDatatype();
\r
152 * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. {VARCHAR(50)}
\r
153 * @param description The value of description as equal.
\r
155 public void setDescription_Equal(String description) {
\r
156 regDescription(CK_EQ, fRES(description));
\r
160 * NotEqual(!=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
161 * @param description The value of description as notEqual.
\r
163 public void setDescription_NotEqual(String description) {
\r
164 regDescription(CK_NE, fRES(description));
\r
168 * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
169 * @param description The value of description as greaterThan.
\r
171 public void setDescription_GreaterThan(String description) {
\r
172 regDescription(CK_GT, fRES(description));
\r
176 * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
177 * @param description The value of description as lessThan.
\r
179 public void setDescription_LessThan(String description) {
\r
180 regDescription(CK_LT, fRES(description));
\r
184 * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
185 * @param description The value of description as greaterEqual.
\r
187 public void setDescription_GreaterEqual(String description) {
\r
188 regDescription(CK_GE, fRES(description));
\r
192 * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
193 * @param description The value of description as lessEqual.
\r
195 public void setDescription_LessEqual(String description) {
\r
196 regDescription(CK_LE, fRES(description));
\r
200 * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
201 * @param description The value of description as prefixSearch.
\r
203 public void setDescription_PrefixSearch(String description) {
\r
204 regDescription(CK_PS, fRES(description));
\r
208 * InScope(in ('a', 'b')). And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered.
\r
209 * @param descriptionList The collection of description as inScope.
\r
211 public void setDescription_InScope(Collection<String> descriptionList) {
\r
212 regDescription(CK_INS, cTL(descriptionList));
\r
216 * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.
\r
217 * @param description The value of description as likeSearch.
\r
218 * @param likeSearchOption The option of like-search. (NotNull)
\r
220 public void setDescription_LikeSearch(String description, LikeSearchOption likeSearchOption) {
\r
221 regLSQ(CK_LS, fRES(description), getCValueDescription(), "Description", likeSearchOption);
\r
225 * NotLikeSearch(not like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.
\r
226 * @param description The value of description as notLikeSearch.
\r
227 * @param likeSearchOption The option of not-like-search. (NotNull)
\r
229 public void setDescription_NotLikeSearch(String description, LikeSearchOption likeSearchOption) {
\r
230 regLSQ(CK_NLS, fRES(description), getCValueDescription(), "Description", likeSearchOption);
\r
234 * IsNull(is null). And OnlyOnceRegistered.
\r
236 public void setDescription_IsNull() { regDescription(CK_ISN, DOBJ); }
\r
239 * IsNotNull(is not null). And OnlyOnceRegistered.
\r
241 public void setDescription_IsNotNull() { regDescription(CK_ISNN, DOBJ); }
\r
243 protected void regDescription(ConditionKey k, Object v) { regQ(k, v, getCValueDescription(), "Description"); }
\r
244 abstract protected ConditionValue getCValueDescription();
\r
246 // ===================================================================================
\r
249 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
250 String xCB() { return TPrimitivesCB.class.getName(); }
\r
251 String xCQ() { return TPrimitivesCQ.class.getName(); }
\r
252 String xLSO() { return LikeSearchOption.class.getName(); }
\r