Example #1
0
    /**
     * Prepare to specify functions about relation table. <br>
     * member by my MEMBER_ID, named 'member'.
     *
     * @return The instance for specification for relation table to specify. (NotNull)
     */
    public MemberCB.HpSpecification specifyMember() {
      assertRelation("member");
      if (_member == null) {
        _member =
            new MemberCB.HpSpecification(
                _baseCB,
                new HpSpQyCall<MemberCQ>() {
                  public boolean has() {
                    return _qyCall.has() && _qyCall.qy().hasConditionQueryMember();
                  }

                  public MemberCQ qy() {
                    return _qyCall.qy().queryMember();
                  }
                },
                _purpose,
                _dbmetaProvider);
        if (xhasSyncQyCall()) { // inherits it
          _member.xsetSyncQyCall(
              new HpSpQyCall<MemberCQ>() {
                public boolean has() {
                  return xsyncQyCall().has() && xsyncQyCall().qy().hasConditionQueryMember();
                }

                public MemberCQ qy() {
                  return xsyncQyCall().qy().queryMember();
                }
              });
        }
      }
      return _member;
    }