public void deleteDomainBySubDomIdx(long TenantId, long SubDomainOfId) {
   CFInternetDomainBySubDomIdxKey key =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newSubDomIdxKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredSubDomainOfId(SubDomainOfId);
   if (indexBySubDomIdx == null) {
     indexBySubDomIdx =
         new HashMap<
             CFInternetDomainBySubDomIdxKey,
             Map<CFInternetDomainBasePKey, ICFInternetDomainObj>>();
   }
   if (indexBySubDomIdx.containsKey(key)) {
     Map<CFInternetDomainBasePKey, ICFInternetDomainObj> dict = indexBySubDomIdx.get(key);
     ((ICFBamSchema) schema.getBackingStore())
         .getTableDomain()
         .deleteDomainBySubDomIdx(schema.getAuthorization(), TenantId, SubDomainOfId);
     Iterator<ICFInternetDomainObj> iter = dict.values().iterator();
     ICFInternetDomainObj obj;
     List<ICFInternetDomainObj> toForget = new LinkedList<ICFInternetDomainObj>();
     while (iter.hasNext()) {
       obj = iter.next();
       toForget.add(obj);
     }
     iter = toForget.iterator();
     while (iter.hasNext()) {
       obj = iter.next();
       obj.forget(true);
     }
     indexBySubDomIdx.remove(key);
   } else {
     ((ICFBamSchema) schema.getBackingStore())
         .getTableDomain()
         .deleteDomainBySubDomIdx(schema.getAuthorization(), TenantId, SubDomainOfId);
   }
 }
 public void deleteDomainByIdIdx(long TenantId, long Id) {
   CFInternetDomainBasePKey pkey =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredId(Id);
   ICFInternetDomainObj obj = readDomain(pkey);
   if (obj != null) {
     ICFInternetDomainEditObj editObj = (ICFInternetDomainEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFInternetDomainEditObj) 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 deleteDomain(ICFInternetDomainObj Obj) {
   ICFInternetDomainObj obj = Obj;
   ((ICFBamSchema) schema.getBackingStore())
       .getTableDomain()
       .deleteDomain(schema.getAuthorization(), obj.getDomainBuff());
   obj.forget(true);
 }
  public void forgetDomainBySubDomIdx(long TenantId, long SubDomainOfId) {
    if (indexBySubDomIdx == null) {
      return;
    }
    CFInternetDomainBySubDomIdxKey key =
        ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newSubDomIdxKey();
    key.setRequiredTenantId(TenantId);
    key.setRequiredSubDomainOfId(SubDomainOfId);
    if (indexBySubDomIdx.containsKey(key)) {
      Map<CFInternetDomainBasePKey, ICFInternetDomainObj> mapSubDomIdx = indexBySubDomIdx.get(key);
      if (mapSubDomIdx != null) {
        List<ICFInternetDomainObj> toForget = new LinkedList<ICFInternetDomainObj>();
        ICFInternetDomainObj cur = null;
        Iterator<ICFInternetDomainObj> iter = mapSubDomIdx.values().iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          toForget.add(cur);
        }
        iter = toForget.iterator();
        while (iter.hasNext()) {
          cur = iter.next();
          cur.forget(true);
        }
      }

      indexBySubDomIdx.remove(key);
    }
  }
 public void forgetDomainByIdIdx(long TenantId, long Id) {
   if (members == null) {
     return;
   }
   CFInternetDomainBasePKey key =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newPKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredId(Id);
   if (members.containsKey(key)) {
     ICFInternetDomainObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
  public void forgetDomainByNameIdx(long TenantId, long SubDomainOfId, String Name) {
    if (indexByNameIdx == null) {
      return;
    }
    CFInternetDomainByNameIdxKey key =
        ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newNameIdxKey();
    key.setRequiredTenantId(TenantId);
    key.setRequiredSubDomainOfId(SubDomainOfId);
    key.setRequiredName(Name);
    if (indexByNameIdx.containsKey(key)) {
      ICFInternetDomainObj probed = indexByNameIdx.get(key);
      if (probed != null) {
        probed.forget(true);
      }

      indexByNameIdx.remove(key);
    }
  }
 public void deleteDomainByNameIdx(long TenantId, long SubDomainOfId, String Name) {
   if (indexByNameIdx == null) {
     indexByNameIdx = new HashMap<CFInternetDomainByNameIdxKey, ICFInternetDomainObj>();
   }
   CFInternetDomainByNameIdxKey key =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDomain().newNameIdxKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredSubDomainOfId(SubDomainOfId);
   key.setRequiredName(Name);
   ICFInternetDomainObj obj = null;
   if (indexByNameIdx.containsKey(key)) {
     obj = indexByNameIdx.get(key);
     ((ICFBamSchema) schema.getBackingStore())
         .getTableDomain()
         .deleteDomainByNameIdx(schema.getAuthorization(), TenantId, SubDomainOfId, Name);
     obj.forget(true);
   } else {
     ((ICFBamSchema) schema.getBackingStore())
         .getTableDomain()
         .deleteDomainByNameIdx(schema.getAuthorization(), TenantId, SubDomainOfId, Name);
   }
 }