OSDN Git Service

DBFlute-0.9.3に更新
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / cbean / cq / ciq / TDatatypesCIQ.java
1 package jp.sourceforge.ea2ddl.dao.cbean.cq.ciq;\r
2 \r
3 import org.seasar.dbflute.cbean.*;\r
4 import org.seasar.dbflute.cbean.ckey.*;\r
5 import org.seasar.dbflute.cbean.coption.ConditionOption;\r
6 import org.seasar.dbflute.cbean.cvalue.ConditionValue;\r
7 import org.seasar.dbflute.cbean.sqlclause.SqlClause;\r
8 import jp.sourceforge.ea2ddl.dao.cbean.*;\r
9 import jp.sourceforge.ea2ddl.dao.cbean.cq.bs.*;\r
10 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;\r
11 \r
12 /**\r
13  * The condition-inline-query of t_datatypes.\r
14  * @author DBFlute(AutoGenerator)\r
15  */\r
16 public class TDatatypesCIQ extends AbstractBsTDatatypesCQ {\r
17 \r
18     // ===================================================================================\r
19     //                                                                           Attribute\r
20     //                                                                           =========\r
21     protected BsTDatatypesCQ _myCQ;\r
22 \r
23     // ===================================================================================\r
24     //                                                                         Constructor\r
25     //                                                                         ===========\r
26     public TDatatypesCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsTDatatypesCQ myCQ) {\r
27         super(childQuery, sqlClause, aliasName, nestLevel);\r
28         _myCQ = myCQ;\r
29         _foreignPropertyName = _myCQ.getForeignPropertyName();// Accept foreign property name.\r
30         _relationPath = _myCQ.getRelationPath();// Accept relation path.\r
31     }\r
32 \r
33     // ===================================================================================\r
34     //                                                             Override about Register\r
35     //                                                             =======================\r
36     @Override\r
37     protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {\r
38         throw new UnsupportedOperationException("InlineQuery must not need UNION method: " + baseQueryAsSuper + " : " + unionQueryAsSuper);\r
39     }\r
40 \r
41     @Override\r
42     protected void setupConditionValueAndRegisterWhereClause(ConditionKey k, Object v, ConditionValue cv, String col) {\r
43         regIQ(k, v, cv, col);\r
44     }\r
45 \r
46     @Override\r
47     protected void setupConditionValueAndRegisterWhereClause(ConditionKey k, Object v, ConditionValue cv, String col, ConditionOption op) {\r
48         regIQ(k, v, cv, col, op);\r
49     }\r
50 \r
51     @Override\r
52     protected void registerWhereClause(String whereClause) {\r
53         registerInlineWhereClause(whereClause);\r
54     }\r
55 \r
56     @Override\r
57     protected String getInScopeSubQueryRealColumnName(String columnName) {\r
58         if (_onClauseInline) {\r
59             throw new UnsupportedOperationException("InScopeSubQuery of on-clause is unsupported");\r
60         }\r
61         return _onClauseInline ? getRealAliasName() + "." + columnName : columnName;\r
62     }\r
63 \r
64     @Override\r
65     protected void registerExistsSubQuery(ConditionQuery subQuery\r
66             , String columnName, String relatedColumnName, String propertyName) {\r
67         throw new UnsupportedOperationException("Sorry! ExistsSubQuery at inline view is unsupported. So please use InScopeSubQyery.");\r
68     }\r
69 \r
70     // ===================================================================================\r
71     //                                                                Override about Query\r
72     //                                                                ====================\r
73     protected ConditionValue getCValueType() {\r
74         return _myCQ.getType();\r
75     }\r
76     protected ConditionValue getCValueProductname() {\r
77         return _myCQ.getProductname();\r
78     }\r
79     protected ConditionValue getCValueDatatype() {\r
80         return _myCQ.getDatatype();\r
81     }\r
82     protected ConditionValue getCValueSize() {\r
83         return _myCQ.getSize();\r
84     }\r
85     protected ConditionValue getCValueMaxlen() {\r
86         return _myCQ.getMaxlen();\r
87     }\r
88     protected ConditionValue getCValueMaxprec() {\r
89         return _myCQ.getMaxprec();\r
90     }\r
91     protected ConditionValue getCValueMaxscale() {\r
92         return _myCQ.getMaxscale();\r
93     }\r
94     protected ConditionValue getCValueDefaultlen() {\r
95         return _myCQ.getDefaultlen();\r
96     }\r
97     protected ConditionValue getCValueDefaultprec() {\r
98         return _myCQ.getDefaultprec();\r
99     }\r
100     protected ConditionValue getCValueDefaultscale() {\r
101         return _myCQ.getDefaultscale();\r
102     }\r
103     protected ConditionValue getCValueUser() {\r
104         return _myCQ.getUser();\r
105     }\r
106     protected ConditionValue getCValuePdata1() {\r
107         return _myCQ.getPdata1();\r
108     }\r
109     protected ConditionValue getCValuePdata2() {\r
110         return _myCQ.getPdata2();\r
111     }\r
112     protected ConditionValue getCValuePdata3() {\r
113         return _myCQ.getPdata3();\r
114     }\r
115     protected ConditionValue getCValuePdata4() {\r
116         return _myCQ.getPdata4();\r
117     }\r
118     protected ConditionValue getCValueHaslength() {\r
119         return _myCQ.getHaslength();\r
120     }\r
121     protected ConditionValue getCValueGenerictype() {\r
122         return _myCQ.getGenerictype();\r
123     }\r
124     protected ConditionValue getCValueDatatypeid() {\r
125         return _myCQ.getDatatypeid();\r
126     }\r
127 \r
128     // ===================================================================================\r
129     //                                                                       Very Internal\r
130     //                                                                       =============\r
131     // Very Internal (for Suppressing Warn about 'Not Use Import')\r
132     String xiCB() { return TDatatypesCB.class.getName(); }\r
133     String xiCQ() { return TDatatypesCQ.class.getName(); }\r
134 }\r