/** * 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"; } }