Bug 182061 Data engine changes to support result set sharing
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/QueryResultIDUtil.java
}
	
	/**
	 * @param _1partQueryResultID
	 * @param _2partQueryResultID
	 * @return
	 */
	public static String getRealStreamID( String _1partQueryResultID,
			String _2partQueryResultID )
	{
		if ( _1partQueryResultID == null )
			return _2partQueryResultID;
		else if ( _2partQueryResultID == null )
			return _1partQueryResultID;
		else
			return _1partQueryResultID
					+ STREAM_ID_SEPARATOR + _2partQueryResultID;
	}
	
	/**
	 * @param subQueryName
	 * @param subQueryIndex
	 * @return
	 */
	public static String buildSubQueryID( String subQueryName, int subQueryIndex )
	{
		return subQueryName + SUBQUERY_ID_SEPARATOR + subQueryIndex;
	}
}