public void deleteMemoByIdIdx(long TenantId, long MemoId) {
   CFCrmMemoPKey pkey = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredMemoId(MemoId);
   ICFCrmMemoObj obj = readMemo(pkey);
   if (obj != null) {
     ICFCrmMemoEditObj editObj = (ICFCrmMemoEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFCrmMemoEditObj) 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 ICFCrmMemoObj readMemoByIdIdx(long TenantId, long MemoId, boolean forceRead) {
   CFCrmMemoPKey pkey = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newPKey();
   pkey.setRequiredTenantId(TenantId);
   pkey.setRequiredMemoId(MemoId);
   ICFCrmMemoObj obj = readMemo(pkey, forceRead);
   return (obj);
 }
 public void forgetMemoByIdIdx(long TenantId, long MemoId) {
   if (members == null) {
     return;
   }
   CFCrmMemoPKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newPKey();
   key.setRequiredTenantId(TenantId);
   key.setRequiredMemoId(MemoId);
   if (members.containsKey(key)) {
     ICFCrmMemoObj probed = members.get(key);
     if (probed != null) {
       probed.forget(true);
     }
   }
 }
 public ICFCrmMemoObj readMemo(CFCrmMemoPKey pkey, boolean forceRead) {
   ICFCrmMemoObj obj = null;
   if ((!forceRead) && members.containsKey(pkey)) {
     obj = members.get(pkey);
   } else {
     CFCrmMemoBuff readBuff =
         ((ICFAccSchema) schema.getBackingStore())
             .getTableMemo()
             .readDerivedByIdIdx(
                 schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredMemoId());
     if (readBuff != null) {
       obj = schema.getMemoTableObj().newInstance();
       obj.setPKey(((ICFAccSchema) schema.getBackingStore()).getFactoryMemo().newPKey());
       obj.setBuff(readBuff);
       obj = (ICFCrmMemoObj) obj.realize();
     } else if (schema.getCacheMisses()) {
       members.put(pkey, null);
     }
   }
   return (obj);
 }