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_rtf.
\r
17 * @author DBFlute(AutoGenerator)
\r
19 public abstract class AbstractBsTRtfCQ extends AbstractConditionQuery {
\r
21 // ===================================================================================
\r
24 protected final DBMetaProvider _dbmetaProvider = new DBMetaInstanceHandler();
\r
26 // ===================================================================================
\r
29 public AbstractBsTRtfCQ(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
48 public String getTableSqlName() {
\r
52 // ===================================================================================
\r
57 * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. {VARCHAR(50)}
\r
58 * @param type The value of type as equal.
\r
60 public void setType_Equal(String type) {
\r
61 regType(CK_EQ, fRES(type));
\r
65 * NotEqual(!=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
66 * @param type The value of type as notEqual.
\r
68 public void setType_NotEqual(String type) {
\r
69 regType(CK_NE, fRES(type));
\r
73 * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
74 * @param type The value of type as greaterThan.
\r
76 public void setType_GreaterThan(String type) {
\r
77 regType(CK_GT, fRES(type));
\r
81 * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
82 * @param type The value of type as lessThan.
\r
84 public void setType_LessThan(String type) {
\r
85 regType(CK_LT, fRES(type));
\r
89 * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
90 * @param type The value of type as greaterEqual.
\r
92 public void setType_GreaterEqual(String type) {
\r
93 regType(CK_GE, fRES(type));
\r
97 * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
98 * @param type The value of type as lessEqual.
\r
100 public void setType_LessEqual(String type) {
\r
101 regType(CK_LE, fRES(type));
\r
105 * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
106 * @param type The value of type as prefixSearch.
\r
108 public void setType_PrefixSearch(String type) {
\r
109 regType(CK_PS, fRES(type));
\r
113 * InScope(in ('a', 'b')). And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered.
\r
114 * @param typeList The collection of type as inScope.
\r
116 public void setType_InScope(Collection<String> typeList) {
\r
117 regType(CK_INS, cTL(typeList));
\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
125 public void setType_LikeSearch(String type, LikeSearchOption likeSearchOption) {
\r
126 regLSQ(CK_LS, fRES(type), getCValueType(), "Type", likeSearchOption);
\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
134 public void setType_NotLikeSearch(String type, LikeSearchOption likeSearchOption) {
\r
135 regLSQ(CK_NLS, fRES(type), getCValueType(), "Type", likeSearchOption);
\r
139 * IsNull(is null). And OnlyOnceRegistered.
\r
141 public void setType_IsNull() { regType(CK_ISN, DOBJ); }
\r
144 * IsNotNull(is not null). And OnlyOnceRegistered.
\r
146 public void setType_IsNotNull() { regType(CK_ISNN, DOBJ); }
\r
148 protected void regType(ConditionKey k, Object v) { regQ(k, v, getCValueType(), "Type"); }
\r
149 abstract protected ConditionValue getCValueType();
\r
152 * Equal(=). And NullOrEmptyIgnored, OnlyOnceRegistered. {LONGCHAR(2147483647)}
\r
153 * @param template The value of template as equal.
\r
155 public void setTemplate_Equal(String template) {
\r
156 regTemplate(CK_EQ, fRES(template));
\r
160 * NotEqual(!=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
161 * @param template The value of template as notEqual.
\r
163 public void setTemplate_NotEqual(String template) {
\r
164 regTemplate(CK_NE, fRES(template));
\r
168 * GreaterThan(>). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
169 * @param template The value of template as greaterThan.
\r
171 public void setTemplate_GreaterThan(String template) {
\r
172 regTemplate(CK_GT, fRES(template));
\r
176 * LessThan(<). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
177 * @param template The value of template as lessThan.
\r
179 public void setTemplate_LessThan(String template) {
\r
180 regTemplate(CK_LT, fRES(template));
\r
184 * GreaterEqual(>=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
185 * @param template The value of template as greaterEqual.
\r
187 public void setTemplate_GreaterEqual(String template) {
\r
188 regTemplate(CK_GE, fRES(template));
\r
192 * LessEqual(<=). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
193 * @param template The value of template as lessEqual.
\r
195 public void setTemplate_LessEqual(String template) {
\r
196 regTemplate(CK_LE, fRES(template));
\r
200 * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnlyOnceRegistered.
\r
201 * @param template The value of template as prefixSearch.
\r
203 public void setTemplate_PrefixSearch(String template) {
\r
204 regTemplate(CK_PS, fRES(template));
\r
208 * InScope(in ('a', 'b')). And NullOrEmptyIgnored, NullOrEmptyElementIgnored, SeveralRegistered.
\r
209 * @param templateList The collection of template as inScope.
\r
211 public void setTemplate_InScope(Collection<String> templateList) {
\r
212 regTemplate(CK_INS, cTL(templateList));
\r
216 * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.
\r
217 * @param template The value of template as likeSearch.
\r
218 * @param likeSearchOption The option of like-search. (NotNull)
\r
220 public void setTemplate_LikeSearch(String template, LikeSearchOption likeSearchOption) {
\r
221 regLSQ(CK_LS, fRES(template), getCValueTemplate(), "Template", likeSearchOption);
\r
225 * NotLikeSearch(not like 'xxx%' escape ...). And NullOrEmptyIgnored, SeveralRegistered.
\r
226 * @param template The value of template as notLikeSearch.
\r
227 * @param likeSearchOption The option of not-like-search. (NotNull)
\r
229 public void setTemplate_NotLikeSearch(String template, LikeSearchOption likeSearchOption) {
\r
230 regLSQ(CK_NLS, fRES(template), getCValueTemplate(), "Template", likeSearchOption);
\r
234 * IsNull(is null). And OnlyOnceRegistered.
\r
236 public void setTemplate_IsNull() { regTemplate(CK_ISN, DOBJ); }
\r
239 * IsNotNull(is not null). And OnlyOnceRegistered.
\r
241 public void setTemplate_IsNotNull() { regTemplate(CK_ISNN, DOBJ); }
\r
243 protected void regTemplate(ConditionKey k, Object v) { regQ(k, v, getCValueTemplate(), "Template"); }
\r
244 abstract protected ConditionValue getCValueTemplate();
\r
246 // ===================================================================================
\r
249 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
250 String xCB() { return TRtfCB.class.getName(); }
\r
251 String xCQ() { return TRtfCQ.class.getName(); }
\r
252 String xLSO() { return LikeSearchOption.class.getName(); }
\r