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