/** * Set up relation columns to select clause. <br> * (会員)MEMBER by my MEMBER_ID, named 'member'. * * <pre> * <span style="color: #0000C0">memberLoginBhv</span>.selectEntity(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>></span> { * <span style="color: #553000">cb</span>.<span style="color: #CC4747">setupSelect_Member()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> * <span style="color: #553000">cb</span>.query().set... * }).alwaysPresent(<span style="color: #553000">memberLogin</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>></span> { * ... = <span style="color: #553000">memberLogin</span>.<span style="color: #CC4747">getMember()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> * }); * </pre> * * @return The set-upper of nested relation. {setupSelect...().with[nested-relation]} (NotNull) */ public MemberNss setupSelect_Member() { assertSetupSelectPurpose("member"); if (hasSpecifiedLocalColumn()) { specify().columnMemberId(); } doSetupSelect(() -> query().queryMember()); if (_nssMember == null || !_nssMember.hasConditionQuery()) { _nssMember = new MemberNss(query().queryMember()); } return _nssMember; }
/** * Set up relation columns to select clause. <br> * member by my MEMBER_ID, named 'member'. * * <pre> * TweetCB cb = new TweetCB(); * cb.<span style="color: #DD4747">setupSelect_Member()</span>; <span style="color: #3F7E5E">// ...().with[nested-relation]()</span> * cb.query().setFoo...(value); * Tweet tweet = tweetBhv.selectEntityWithDeletedCheck(cb); * ... = tweet.<span style="color: #DD4747">getMember()</span>; <span style="color: #3F7E5E">// you can get by using SetupSelect</span> * </pre> * * @return The set-upper of nested relation. {setupSelect...().with[nested-relation]} (NotNull) */ public MemberNss setupSelect_Member() { assertSetupSelectPurpose("member"); if (hasSpecifiedColumn()) { // if reverse call specify().columnMemberId(); } doSetupSelect( new SsCall() { public ConditionQuery qf() { return query().queryMember(); } }); if (_nssMember == null || !_nssMember.hasConditionQuery()) { _nssMember = new MemberNss(query().queryMember()); } return _nssMember; }