public void deleteTSecGroupMemberByIdIdx(long TenantId, long TSecGroupMemberId) {
   CFSecurityTSecGroupMemberPKey pkey =
       ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredTSecGroupMemberId(TSecGroupMemberId);
   ICFSecurityTSecGroupMemberObj obj = readTSecGroupMember(pkey);
   if (obj != null) {
     ICFSecurityTSecGroupMemberEditObj editObj = (ICFSecurityTSecGroupMemberEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecurityTSecGroupMemberEditObj) 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);
   }
 }