public void setRequiredOwnerTenant(ICFSecurityTenantObj value) {
   if (buff == null) {
     getAttachmentDataBuff();
   }
   requiredOwnerTenant = null;
   requiredContainerAttachment = null;
   if (value != null) {
     getPKey().setRequiredTenantId(value.getRequiredId());
     getAttachmentDataBuff().setRequiredTenantId(value.getRequiredId());
   }
   requiredOwnerTenant = value;
 }
  public void setRequiredOwnerCTenant(ICFSecurityTenantObj value) {
    if (buff == null) {
      getSchemaDefBuff();
    }
    requiredContainerParentDomain = null;
    requiredOwnerCTenant = null;
    if (value != null) {
      getPKey().setRequiredTenantId(value.getRequiredId());
      getSchemaDefBuff().setRequiredTenantId(value.getRequiredId());
    }
    requiredOwnerCTenant = value;

    super.setRequiredOwnerTenant(value);
  }
  public void forgetTenant(ICFSecurityTenantObj Obj, boolean forgetSubObjects) {
    ICFSecurityTenantObj obj = Obj;
    CFSecurityTenantPKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFSecurityTenantObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByClusterIdx != null) {
        CFSecurityTenantByClusterIdxKey keyClusterIdx =
            ((ICFSecuritySchema) schema.getBackingStore()).getFactoryTenant().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecurityTenantPKey, ICFSecurityTenantObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByUNameIdx != null) {
        CFSecurityTenantByUNameIdxKey keyUNameIdx =
            ((ICFSecuritySchema) schema.getBackingStore()).getFactoryTenant().newUNameIdxKey();
        keyUNameIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUNameIdx.setRequiredTenantName(keepObj.getRequiredTenantName());
        indexByUNameIdx.remove(keyUNameIdx);
      }

      if (allTenant != null) {
        allTenant.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {
        ((ICFSecuritySchemaObj) schema)
            .getTSecGroupTableObj()
            .forgetTSecGroupByTenantIdx(keepObj.getRequiredId());
      }
    }
  }