public void deleteClearTopDepByTenantIdx(long TenantId) {
   CFBamScopeByTenantIdxKey key = schema.getBackingStore().getFactoryScope().newTenantIdxKey();
   key.setRequiredTenantId(TenantId);
   if (indexByTenantIdx == null) {
     indexByTenantIdx =
         new HashMap<CFBamScopeByTenantIdxKey, Map<CFBamScopePKey, ICFBamClearTopDepObj>>();
   }
   if (indexByTenantIdx.containsKey(key)) {
     Map<CFBamScopePKey, ICFBamClearTopDepObj> dict = indexByTenantIdx.get(key);
     schema
         .getBackingStore()
         .getTableClearTopDep()
         .deleteClearTopDepByTenantIdx(schema.getAuthorization(), TenantId);
     Iterator<ICFBamClearTopDepObj> iter = dict.values().iterator();
     ICFBamClearTopDepObj obj;
     List<ICFBamClearTopDepObj> toForget = new LinkedList<ICFBamClearTopDepObj>();
     while (iter.hasNext()) {
       obj = iter.next();
       toForget.add(obj);
     }
     iter = toForget.iterator();
     while (iter.hasNext()) {
       obj = iter.next();
       obj.forget(true);
     }
     indexByTenantIdx.remove(key);
   } else {
     schema
         .getBackingStore()
         .getTableClearTopDep()
         .deleteClearTopDepByTenantIdx(schema.getAuthorization(), TenantId);
   }
 }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFBamSchemaObj schemaObj = swingSchema.getSchema();
   ICFBamTopProjectObj obj =
       (ICFBamTopProjectObj) schemaObj.getTopProjectTableObj().newInstance();
   JInternalFrame frame = swingSchema.getTopProjectFactory().newViewEditJInternalFrame(obj);
   frame.addInternalFrameListener(getViewEditInternalFrameListener());
   ICFBamTopProjectEditObj edit = (ICFBamTopProjectEditObj) (obj.beginEdit());
   if (edit == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "edit");
   }
   ICFSecurityTenantObj secTenant = schemaObj.getSecTenant();
   edit.setRequiredOwnerTenant(secTenant);
   ICFBamDomainBaseObj container = (ICFBamDomainBaseObj) (getSwingContainer());
   if (container == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "SwingContainer");
   }
   edit.setRequiredContainerDomain(container);
   ICFBamSwingTopProjectJPanelCommon jpanelCommon = (ICFBamSwingTopProjectJPanelCommon) frame;
   jpanelCommon.setPanelMode(CFJPanel.PanelMode.Add);
   Container cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame myInternalFrame = (JInternalFrame) cont;
     myInternalFrame.getDesktopPane().add(frame);
     frame.setVisible(true);
     frame.show();
   }
 }
 public void loadData(boolean forceReload) {
   ICFBamSchemaObj schemaObj = swingSchema.getSchema();
   if ((containingCluster == null) || forceReload) {
     CFSecurityAuthorization auth = schemaObj.getAuthorization();
     long containingClusterId = auth.getSecClusterId();
     containingCluster = schemaObj.getClusterTableObj().readClusterByIdIdx(containingClusterId);
   }
   if ((listOfSysCluster == null) || forceReload) {
     arrayOfSysCluster = null;
     listOfSysCluster =
         schemaObj
             .getSysClusterTableObj()
             .readSysClusterByClusterIdx(containingCluster.getRequiredId(), swingIsInitializing);
     if (listOfSysCluster != null) {
       Object objArray[] = listOfSysCluster.toArray();
       if (objArray != null) {
         int len = objArray.length;
         arrayOfSysCluster = new ICFSecuritySysClusterObj[len];
         for (int i = 0; i < len; i++) {
           arrayOfSysCluster[i] = (ICFSecuritySysClusterObj) objArray[i];
         }
         Arrays.sort(arrayOfSysCluster, compareSysClusterByQualName);
       }
     }
   }
 }
 public void deleteDataScope(ICFBamDataScopeObj Obj) {
   ICFBamDataScopeObj obj = Obj;
   ((ICFBamSchema) schema.getBackingStore())
       .getTableDataScope()
       .deleteDataScope(schema.getAuthorization(), obj.getDataScopeBuff());
   obj.forget(true);
 }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   ICFBamSchemaObj schemaObj = swingSchema.getSchema();
   ICFBamAuditActionObj obj =
       (ICFBamAuditActionObj) schemaObj.getAuditActionTableObj().newInstance();
   JInternalFrame frame = swingSchema.getAuditActionFactory().newViewEditJInternalFrame(obj);
   frame.addInternalFrameListener(getViewEditInternalFrameListener());
   ICFBamAuditActionEditObj edit = (ICFBamAuditActionEditObj) (obj.beginEdit());
   if (edit == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "edit");
   }
   ICFBamSwingAuditActionJPanelCommon jpanelCommon = (ICFBamSwingAuditActionJPanelCommon) frame;
   jpanelCommon.setPanelMode(CFJPanel.PanelMode.Add);
   Container cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame myInternalFrame = (JInternalFrame) cont;
     myInternalFrame.getDesktopPane().add(frame);
     frame.setVisible(true);
     frame.show();
   }
 }
 public ICFBamDataScopeObj updateDataScope(ICFBamDataScopeObj Obj) {
   ICFBamDataScopeObj obj = Obj;
   ((ICFBamSchema) schema.getBackingStore())
       .getTableDataScope()
       .updateDataScope(schema.getAuthorization(), Obj.getDataScopeBuff());
   obj = (ICFBamDataScopeObj) Obj.realize();
   return (obj);
 }
 public void deleteClearTopDep(ICFBamClearTopDepObj Obj) {
   ICFBamClearTopDepObj obj = Obj;
   schema
       .getBackingStore()
       .getTableClearTopDep()
       .deleteClearTopDep(schema.getAuthorization(), obj.getClearTopDepBuff());
   obj.forget(true);
 }
 public ICFBamDataScopeObj createDataScope(ICFBamDataScopeObj Obj) {
   ICFBamDataScopeObj obj = Obj;
   CFBamDataScopeBuff buff = obj.getDataScopeBuff();
   ((ICFBamSchema) schema.getBackingStore())
       .getTableDataScope()
       .createDataScope(schema.getAuthorization(), buff);
   obj.copyBuffToPKey();
   obj = obj.realize();
   return (obj);
 }
 public ICFBamClearTopDepObj updateClearTopDep(ICFBamClearTopDepObj Obj) {
   ICFBamClearTopDepObj obj = Obj;
   schema
       .getBackingStore()
       .getTableClearTopDep()
       .updateClearTopDep(schema.getAuthorization(), Obj.getClearTopDepBuff());
   if (Obj.getClassCode().equals("CLRT")) {
     obj = (ICFBamClearTopDepObj) Obj.realize();
   }
   return (obj);
 }
  public ICFBamDataScopeObj realizeDataScope(ICFBamDataScopeObj Obj) {
    ICFBamDataScopeObj obj = Obj;
    CFBamDataScopePKey pkey = obj.getPKey();
    ICFBamDataScopeObj keepObj = null;
    if (members.containsKey(pkey) && (null != members.get(pkey))) {
      ICFBamDataScopeObj existingObj = members.get(pkey);
      keepObj = existingObj;

      /*
       *	We always rebind the data because if we're being called, some index has
       *	been updated and is refreshing it's data, which may or may not have changed
       */

      // Detach object from alternate and duplicate indexes, leave PKey alone

      if (indexByUNameIdx != null) {
        CFBamDataScopeByUNameIdxKey keyUNameIdx =
            ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newUNameIdxKey();
        keyUNameIdx.setRequiredName(keepObj.getRequiredName());
        indexByUNameIdx.remove(keyUNameIdx);
      }

      keepObj.setBuff(Obj.getBuff());
      // Attach new object to alternate and duplicate indexes -- PKey stay stable

      if (indexByUNameIdx != null) {
        CFBamDataScopeByUNameIdxKey keyUNameIdx =
            ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newUNameIdxKey();
        keyUNameIdx.setRequiredName(keepObj.getRequiredName());
        indexByUNameIdx.put(keyUNameIdx, keepObj);
      }
      if (allDataScope != null) {
        allDataScope.put(keepObj.getPKey(), keepObj);
      }
    } else {
      keepObj = obj;
      keepObj.setIsNew(false);
      // Attach new object to PKey, all, alternate, and duplicate indexes
      members.put(keepObj.getPKey(), keepObj);
      if (allDataScope != null) {
        allDataScope.put(keepObj.getPKey(), keepObj);
      }

      if (indexByUNameIdx != null) {
        CFBamDataScopeByUNameIdxKey keyUNameIdx =
            ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newUNameIdxKey();
        keyUNameIdx.setRequiredName(keepObj.getRequiredName());
        indexByUNameIdx.put(keyUNameIdx, keepObj);
      }
    }
    return (keepObj);
  }
 public ICFBamClearTopDepObj createClearTopDep(ICFBamClearTopDepObj Obj) {
   ICFBamClearTopDepObj obj = Obj;
   CFBamClearTopDepBuff buff = obj.getClearTopDepBuff();
   schema
       .getBackingStore()
       .getTableClearTopDep()
       .createClearTopDep(schema.getAuthorization(), buff);
   obj.copyBuffToPKey();
   if (obj.getPKey().getClassCode().equals("CLRT")) {
     obj = (ICFBamClearTopDepObj) (obj.realize());
   }
   return (obj);
 }
 public ICFBamClearTopDepObj readClearTopDepByIdIdx(long TenantId, long Id, boolean forceRead) {
   CFBamScopePKey pkey = schema.getBackingStore().getFactoryScope().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredId(Id);
   ICFBamClearTopDepObj obj = readClearTopDep(pkey, forceRead);
   return (obj);
 }
 public ICFBamDataScopeObj readDataScopeByIdIdx(short Id, boolean forceRead) {
   CFBamDataScopePKey pkey =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey();
   pkey.setRequiredId(Id);
   ICFBamDataScopeObj obj = readDataScope(pkey, forceRead);
   return (obj);
 }
 public void deleteClearTopDepByIdIdx(long TenantId, long Id) {
   CFBamScopePKey pkey = schema.getBackingStore().getFactoryScope().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredId(Id);
   ICFBamScopeObj obj = readClearTopDep(pkey);
   if (obj != null) {
     ICFBamClearTopDepEditObj editObj = (ICFBamClearTopDepEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFBamClearTopDepEditObj) obj.beginEdit();
       if (editObj != null) {
         editStarted = true;
       } else {
         editStarted = false;
       }
     } else {
       editStarted = false;
     }
     if (editObj != null) {
       editObj.delete();
       if (editStarted) {
         editObj.endEdit();
       }
     }
     obj.forget(true);
   }
 }
 public void deleteDataScopeByIdIdx(short Id) {
   CFBamDataScopePKey pkey =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey();
   pkey.setRequiredId(Id);
   ICFBamDataScopeObj obj = readDataScope(pkey);
   if (obj != null) {
     ICFBamDataScopeEditObj editObj = (ICFBamDataScopeEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFBamDataScopeEditObj) obj.beginEdit();
       if (editObj != null) {
         editStarted = true;
       } else {
         editStarted = false;
       }
     } else {
       editStarted = false;
     }
     if (editObj != null) {
       editObj.delete();
       if (editStarted) {
         editObj.endEdit();
       }
     }
     obj.forget(true);
   }
 }
  public void forgetClearTopDepByContTblIdx(long TenantId, long ContTableId) {
    if (indexByContTblIdx == null) {
      return;
    }
    CFBamClearTopDepByContTblIdxKey key =
        schema.getBackingStore().getFactoryClearTopDep().newContTblIdxKey();
    key.setRequiredTenantId(TenantId);
    key.setRequiredContTableId(ContTableId);
    if (indexByContTblIdx.containsKey(key)) {
      Map<CFBamScopePKey, ICFBamClearTopDepObj> mapContTblIdx = indexByContTblIdx.get(key);
      if (mapContTblIdx != null) {
        List<ICFBamClearTopDepObj> toForget = new LinkedList<ICFBamClearTopDepObj>();
        ICFBamClearTopDepObj cur = null;
        Iterator<ICFBamClearTopDepObj> iter = mapContTblIdx.values().iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          toForget.add(cur);
        }
        iter = toForget.iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          cur.forget(true);
        }
      }

      indexByContTblIdx.remove(key);
    }
  }
 public CFBamDataScopeBuff getBuff() {
   if (buff == null) {
     if (isNew) {
       buff = ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newBuff();
     } else {
       // Read the data buff via the backing store
       buff =
           ((ICFBamSchema) schema.getBackingStore())
               .getTableDataScope()
               .readDerivedByIdIdx(schema.getAuthorization(), getPKey().getRequiredId());
       if (buff != null) {
         copyBuffToPKey();
       }
     }
   }
   return (buff);
 }
 public ICFBamDataScopeObj lockDataScope(CFBamDataScopePKey pkey) {
   ICFBamDataScopeObj locked = null;
   CFBamDataScopeBuff lockBuff =
       ((ICFBamSchema) schema.getBackingStore())
           .getTableDataScope()
           .lockDerived(schema.getAuthorization(), pkey);
   if (lockBuff != null) {
     locked = schema.getDataScopeTableObj().newInstance();
     locked.setPKey(((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey());
     locked.setBuff(lockBuff);
     locked = (ICFBamDataScopeObj) locked.realize();
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newCollisionDetectedException(getClass(), "lockDataScope", pkey);
   }
   return (locked);
 }
 public ICFBamClearTopDepObj lockClearTopDep(CFBamScopePKey pkey) {
   ICFBamClearTopDepObj locked = null;
   CFBamClearTopDepBuff lockBuff =
       schema.getBackingStore().getTableClearTopDep().lockDerived(schema.getAuthorization(), pkey);
   if (lockBuff != null) {
     locked =
         (ICFBamClearTopDepObj)
             schema.getScopeTableObj().constructByClassCode(lockBuff.getClassCode());
     locked.setPKey(schema.getBackingStore().getFactoryScope().newPKey());
     locked.setBuff(lockBuff);
     locked = (ICFBamClearTopDepObj) locked.realize();
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newCollisionDetectedException(getClass(), "lockClearTopDep", pkey);
   }
   return (locked);
 }
 public void loadData(boolean forceReload) {
   ICFBamSchemaObj schemaObj = swingSchema.getSchema();
   if ((listOfAccessFrequency == null) || forceReload) {
     arrayOfAccessFrequency = null;
     listOfAccessFrequency =
         schemaObj.getAccessFrequencyTableObj().readAllAccessFrequency(swingIsInitializing);
     if (listOfAccessFrequency != null) {
       Object objArray[] = listOfAccessFrequency.toArray();
       if (objArray != null) {
         int len = objArray.length;
         arrayOfAccessFrequency = new ICFBamAccessFrequencyObj[len];
         for (int i = 0; i < len; i++) {
           arrayOfAccessFrequency[i] = (ICFBamAccessFrequencyObj) objArray[i];
         }
         Arrays.sort(arrayOfAccessFrequency, compareAccessFrequencyByQualName);
       }
     }
   }
 }
 public void deleteDataScopeByUNameIdx(String Name) {
   if (indexByUNameIdx == null) {
     indexByUNameIdx = new HashMap<CFBamDataScopeByUNameIdxKey, ICFBamDataScopeObj>();
   }
   CFBamDataScopeByUNameIdxKey key =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newUNameIdxKey();
   key.setRequiredName(Name);
   ICFBamDataScopeObj obj = null;
   if (indexByUNameIdx.containsKey(key)) {
     obj = indexByUNameIdx.get(key);
     ((ICFBamSchema) schema.getBackingStore())
         .getTableDataScope()
         .deleteDataScopeByUNameIdx(schema.getAuthorization(), Name);
     obj.forget(true);
   } else {
     ((ICFBamSchema) schema.getBackingStore())
         .getTableDataScope()
         .deleteDataScopeByUNameIdx(schema.getAuthorization(), Name);
   }
 }
 public ICFBamDataScopeObj readDataScope(CFBamDataScopePKey pkey, boolean forceRead) {
   ICFBamDataScopeObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFBamDataScopeBuff readBuff =
         ((ICFBamSchema) schema.getBackingStore())
             .getTableDataScope()
             .readDerivedByIdIdx(schema.getAuthorization(), pkey.getRequiredId());
     if (readBuff != null) {
       obj = schema.getDataScopeTableObj().newInstance();
       obj.setPKey(((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFBamDataScopeObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }
 public ICFBamDataScopeObj readDataScopeByUNameIdx(String Name, boolean forceRead) {
   if (indexByUNameIdx == null) {
     indexByUNameIdx = new HashMap<CFBamDataScopeByUNameIdxKey, ICFBamDataScopeObj>();
   }
   CFBamDataScopeByUNameIdxKey key =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newUNameIdxKey();
   key.setRequiredName(Name);
   ICFBamDataScopeObj obj = null;
   if ((!forceRead) && indexByUNameIdx.containsKey(key)) {
     obj = indexByUNameIdx.get(key);
   } else {
     CFBamDataScopeBuff buff =
         ((ICFBamSchema) schema.getBackingStore())
             .getTableDataScope()
             .readDerivedByUNameIdx(schema.getAuthorization(), Name);
     if (buff != null) {
       obj = schema.getDataScopeTableObj().newInstance();
       obj.setPKey(((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey());
       obj.setBuff(buff);
       obj = (ICFBamDataScopeObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       indexByUNameIdx.put(key, null);
     }
   }
   return (obj);
 }
 public ICFBamClearTopDepObj readClearTopDepByUNameIdx(
     long TenantId, long ContTableId, String Name, boolean forceRead) {
   if (indexByUNameIdx == null) {
     indexByUNameIdx = new HashMap<CFBamClearTopDepByUNameIdxKey, ICFBamClearTopDepObj>();
   }
   CFBamClearTopDepByUNameIdxKey key =
       schema.getBackingStore().getFactoryClearTopDep().newUNameIdxKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredContTableId(ContTableId);
   key.setRequiredName(Name);
   ICFBamClearTopDepObj obj = null;
   if ((!forceRead) && indexByUNameIdx.containsKey(key)) {
     obj = indexByUNameIdx.get(key);
   } else {
     CFBamClearTopDepBuff buff =
         schema
             .getBackingStore()
             .getTableClearTopDep()
             .readDerivedByUNameIdx(schema.getAuthorization(), TenantId, ContTableId, Name);
     if (buff != null) {
       obj =
           (ICFBamClearTopDepObj)
               schema.getScopeTableObj().constructByClassCode(buff.getClassCode());
       obj.setPKey(schema.getBackingStore().getFactoryScope().newPKey());
       obj.setBuff(buff);
       obj = (ICFBamClearTopDepObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       indexByUNameIdx.put(key, null);
     }
   }
   return (obj);
 }
  public void forgetDomain(ICFInternetDomainObj Obj, boolean forgetSubObjects) {
    ICFInternetDomainObj obj = Obj;
    CFInternetDomainBasePKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFInternetDomainObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByTenantIdx != null) {
        CFInternetDomainBaseByTenantIdxKey keyTenantIdx =
            ((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newTenantIdxKey();
        keyTenantIdx.setRequiredTenantId(keepObj.getRequiredTenantId());
        Map<CFInternetDomainBasePKey, ICFInternetDomainObj> mapTenantIdx =
            indexByTenantIdx.get(keyTenantIdx);
        if (mapTenantIdx != null) {
          indexByTenantIdx.remove(keyTenantIdx);
        }
      }

      if (indexBySubDomIdx != null) {
        CFInternetDomainBySubDomIdxKey keySubDomIdx =
            ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newSubDomIdxKey();
        keySubDomIdx.setRequiredTenantId(keepObj.getRequiredTenantId());
        keySubDomIdx.setRequiredSubDomainOfId(keepObj.getRequiredSubDomainOfId());
        Map<CFInternetDomainBasePKey, ICFInternetDomainObj> mapSubDomIdx =
            indexBySubDomIdx.get(keySubDomIdx);
        if (mapSubDomIdx != null) {
          mapSubDomIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByNameIdx != null) {
        CFInternetDomainByNameIdxKey keyNameIdx =
            ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newNameIdxKey();
        keyNameIdx.setRequiredTenantId(keepObj.getRequiredTenantId());
        keyNameIdx.setRequiredSubDomainOfId(keepObj.getRequiredSubDomainOfId());
        keyNameIdx.setRequiredName(keepObj.getRequiredName());
        indexByNameIdx.remove(keyNameIdx);
      }

      if (allDomain != null) {
        allDomain.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {
        ((ICFInternetSchemaObj) schema)
            .getTopProjectTableObj()
            .forgetTopProjectByDomainIdx(keepObj.getRequiredTenantId(), keepObj.getRequiredId());
      }
    }
    ((ICFBamSchemaObj) schema).getDomainBaseTableObj().forgetDomainBase(obj);
  }
 public void forgetClearTopDepByIdIdx(long TenantId, long Id) {
   if (members == null) {
     return;
   }
   CFBamScopePKey key = schema.getBackingStore().getFactoryScope().newPKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredId(Id);
   if (members.containsKey(key)) {
     ICFBamClearTopDepObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public void forgetDataScopeByIdIdx(short Id) {
   if (members == null) {
     return;
   }
   CFBamDataScopePKey key =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey();
   key.setRequiredId(Id);
   if (members.containsKey(key)) {
     ICFBamDataScopeObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public void actionPerformed(ActionEvent e) {
   final String S_ProcName = "actionPerformed";
   Container cont;
   JDesktopPane desktop;
   ICFBamSchemaObj schemaObj = swingSchema.getSchema();
   ICFInternetDomainBaseObj focus = getSwingFocusAsDomainBase();
   ICFInternetDomainBaseEditObj editObj = (ICFInternetDomainBaseEditObj) focus.getEdit();
   if (editObj != null) {
     focus = editObj;
   }
   ICFBamTenantObj referencedObj =
       (ICFBamTenantObj) focus.getRequiredOwnerTenant(swingIsInitializing);
   java.util.List<ICFSecurityTenantObj> listOfTenant = null;
   CFSecurityAuthorization auth = schemaObj.getAuthorization();
   long containingClusterId = auth.getSecClusterId();
   listOfTenant = schemaObj.getTenantTableObj().readTenantByClusterIdx(containingClusterId);
   if (listOfTenant == null) {
     throw CFLib.getDefaultExceptionFactory()
         .newNullArgumentException(getClass(), S_ProcName, 0, "listOfTenant");
   }
   Collection<ICFSecurityTenantObj> cltn = listOfTenant;
   JInternalFrame frame =
       swingSchema
           .getTenantFactory()
           .newPickerJInternalFrame(referencedObj, null, cltn, new CallbackTenantChosen());
   ((ICFBamSwingTenantJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View);
   cont = getParent();
   while ((cont != null) && (!(cont instanceof JInternalFrame))) {
     cont = cont.getParent();
   }
   if (cont != null) {
     JInternalFrame myInternalFrame = (JInternalFrame) cont;
     myInternalFrame.getDesktopPane().add(frame);
     frame.setVisible(true);
     frame.show();
   }
 }
 public void deleteClearTopDepByUNameIdx(long TenantId, long ContTableId, String Name) {
   if (indexByUNameIdx == null) {
     indexByUNameIdx = new HashMap<CFBamClearTopDepByUNameIdxKey, ICFBamClearTopDepObj>();
   }
   CFBamClearTopDepByUNameIdxKey key =
       schema.getBackingStore().getFactoryClearTopDep().newUNameIdxKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredContTableId(ContTableId);
   key.setRequiredName(Name);
   ICFBamClearTopDepObj obj = null;
   if (indexByUNameIdx.containsKey(key)) {
     obj = indexByUNameIdx.get(key);
     schema
         .getBackingStore()
         .getTableClearTopDep()
         .deleteClearTopDepByUNameIdx(schema.getAuthorization(), TenantId, ContTableId, Name);
     obj.forget(true);
   } else {
     schema
         .getBackingStore()
         .getTableClearTopDep()
         .deleteClearTopDepByUNameIdx(schema.getAuthorization(), TenantId, ContTableId, Name);
   }
 }
 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);
 }