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 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 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); } } }