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