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); } }
public ICFSecurityTSecGroupMemberObj readTSecGroupMember( CFSecurityTSecGroupMemberPKey pkey, boolean forceRead) { ICFSecurityTSecGroupMemberObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecurityTSecGroupMemberBuff readBuff = ((ICFBamSchema) schema.getBackingStore()) .getTableTSecGroupMember() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredTSecGroupMemberId()); if (readBuff != null) { obj = schema.getTSecGroupMemberTableObj().newInstance(); obj.setPKey( ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey()); obj.setBuff(readBuff); obj = (ICFSecurityTSecGroupMemberObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }
public ICFSecurityTSecGroupMemberObj readTSecGroupMemberByIdIdx( long TenantId, long TSecGroupMemberId, boolean forceRead) { CFSecurityTSecGroupMemberPKey pkey = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey(); pkey.setRequiredTenantId(TenantId); pkey.setRequiredTSecGroupMemberId(TSecGroupMemberId); ICFSecurityTSecGroupMemberObj obj = readTSecGroupMember(pkey, forceRead); return (obj); }
public void forgetTSecGroupMemberByIdIdx(long TenantId, long TSecGroupMemberId) { if (members == null) { return; } CFSecurityTSecGroupMemberPKey key = ((ICFBamSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupMemberId(TSecGroupMemberId); if (members.containsKey(key)) { ICFSecurityTSecGroupMemberObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }