/**
  * Myself InScope (SubQuery). {mainly to avoid CLOB and Union problem or no master table}
  *
  * @param subQuery The implementation of sub query. (NotNull)
  */
 public void myselfInScope(SubQuery<ServiceRankCB> subQuery) {
   assertObjectNotNull("subQuery<ServiceRankCB>", subQuery);
   ServiceRankCB cb = new ServiceRankCB();
   cb.xsetupForMyselfInScope(this);
   subQuery.query(cb);
   String subQueryPropertyName = keepMyselfInScope(cb.query()); // for saving query-value.
   registerMyselfInScope(cb.query(), subQueryPropertyName);
 }
 protected void xscalarCondition(
     String function, SubQuery<ServiceRankCB> subQuery, String operand) {
   assertObjectNotNull("subQuery<ServiceRankCB>", subQuery);
   ServiceRankCB cb = new ServiceRankCB();
   cb.xsetupForScalarCondition(this);
   subQuery.query(cb);
   String subQueryPropertyName = keepScalarCondition(cb.query()); // for saving query-value.
   registerScalarCondition(function, cb.query(), subQueryPropertyName, operand);
 }
 // ===================================================================================
 //                                                                        Purpose Type
 //                                                                        ============
 @Override
 protected void xprepareSyncQyCall(ConditionBean mainCB) {
     final ServiceRankCB cb;
     if (mainCB != null) {
         cb = (ServiceRankCB)mainCB;
     } else {
         cb = new ServiceRankCB();
     }
     specify().xsetSyncQyCall(xcreateSpQyCall(() -> true, () -> cb.query()));
 }
 protected ServiceRankCB xcreateColumnQueryCB() {
     ServiceRankCB cb = new ServiceRankCB();
     cb.xsetupForColumnQuery((ServiceRankCB)this);
     return cb;
 }
 /**
  * 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 ServiceRankCB dreamCruiseCB() {
     ServiceRankCB cb = new ServiceRankCB();
     cb.xsetupForDreamCruise((ServiceRankCB) this);
     return cb;
 }
 /**
  * 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: #CC4747">unionAll</span>(<span style="color: #553000">unionCB</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> {
  *     <span style="color: #553000">unionCB</span>.query().set...
  * });
  * </pre>
  * @param unionCBLambda The callback for query of 'union all'. (NotNull)
  */
 public void unionAll(UnionQuery<ServiceRankCB> unionCBLambda) {
     final ServiceRankCB cb = new ServiceRankCB(); cb.xsetupForUnion(this); xsyncUQ(cb);
     try { lock(); unionCBLambda.query(cb); } finally { unlock(); } xsaveUCB(cb);
     final ServiceRankCQ cq = cb.query(); query().xsetUnionAllQuery(cq);
 }