public void setRequiredContainerGroup(ICFSecuritySecGroupObj value) { if (buff == null) { getSecGroupFormBuff(); } requiredOwnerCluster = null; requiredContainerGroup = null; if (value != null) { getPKey().setRequiredClusterId(value.getRequiredClusterId()); getSecGroupFormBuff().setRequiredClusterId(value.getRequiredClusterId()); getSecGroupFormBuff().setRequiredSecGroupId(value.getRequiredSecGroupId()); } requiredContainerGroup = value; }
public ICFSecuritySecGroupObj getRequiredContainerGroup(boolean forceRead) { if (forceRead || (requiredContainerGroup == null)) { boolean anyMissing = false; if (!anyMissing) { ICFSecuritySecGroupObj obj = ((ICFAsteriskSchemaObj) getOrigAsSecGroupForm().getSchema()) .getSecGroupTableObj() .readSecGroupByIdIdx( getPKey().getRequiredClusterId(), getSecGroupFormBuff().getRequiredSecGroupId()); requiredContainerGroup = obj; if (obj != null) { getSecGroupFormBuff().setRequiredClusterId(obj.getRequiredClusterId()); getSecGroupFormBuff().setRequiredSecGroupId(obj.getRequiredSecGroupId()); requiredContainerGroup = obj; } } } return (requiredContainerGroup); }