/** * Set up 'union all' for base-point table. <br> * You don't need to call SetupSelect in union-query, because it inherits calls before. (Don't * call SetupSelect after here) * * <pre> * cb.query().<span style="color: #DD4747">unionAll</span>(new UnionQuery<TweetCB>() { * public void query(TweetCB unionCB) { * unionCB.query().setXxx... * } * }); * </pre> * * @param unionQuery The query of 'union all'. (NotNull) */ public void unionAll(UnionQuery<TweetCB> unionQuery) { final TweetCB cb = new TweetCB(); cb.xsetupForUnion(this); xsyncUQ(cb); try { lock(); unionQuery.query(cb); } finally { unlock(); } xsaveUCB(cb); final TweetCQ cq = cb.query(); query().xsetUnionAllQuery(cq); }
@Execute(validator = false, urlPattern = "{name}") public String index() { if (name == null) { name = "nullpo"; return "index.jsp"; } TweetCB cb = new TweetCB(); cb.setupSelect_Member(); cb.query().queryMember().setMemberAccount_Equal(name); tweetList = tweetBhv.selectList(cb); if (tweetList.size() > 0) { return "member.jsp"; } else { name = "hazure"; return "index.jsp"; } }
/** * Welcome to the Dream Cruise for condition-bean deep world. <br> * This is very specialty so you can get the frontier spirit. Bon voyage! * * @return The condition-bean for dream cruise, which is linked to main condition-bean. */ public TweetCB dreamCruiseCB() { TweetCB cb = new TweetCB(); cb.xsetupForDreamCruise((TweetCB) this); return cb; }
protected TweetCB xcreateColumnQueryCB() { TweetCB cb = new TweetCB(); cb.xsetupForColumnQuery((TweetCB) this); return cb; }