public CFBamDelSubDep3Buff lockDerived(CFBamAuthorization Authorization, CFBamScopePKey PKey) {
   final String S_ProcName = "CFBamRamDelSubDep3.readDerived() ";
   CFBamScopePKey key = schema.getFactoryScope().newPKey();
   key.setRequiredTenantId(PKey.getRequiredTenantId());
   key.setRequiredId(PKey.getRequiredId());
   CFBamDelSubDep3Buff buff;
   if (dictByPKey.containsKey(key)) {
     buff = dictByPKey.get(key);
   } else {
     buff = null;
   }
   return (buff);
 }
 public ICFBamClearTopDepObj readClearTopDep(CFBamScopePKey pkey, boolean forceRead) {
   ICFBamClearTopDepObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFBamClearTopDepBuff readBuff =
         schema
             .getBackingStore()
             .getTableClearTopDep()
             .readDerivedByIdIdx(
                 schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredId());
     if (readBuff != null) {
       obj =
           (ICFBamClearTopDepObj)
               schema.getScopeTableObj().constructByClassCode(readBuff.getClassCode());
       obj.setPKey(schema.getBackingStore().getFactoryScope().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFBamClearTopDepObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }
  public int compareTo(Object obj) {
    if (obj == null) {
      return (-1);
    } else if (obj instanceof CFBamPopSubDep1Buff) {
      CFBamPopSubDep1Buff rhs = (CFBamPopSubDep1Buff) obj;
      int retval = super.compareTo(rhs);
      if (retval != 0) {
        return (retval);
      }
      if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) {
        return (-1);
      } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) {
        return (1);
      }
      if (getRequiredContPopTopDepId() < rhs.getRequiredContPopTopDepId()) {
        return (-1);
      } else if (getRequiredContPopTopDepId() > rhs.getRequiredContPopTopDepId()) {
        return (1);
      }
      {
        int cmp = getRequiredName().compareTo(rhs.getRequiredName());
        if (cmp != 0) {
          return (cmp);
        }
      }
      return (0);
    } else if (obj instanceof CFBamScopePKey) {
      CFBamScopePKey rhs = (CFBamScopePKey) obj;
      if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
        return (-1);
      } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
        return (1);
      }
      if (getRequiredId() < rhs.getRequiredId()) {
        return (-1);
      } else if (getRequiredId() > rhs.getRequiredId()) {
        return (1);
      }
      return (0);
    } else if (obj instanceof CFBamScopeHPKey) {
      CFBamScopeHPKey rhs = (CFBamScopeHPKey) obj;
      {
        int lhsRequiredRevision = getRequiredRevision();
        int rhsRequiredRevision = rhs.getRequiredRevision();
        if (lhsRequiredRevision < rhsRequiredRevision) {
          return (-1);
        } else if (lhsRequiredRevision > rhsRequiredRevision) {
          return (1);
        }
      }
      if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
        return (-1);
      } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
        return (1);
      }
      if (getRequiredId() < rhs.getRequiredId()) {
        return (-1);
      } else if (getRequiredId() > rhs.getRequiredId()) {
        return (1);
      }
      return (0);
    } else if (obj instanceof CFBamPopSubDep1HBuff) {
      CFBamPopSubDep1HBuff rhs = (CFBamPopSubDep1HBuff) obj;
      int retval = super.compareTo(rhs);
      if (retval != 0) {
        return (retval);
      }
      if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) {
        return (-1);
      } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) {
        return (1);
      }
      if (getRequiredContPopTopDepId() < rhs.getRequiredContPopTopDepId()) {
        return (-1);
      } else if (getRequiredContPopTopDepId() > rhs.getRequiredContPopTopDepId()) {
        return (1);
      }
      {
        int cmp = getRequiredName().compareTo(rhs.getRequiredName());
        if (cmp != 0) {
          return (cmp);
        }
      }
      return (0);
    } else if (obj instanceof CFBamPopSubDep1ByContPopTopIdxKey) {
      CFBamPopSubDep1ByContPopTopIdxKey rhs = (CFBamPopSubDep1ByContPopTopIdxKey) obj;

      if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) {
        return (-1);
      } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) {
        return (1);
      }
      if (getRequiredContPopTopDepId() < rhs.getRequiredContPopTopDepId()) {
        return (-1);
      } else if (getRequiredContPopTopDepId() > rhs.getRequiredContPopTopDepId()) {
        return (1);
      }
      return (0);
    } else if (obj instanceof CFBamPopSubDep1ByUNameIdxKey) {
      CFBamPopSubDep1ByUNameIdxKey rhs = (CFBamPopSubDep1ByUNameIdxKey) obj;

      if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) {
        return (-1);
      } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) {
        return (1);
      }
      if (getRequiredContPopTopDepId() < rhs.getRequiredContPopTopDepId()) {
        return (-1);
      } else if (getRequiredContPopTopDepId() > rhs.getRequiredContPopTopDepId()) {
        return (1);
      }
      {
        int cmp = getRequiredName().compareTo(rhs.getRequiredName());
        if (cmp != 0) {
          return (cmp);
        }
      }
      return (0);
    } else {
      int retval = super.compareTo(obj);
      return (retval);
    }
  }
 public boolean equals(Object obj) {
   if (obj == null) {
     return (false);
   } else if (obj instanceof CFBamPopSubDep1Buff) {
     CFBamPopSubDep1Buff rhs = (CFBamPopSubDep1Buff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) {
       return (false);
     }
     if (getRequiredContPopTopDepId() != rhs.getRequiredContPopTopDepId()) {
       return (false);
     }
     if (!getRequiredName().equals(rhs.getRequiredName())) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamScopePKey) {
     CFBamScopePKey rhs = (CFBamScopePKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamPopSubDep1HBuff) {
     CFBamPopSubDep1HBuff rhs = (CFBamPopSubDep1HBuff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) {
       return (false);
     }
     if (getRequiredContPopTopDepId() != rhs.getRequiredContPopTopDepId()) {
       return (false);
     }
     if (!getRequiredName().equals(rhs.getRequiredName())) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamScopeHPKey) {
     CFBamScopeHPKey rhs = (CFBamScopeHPKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamPopSubDep1ByContPopTopIdxKey) {
     CFBamPopSubDep1ByContPopTopIdxKey rhs = (CFBamPopSubDep1ByContPopTopIdxKey) obj;
     if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) {
       return (false);
     }
     if (getRequiredContPopTopDepId() != rhs.getRequiredContPopTopDepId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamPopSubDep1ByUNameIdxKey) {
     CFBamPopSubDep1ByUNameIdxKey rhs = (CFBamPopSubDep1ByUNameIdxKey) obj;
     if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) {
       return (false);
     }
     if (getRequiredContPopTopDepId() != rhs.getRequiredContPopTopDepId()) {
       return (false);
     }
     if (!getRequiredName().equals(rhs.getRequiredName())) {
       return (false);
     }
     return (true);
   } else {
     boolean retval = super.equals(obj);
     return (retval);
   }
 }
 public boolean equals(Object obj) {
   if (obj == null) {
     return (false);
   } else if (obj instanceof CFBamServerProcBuff) {
     CFBamServerProcBuff rhs = (CFBamServerProcBuff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getOptionalDummy() != null) {
       if (rhs.getOptionalDummy() != null) {
         if (!getOptionalDummy().equals(rhs.getOptionalDummy())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalDummy() != null) {
         return (false);
       }
     }
     return (true);
   } else if (obj instanceof CFBamScopePKey) {
     CFBamScopePKey rhs = (CFBamScopePKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamServerProcHBuff) {
     CFBamServerProcHBuff rhs = (CFBamServerProcHBuff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getOptionalDummy() != null) {
       if (rhs.getOptionalDummy() != null) {
         if (!getOptionalDummy().equals(rhs.getOptionalDummy())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalDummy() != null) {
         return (false);
       }
     }
     return (true);
   } else if (obj instanceof CFBamScopeHPKey) {
     CFBamScopeHPKey rhs = (CFBamScopeHPKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     return (true);
   } else {
     boolean retval = super.equals(obj);
     return (retval);
   }
 }
 public int compareTo(Object obj) {
   if (obj == null) {
     return (-1);
   } else if (obj instanceof CFBamServerProcBuff) {
     CFBamServerProcBuff rhs = (CFBamServerProcBuff) obj;
     int retval = super.compareTo(rhs);
     if (retval != 0) {
       return (retval);
     }
     if (getOptionalDummy() != null) {
       if (rhs.getOptionalDummy() != null) {
         int cmp = getOptionalDummy().compareTo(rhs.getOptionalDummy());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalDummy() != null) {
         return (-1);
       }
     }
     return (0);
   } else if (obj instanceof CFBamScopePKey) {
     CFBamScopePKey rhs = (CFBamScopePKey) obj;
     if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
       return (-1);
     } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
       return (1);
     }
     if (getRequiredId() < rhs.getRequiredId()) {
       return (-1);
     } else if (getRequiredId() > rhs.getRequiredId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFBamScopeHPKey) {
     CFBamScopeHPKey rhs = (CFBamScopeHPKey) obj;
     {
       int lhsRequiredRevision = getRequiredRevision();
       int rhsRequiredRevision = rhs.getRequiredRevision();
       if (lhsRequiredRevision < rhsRequiredRevision) {
         return (-1);
       } else if (lhsRequiredRevision > rhsRequiredRevision) {
         return (1);
       }
     }
     if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
       return (-1);
     } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
       return (1);
     }
     if (getRequiredId() < rhs.getRequiredId()) {
       return (-1);
     } else if (getRequiredId() > rhs.getRequiredId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFBamServerProcHBuff) {
     CFBamServerProcHBuff rhs = (CFBamServerProcHBuff) obj;
     int retval = super.compareTo(rhs);
     if (retval != 0) {
       return (retval);
     }
     if (getOptionalDummy() != null) {
       if (rhs.getOptionalDummy() != null) {
         int cmp = getOptionalDummy().compareTo(rhs.getOptionalDummy());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalDummy() != null) {
         return (-1);
       }
     }
     return (0);
   } else {
     int retval = super.compareTo(obj);
     return (retval);
   }
 }