protected ICFBamRelationObj resolveInheritedRelation(
     ICFBamRelationTableObj relationTable, ICFBamTableObj tbl, String relName) {
   ICFBamRelationObj curRelation;
   ICFBamRelationObj superRelation;
   ICFBamRelationObj retval = null;
   ICFBamTableObj curTable = tbl;
   while ((retval == null) && (curTable != null)) {
     retval =
         relationTable.readRelationByUNameIdx(
             curTable.getRequiredTenantId(), curTable.getRequiredId(), relName);
     if (retval == null) {
       Iterator<ICFBamRelationObj> relIter = curTable.getOptionalComponentsRelation().iterator();
       superRelation = null;
       while ((superRelation == null) && relIter.hasNext()) {
         curRelation = relIter.next();
         if (curRelation.getRequiredLookupRelationType().getRequiredTag().equals("Superclass")) {
           superRelation = curRelation;
         }
       }
       if (superRelation != null) {
         curTable = superRelation.getRequiredLookupToTable();
       } else {
         curTable = null;
       }
     }
   }
   return (retval);
 }
 public void setOptionalLookupRetTable(ICFBamTableObj value) {
   if (buff == null) {
     getServerListFuncBuff();
   }
   if (value != null) {
     getServerListFuncBuff().setOptionalRetTenantId(value.getRequiredTenantId());
     getServerListFuncBuff().setOptionalRetTableId(value.getRequiredId());
   } else {
     getServerListFuncBuff().setOptionalRetTenantId(null);
     getServerListFuncBuff().setOptionalRetTableId(null);
   }
   optionalLookupRetTable = value;
 }
  public void setRequiredContainerTable(ICFBamTableObj value) {
    if (buff == null) {
      getTimeColBuff();
    }
    requiredContainerTable = null;
    if (value != null) {
      getPKey().setRequiredTenantId(value.getRequiredTenantId());
      getTimeColBuff().setRequiredTenantId(value.getRequiredTenantId());
      getTimeColBuff().setRequiredTableId(value.getRequiredId());
    }
    requiredContainerTable = value;

    super.setRequiredContainerScope(value);
  }
 public ICFBamTableObj getRequiredContainerTable(boolean forceRead) {
   if (forceRead || (requiredContainerTable == null)) {
     boolean anyMissing = false;
     if (!anyMissing) {
       ICFBamTableObj obj =
           getOrigAsTimeCol()
               .getSchema()
               .getTableTableObj()
               .readTableByIdIdx(
                   getPKey().getRequiredTenantId(), getTimeColBuff().getRequiredTableId());
       requiredContainerTable = obj;
       if (obj != null) {
         getTimeColBuff().setRequiredTenantId(obj.getRequiredTenantId());
         getTimeColBuff().setRequiredTableId(obj.getRequiredId());
         requiredContainerTable = obj;
       }
     }
   }
   return (requiredContainerTable);
 }