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 readSecGroupInclude( CFSecuritySecGroupIncludePKey pkey, boolean forceRead) { ICFSecuritySecGroupIncludeObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecuritySecGroupIncludeBuff readBuff = ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredClusterId(), pkey.getRequiredSecGroupIncludeId()); if (readBuff != null) { obj = schema.getSecGroupIncludeTableObj().newInstance(); obj.setPKey( ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey()); obj.setBuff(readBuff); obj = (ICFSecuritySecGroupIncludeObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }
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); } } }