public void deleteSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) { CFGenKbSecGroupIncludePKey pkey = schema.getBackingStore().getFactorySecGroupInclude().newPKey(); pkey.setRequiredClusterId(ClusterId); pkey.setRequiredSecGroupIncludeId(SecGroupIncludeId); ICFGenKbSecGroupIncludeObj obj = readSecGroupInclude(pkey); if (obj != null) { ICFGenKbSecGroupIncludeEditObj editObj = (ICFGenKbSecGroupIncludeEditObj) obj.getEdit(); boolean editStarted; if (editObj == null) { editObj = (ICFGenKbSecGroupIncludeEditObj) 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 ICFGenKbSecGroupIncludeObj readSecGroupIncludeByIdIdx( long ClusterId, long SecGroupIncludeId, boolean forceRead) { CFGenKbSecGroupIncludePKey pkey = schema.getBackingStore().getFactorySecGroupInclude().newPKey(); pkey.setRequiredClusterId(ClusterId); pkey.setRequiredSecGroupIncludeId(SecGroupIncludeId); ICFGenKbSecGroupIncludeObj obj = readSecGroupInclude(pkey, forceRead); return (obj); }
public void forgetSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) { if (members == null) { return; } CFGenKbSecGroupIncludePKey key = schema.getBackingStore().getFactorySecGroupInclude().newPKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecGroupIncludeId(SecGroupIncludeId); if (members.containsKey(key)) { ICFGenKbSecGroupIncludeObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }