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 ICFInternetDomainObj readDomainByIdIdx(long TenantId, long Id, boolean forceRead) {
   CFInternetDomainBasePKey pkey =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredId(Id);
   ICFInternetDomainObj obj = readDomain(pkey, forceRead);
   return (obj);
 }
 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 ICFInternetDomainObj readDomain(CFInternetDomainBasePKey pkey, boolean forceRead) {
   ICFInternetDomainObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFInternetDomainBuff readBuff =
         ((ICFBamSchema) schema.getBackingStore())
             .getTableDomain()
             .readDerivedByIdIdx(
                 schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredId());
     if (readBuff != null) {
       obj =
           (ICFInternetDomainObj)
               schema.getDomainBaseTableObj().constructByClassCode(readBuff.getClassCode());
       obj.setPKey(((ICFBamSchema) schema.getBackingStore()).getFactoryDomainBase().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFInternetDomainObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }
 public void deleteRealProjectByIdIdx(
     CFSecurityAuthorization Authorization, CFInternetDomainBasePKey argKey) {
   deleteRealProjectByIdIdx(Authorization, argKey.getRequiredTenantId(), argKey.getRequiredId());
 }