1 package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
\r
3 import java.util.Map;
\r
5 import org.seasar.dbflute.cbean.*;
\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.cq.ciq.*;
\r
9 import jp.sourceforge.ea2ddl.dao.cbean.*;
\r
10 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;
\r
13 * The base condition-query of t_authors.
\r
14 * @author DBFlute(AutoGenerator)
\r
16 public class BsTAuthorsCQ extends AbstractBsTAuthorsCQ {
\r
18 // ===================================================================================
\r
21 protected TAuthorsCIQ _inlineQuery;
\r
23 // ===================================================================================
\r
26 public BsTAuthorsCQ(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_authors) where abc = [abc] ...}
\r
36 * @return Inline query. (NotNull)
\r
38 public TAuthorsCIQ inline() {
\r
39 if (_inlineQuery == null) {
\r
40 _inlineQuery = new TAuthorsCIQ(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_authors on ... and abc = [abc] ...}
\r
48 * @return On-clause query. (NotNull)
\r
50 public TAuthorsCIQ on() {
\r
51 if (isBaseQuery(this)) { throw new UnsupportedOperationException("Unsupported on-clause for local table!"); }
\r
52 TAuthorsCIQ inlineQuery = inline(); inlineQuery.xsetOnClauseInline(true); return inlineQuery;
\r
55 // ===================================================================================
\r
59 protected ConditionValue _authorname;
\r
60 public ConditionValue getAuthorname() {
\r
61 if (_authorname == null) { _authorname = new ConditionValue(); }
\r
64 protected ConditionValue getCValueAuthorname() { return getAuthorname(); }
\r
66 public BsTAuthorsCQ addOrderBy_Authorname_Asc() { regOBA("AuthorName"); return this; }
\r
67 public BsTAuthorsCQ addOrderBy_Authorname_Desc() { regOBD("AuthorName"); return this; }
\r
69 protected ConditionValue _roles;
\r
70 public ConditionValue getRoles() {
\r
71 if (_roles == null) { _roles = new ConditionValue(); }
\r
74 protected ConditionValue getCValueRoles() { return getRoles(); }
\r
76 public BsTAuthorsCQ addOrderBy_Roles_Asc() { regOBA("Roles"); return this; }
\r
77 public BsTAuthorsCQ addOrderBy_Roles_Desc() { regOBD("Roles"); return this; }
\r
79 protected ConditionValue _notes;
\r
80 public ConditionValue getNotes() {
\r
81 if (_notes == null) { _notes = new ConditionValue(); }
\r
84 protected ConditionValue getCValueNotes() { return getNotes(); }
\r
86 public BsTAuthorsCQ addOrderBy_Notes_Asc() { regOBA("Notes"); return this; }
\r
87 public BsTAuthorsCQ addOrderBy_Notes_Desc() { regOBD("Notes"); return this; }
\r
89 // ===================================================================================
\r
90 // Specified Derived OrderBy
\r
91 // =========================
\r
92 public BsTAuthorsCQ addSpecifiedDerivedOrderBy_Asc(String aliasName) { registerSpecifiedDerivedOrderBy_Asc(aliasName); return this; }
\r
93 public BsTAuthorsCQ addSpecifiedDerivedOrderBy_Desc(String aliasName) { registerSpecifiedDerivedOrderBy_Desc(aliasName); return this; }
\r
95 // ===================================================================================
\r
98 protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {
\r
101 // ===================================================================================
\r
104 // ===================================================================================
\r
107 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
108 String xCB() { return TAuthorsCB.class.getName(); }
\r
109 String xCQ() { return TAuthorsCQ.class.getName(); }
\r
110 String xMap() { return Map.class.getName(); }
\r