OSDN Git Service

6c61dd526bd60e06a80c7448d97c84a2c52c85ec
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / cbean / cq / ciq / TObjecttestsCIQ.java
1 package jp.sourceforge.ea2ddl.dao.cbean.cq.ciq;\r
2 \r
3 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.*;\r
4 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ckey.*;\r
5 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.coption.ConditionOption;\r
6 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.cvalue.ConditionValue;\r
7 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.sqlclause.SqlClause;\r
8 import jp.sourceforge.ea2ddl.dao.cbean.cq.bs.*;\r
9 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;\r
10 \r
11 /**\r
12  * The condition-inline-query of t_objecttests.\r
13  * @author DBFlute(AutoGenerator)\r
14  */
15 @SuppressWarnings("unchecked")\r
16 public class TObjecttestsCIQ extends AbstractBsTObjecttestsCQ {\r
17 \r
18     // ===================================================================================\r
19     //                                                                           Attribute\r
20     //                                                                           =========\r
21     protected BsTObjecttestsCQ _myCQ;\r
22 \r
23     // ===================================================================================\r
24     //                                                                         Constructor\r
25     //                                                                         ===========\r
26     public TObjecttestsCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsTObjecttestsCQ 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 key, Object value, ConditionValue cvalue\r
43                                                              , String colName, String capPropName, String uncapPropName) {\r
44         registerInlineQuery(key, value, cvalue, colName, capPropName, uncapPropName);\r
45     }\r
46 \r
47     @Override\r
48     protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, Object value, ConditionValue cvalue\r
49                                                              , String colName, String capPropName, String uncapPropName, ConditionOption option) {\r
50         registerInlineQuery(key, value, cvalue, colName, capPropName, uncapPropName, option);\r
51     }\r
52 \r
53     @Override\r
54     protected void registerWhereClause(String whereClause) {\r
55         registerInlineWhereClause(whereClause);\r
56     }\r
57 \r
58     @Override\r
59     protected String getInScopeSubQueryRealColumnName(String columnName) {\r
60         if (_onClauseInline) {\r
61             throw new UnsupportedOperationException("InScopeSubQuery of on-clause is unsupported");\r
62         }\r
63         return _onClauseInline ? getRealAliasName() + "." + columnName : columnName;\r
64     }\r
65 \r
66     @Override\r
67     protected void registerExistsSubQuery(ConditionQuery subQuery\r
68                                  , String columnName, String relatedColumnName, String propertyName) {\r
69         throw new UnsupportedOperationException("Sorry! ExistsSubQuery at inline view is unsupported. So please use InScopeSubQyery.");\r
70     }\r
71 \r
72     // ===================================================================================\r
73     //                                                                Override about Query\r
74     //                                                                ====================\r
75     protected ConditionValue getCValueObjectId() {\r
76         return _myCQ.getObjectId();\r
77     }\r
78     protected ConditionValue getCValueTest() {\r
79         return _myCQ.getTest();\r
80     }\r
81     protected ConditionValue getCValueTestclass() {\r
82         return _myCQ.getTestclass();\r
83     }\r
84     protected ConditionValue getCValueTesttype() {\r
85         return _myCQ.getTesttype();\r
86     }\r
87     protected ConditionValue getCValueNotes() {\r
88         return _myCQ.getNotes();\r
89     }\r
90     protected ConditionValue getCValueInputdata() {\r
91         return _myCQ.getInputdata();\r
92     }\r
93     protected ConditionValue getCValueAcceptancecriteria() {\r
94         return _myCQ.getAcceptancecriteria();\r
95     }\r
96     protected ConditionValue getCValueStatus() {\r
97         return _myCQ.getStatus();\r
98     }\r
99     protected ConditionValue getCValueDaterun() {\r
100         return _myCQ.getDaterun();\r
101     }\r
102     protected ConditionValue getCValueResults() {\r
103         return _myCQ.getResults();\r
104     }\r
105     protected ConditionValue getCValueRunby() {\r
106         return _myCQ.getRunby();\r
107     }\r
108     protected ConditionValue getCValueCheckby() {\r
109         return _myCQ.getCheckby();\r
110     }\r
111 \r
112     protected String getConditionQueryClassNameInternally() { return TObjecttestsCQ.class.getName(); }\r
113 }\r