1 package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
\r
3 import java.util.Map;
\r
5 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.*;
\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.ciq.*;
\r
9 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;
\r
12 * The base condition-query of t_diagramtypes.
\r
13 * @author DBFlute(AutoGenerator)
\r
15 @SuppressWarnings("unchecked")
\r
16 public class BsTDiagramtypesCQ extends AbstractBsTDiagramtypesCQ {
\r
18 // ===================================================================================
\r
21 protected TDiagramtypesCIQ _inlineQuery;
\r
23 // ===================================================================================
\r
26 public BsTDiagramtypesCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) {
\r
27 super(childQuery, sqlClause, aliasName, nestLevel);
\r
30 // ===================================================================================
\r
34 * Prepare inline query. <br />
\r
35 * {select ... from ... left outer join (select * from t_diagramtypes) where abc = [abc] ...}
\r
36 * @return Inline query. (NotNull)
\r
38 public TDiagramtypesCIQ inline() {
\r
39 if (_inlineQuery == null) {
\r
40 _inlineQuery = new TDiagramtypesCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this);
\r
42 _inlineQuery.xsetOnClauseInline(false); return _inlineQuery;
\r
46 * Prepare on-clause query. <br />
\r
47 * {select ... from ... left outer join t_diagramtypes on ... and abc = [abc] ...}
\r
48 * @return On-clause query. (NotNull)
\r
50 public TDiagramtypesCIQ on() {
\r
51 if (isBaseQuery(this)) { throw new UnsupportedOperationException("Unsupported onClause of Base Table!"); }
\r
52 TDiagramtypesCIQ inlineQuery = inline(); inlineQuery.xsetOnClauseInline(true); return inlineQuery;
\r
55 // ===================================================================================
\r
59 protected ConditionValue _diagramType;
\r
60 public ConditionValue getDiagramType() {
\r
61 if (_diagramType == null) { _diagramType = new ConditionValue(); }
\r
62 return _diagramType;
\r
64 protected ConditionValue getCValueDiagramType() { return getDiagramType(); }
\r
66 public BsTDiagramtypesCQ addOrderBy_DiagramType_Asc() { regOBA("Diagram_Type"); return this; }
\r
67 public BsTDiagramtypesCQ addOrderBy_DiagramType_Desc() { regOBD("Diagram_Type"); return this; }
\r
69 protected ConditionValue _name;
\r
70 public ConditionValue getName() {
\r
71 if (_name == null) { _name = new ConditionValue(); }
\r
74 protected ConditionValue getCValueName() { return getName(); }
\r
76 public BsTDiagramtypesCQ addOrderBy_Name_Asc() { regOBA("Name"); return this; }
\r
77 public BsTDiagramtypesCQ addOrderBy_Name_Desc() { regOBD("Name"); return this; }
\r
79 protected ConditionValue _packageId;
\r
80 public ConditionValue getPackageId() {
\r
81 if (_packageId == null) { _packageId = new ConditionValue(); }
\r
84 protected ConditionValue getCValuePackageId() { return getPackageId(); }
\r
86 public BsTDiagramtypesCQ addOrderBy_PackageId_Asc() { regOBA("Package_ID"); return this; }
\r
87 public BsTDiagramtypesCQ addOrderBy_PackageId_Desc() { regOBD("Package_ID"); return this; }
\r
89 // ===================================================================================
\r
90 // Specified Derived OrderBy
\r
91 // =========================
\r
92 public BsTDiagramtypesCQ addSpecifiedDerivedOrderBy_Asc(String aliasName) { registerSpecifiedDerivedOrderBy_Asc(aliasName); return this; }
\r
93 public BsTDiagramtypesCQ addSpecifiedDerivedOrderBy_Desc(String aliasName) { registerSpecifiedDerivedOrderBy_Desc(aliasName); return this; }
\r
95 // ===================================================================================
\r
98 protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {
\r
101 // ===================================================================================
\r
106 protected String getConditionQueryClassNameInternally() { return TDiagramtypesCQ.class.getName(); }
\r
107 protected String getMapClassNameInternally() { return Map.class.getName(); }
\r