1 package jp.sourceforge.ea2ddl.dao.cbean.bs;
\r
3 import java.util.Map;
\r
5 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.AbstractConditionBean;
\r
6 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionBean;
\r
7 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.ConditionQuery;
\r
8 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.SubQuery;
\r
9 import jp.sourceforge.ea2ddl.dao.allcommon.cbean.UnionQuery;
\r
10 import jp.sourceforge.ea2ddl.dao.cbean.*;
\r
11 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;
\r
14 * The base condition-bean of t_metrictypes.
\r
15 * @author DBFlute(AutoGenerator)
\r
17 @SuppressWarnings("unchecked")
\r
18 public class BsTMetrictypesCB extends AbstractConditionBean {
\r
20 // ===================================================================================
\r
23 protected TMetrictypesCQ _conditionQuery;
\r
25 // ===================================================================================
\r
28 public String getTableDbName() {
\r
29 return "t_metrictypes";
\r
32 public String getTableSqlName() {
\r
33 return "t_metrictypes";
\r
36 // ===================================================================================
\r
39 public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) {
\r
41 String msg = "This table has no primary-keys: " + getTableDbName();
\r
42 throw new IllegalStateException(msg);
\r
46 // ===================================================================================
\r
49 public ConditionBean addOrderBy_PK_Asc() {
\r
50 String msg = "This table has no primary-keys: " + getTableDbName();
\r
51 throw new IllegalStateException(msg);
\r
54 public ConditionBean addOrderBy_PK_Desc() {
\r
55 String msg = "This table has no primary-keys: " + getTableDbName();
\r
56 throw new IllegalStateException(msg);
\r
59 // ===================================================================================
\r
62 public TMetrictypesCQ query() {
\r
63 return getConditionQuery();
\r
66 public TMetrictypesCQ getConditionQuery() {
\r
67 if (_conditionQuery == null) {
\r
68 _conditionQuery = new TMetrictypesCQ(null, getSqlClause(), getSqlClause().getLocalTableAliasName(), 0);
\r
70 return _conditionQuery;
\r
73 public ConditionQuery getConditionQueryAsInterface() {
\r
74 return getConditionQuery();
\r
77 // ===================================================================================
\r
83 * cb.query().union(new UnionQuery<TMetrictypesCB>() {
\r
84 * public void query(TMetrictypesCB unionCB) {
\r
85 * unionCB.query().setXxx...
\r
89 * @param unionQuery The query of 'union'. (NotNull)
\r
91 public void union(UnionQuery<TMetrictypesCB> unionQuery) {
\r
92 final TMetrictypesCB cb = new TMetrictypesCB(); cb.xsetupForUnion(); unionQuery.query(cb);
\r
93 final TMetrictypesCQ cq = cb.query(); query().xsetUnionQuery(cq);
\r
97 * Set up 'union all'.
\r
99 * cb.query().unionAll(new UnionQuery<TMetrictypesCB>() {
\r
100 * public void query(TMetrictypesCB unionCB) {
\r
101 * unionCB.query().setXxx...
\r
105 * @param unionQuery The query of 'union'. (NotNull)
\r
107 public void unionAll(UnionQuery<TMetrictypesCB> unionQuery) {
\r
108 final TMetrictypesCB cb = new TMetrictypesCB(); cb.xsetupForUnion(); unionQuery.query(cb);
\r
109 final TMetrictypesCQ cq = cb.query(); query().xsetUnionAllQuery(cq);
\r
113 * @param unionQuery The query of 'union'. (NotNull)
\r
114 * @deprecated Sorry! Please use union(UnionQuery<TMetrictypesCB> unionQuery).
\r
116 public void union(TMetrictypesCQ unionQuery) {
\r
117 query().xsetUnionQuery(unionQuery);
\r
121 * @param unionQuery The query of 'union'. (NotNull)
\r
122 * @deprecated Sorry! Please use unionAll(UnionQuery<TMetrictypesCB> unionQuery).
\r
124 public void unionAll(TMetrictypesCQ unionQuery) {
\r
125 query().xsetUnionAllQuery(unionQuery);
\r
128 public boolean hasUnionQueryOrUnionAllQuery() {
\r
129 return query().hasUnionQueryOrUnionAllQuery();
\r
132 // ===================================================================================
\r
137 // ===================================================================================
\r
140 protected Specification _specification;
\r
141 public Specification specify() {
\r
142 if (_specification == null) { _specification = new Specification(this, new SpQyCall<TMetrictypesCQ>() {
\r
143 public boolean has() { return true; } public TMetrictypesCQ qy() { return query(); } }, _forDeriveReferrer); } return _specification;
\r
145 public static class Specification extends AbstractSpecification<TMetrictypesCQ> {
\r
146 protected SpQyCall<TMetrictypesCQ> _myQyCall;
\r
147 public Specification(ConditionBean baseCB, SpQyCall<TMetrictypesCQ> qyCall, boolean forDeriveReferrer) { super(baseCB, qyCall, forDeriveReferrer); _myQyCall = qyCall; }
\r
148 public void columnMetric() { doColumn("Metric"); }
\r
149 public void columnDescription() { doColumn("Description"); }
\r
150 public void columnNumericweight() { doColumn("NumericWeight"); }
\r
151 public void columnNotes() { doColumn("Notes"); }
\r
152 protected void doSpecifyRequiredColumn() {
\r
154 protected String getTableDbName() { return "t_metrictypes"; }
\r
157 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
158 protected String getConditionBeanClassNameInternally() { return TMetrictypesCB.class.getName(); }
\r
159 protected String getConditionQueryClassNameInternally() { return TMetrictypesCQ.class.getName(); }
\r
160 protected String getSubQueryClassNameInternally() { return SubQuery.class.getName(); }
\r