1 package jp.sourceforge.ea2ddl.dao.cbean.cq.ciq;
\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
13 * The condition-inline-query of t_clients.
\r
14 * @author DBFlute(AutoGenerator)
\r
16 public class TClientsCIQ extends AbstractBsTClientsCQ {
\r
18 // ===================================================================================
\r
21 protected BsTClientsCQ _myCQ;
\r
23 // ===================================================================================
\r
26 public TClientsCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsTClientsCQ myCQ) {
\r
27 super(childQuery, sqlClause, aliasName, nestLevel);
\r
29 _foreignPropertyName = _myCQ.getForeignPropertyName();// Accept foreign property name.
\r
30 _relationPath = _myCQ.getRelationPath();// Accept relation path.
\r
33 // ===================================================================================
\r
34 // Override about Register
\r
35 // =======================
\r
37 protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {
\r
38 throw new UnsupportedOperationException("InlineQuery must not need UNION method: " + baseQueryAsSuper + " : " + unionQueryAsSuper);
\r
42 protected void setupConditionValueAndRegisterWhereClause(ConditionKey k, Object v, ConditionValue cv, String col) {
\r
43 regIQ(k, v, cv, col);
\r
47 protected void setupConditionValueAndRegisterWhereClause(ConditionKey k, Object v, ConditionValue cv, String col, ConditionOption op) {
\r
48 regIQ(k, v, cv, col, op);
\r
52 protected void registerWhereClause(String whereClause) {
\r
53 registerInlineWhereClause(whereClause);
\r
57 protected String getInScopeSubQueryRealColumnName(String columnName) {
\r
58 if (_onClauseInline) {
\r
59 throw new UnsupportedOperationException("InScopeSubQuery of on-clause is unsupported");
\r
61 return _onClauseInline ? getRealAliasName() + "." + columnName : columnName;
\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
70 // ===================================================================================
\r
71 // Override about Query
\r
72 // ====================
\r
73 protected ConditionValue getCValueName() {
\r
74 return _myCQ.getName();
\r
76 protected ConditionValue getCValueOrganisation() {
\r
77 return _myCQ.getOrganisation();
\r
79 protected ConditionValue getCValuePhone1() {
\r
80 return _myCQ.getPhone1();
\r
82 protected ConditionValue getCValuePhone2() {
\r
83 return _myCQ.getPhone2();
\r
85 protected ConditionValue getCValueMobile() {
\r
86 return _myCQ.getMobile();
\r
88 protected ConditionValue getCValueFax() {
\r
89 return _myCQ.getFax();
\r
91 protected ConditionValue getCValueEmail() {
\r
92 return _myCQ.getEmail();
\r
94 protected ConditionValue getCValueRoles() {
\r
95 return _myCQ.getRoles();
\r
97 protected ConditionValue getCValueNotes() {
\r
98 return _myCQ.getNotes();
\r
101 // ===================================================================================
\r
104 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
105 String xiCB() { return TClientsCB.class.getName(); }
\r
106 String xiCQ() { return TClientsCQ.class.getName(); }
\r