public void setSwingDataCollection(Collection<ICFBamIndexObj> value) {
   final String S_ProcName = "setSwingDataCollection";
   swingDataCollection = value;
   if (swingDataCollection == null) {
     arrayOfIndex = new ICFBamIndexObj[0];
   } else {
     int len = value.size();
     arrayOfIndex = new ICFBamIndexObj[len];
     Iterator<ICFBamIndexObj> iter = swingDataCollection.iterator();
     int idx = 0;
     while (iter.hasNext() && (idx < len)) {
       arrayOfIndex[idx++] = iter.next();
     }
     if (idx < len) {
       throw CFLib.getDefaultExceptionFactory()
           .newRuntimeException(
               getClass(),
               S_ProcName,
               "Collection iterator did not fully populate the array copy");
     }
     if (iter.hasNext()) {
       throw CFLib.getDefaultExceptionFactory()
           .newRuntimeException(
               getClass(),
               S_ProcName,
               "Collection iterator had left over items when done populating array copy");
     }
     Arrays.sort(arrayOfIndex, compareIndexByQualName);
   }
   PickerTableModel tblDataModel = getDataModel();
   if (tblDataModel != null) {
     tblDataModel.fireTableDataChanged();
   }
 }
 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 List<ICFBamDataScopeObj> readAllDataScope(boolean forceRead) {
   final String S_ProcName = "readAllDataScope";
   if ((allDataScope == null) || forceRead) {
     Map<CFBamDataScopePKey, ICFBamDataScopeObj> map =
         new HashMap<CFBamDataScopePKey, ICFBamDataScopeObj>();
     allDataScope = map;
     CFBamDataScopeBuff[] buffList =
         ((ICFBamSchema) schema.getBackingStore())
             .getTableDataScope()
             .readAllDerived(schema.getAuthorization());
     CFBamDataScopeBuff buff;
     ICFBamDataScopeObj obj;
     for (int idx = 0; idx < buffList.length; idx++) {
       buff = buffList[idx];
       obj = newInstance();
       obj.setPKey(((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newPKey());
       obj.setBuff(buff);
       ICFBamDataScopeObj realized = (ICFBamDataScopeObj) obj.realize();
     }
   }
   Comparator<ICFBamDataScopeObj> cmp =
       new Comparator<ICFBamDataScopeObj>() {
         public int compare(ICFBamDataScopeObj lhs, ICFBamDataScopeObj rhs) {
           if (lhs == null) {
             if (rhs == null) {
               return (0);
             } else {
               return (-1);
             }
           } else if (rhs == null) {
             return (1);
           } else {
             CFBamDataScopePKey lhsPKey = lhs.getPKey();
             CFBamDataScopePKey rhsPKey = rhs.getPKey();
             int ret = lhsPKey.compareTo(rhsPKey);
             return (ret);
           }
         }
       };
   int len = allDataScope.size();
   ICFBamDataScopeObj arr[] = new ICFBamDataScopeObj[len];
   Iterator<ICFBamDataScopeObj> valIter = allDataScope.values().iterator();
   int idx = 0;
   while ((idx < len) && valIter.hasNext()) {
     arr[idx++] = valIter.next();
   }
   if (idx < len) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentUnderflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   } else if (valIter.hasNext()) {
     throw CFLib.getDefaultExceptionFactory()
         .newArgumentOverflowException(getClass(), S_ProcName, 0, "idx", idx, len);
   }
   Arrays.sort(arr, cmp);
   ArrayList<ICFBamDataScopeObj> arrayList = new ArrayList<ICFBamDataScopeObj>(len);
   for (idx = 0; idx < len; idx++) {
     arrayList.add(arr[idx]);
   }
   List<ICFBamDataScopeObj> sortedList = arrayList;
   return (sortedList);
 }