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 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 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 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 void deleteDataScopeByIdIdx(
     CFSecurityAuthorization Authorization, CFBamDataScopePKey argKey) {
   deleteDataScopeByIdIdx(Authorization, argKey.getRequiredId());
 }