public static String formatSecGroupPKeyAttributes(String separator, CFSecuritySecGroupPKey pkey) { String retval = CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", pkey.getRequiredClusterId()) + CFLibXmlUtil.formatRequiredInt32( separator, "SecGroupId", pkey.getRequiredSecGroupId()); return (retval); }
public ICFSecuritySecGroupObj readSecGroup(CFSecuritySecGroupPKey pkey, boolean forceRead) { ICFSecuritySecGroupObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecuritySecGroupBuff readBuff = ((ICFSecuritySchema) schema.getBackingStore()) .getTableSecGroup() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredClusterId(), pkey.getRequiredSecGroupId()); if (readBuff != null) { obj = schema.getSecGroupTableObj().newInstance(); obj.setPKey(((ICFSecuritySchema) schema.getBackingStore()).getFactorySecGroup().newPKey()); obj.setBuff(readBuff); obj = (ICFSecuritySecGroupObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }