Bug 182061 Data engine changes to support result set sharing
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
* 
	 * @param srcSubQueryDefn
	 * @param destSubQueryDefn
	 */
	private static void copySortList(SubqueryDefinition srcSubQueryDefn,
			SubqueryDefinition destSubQueryDefn) 
	{
		List sortList = srcSubQueryDefn.getSorts( );
		for( int i = 0; i < sortList.size( ); i++ )
		{
			destSubQueryDefn.addSort( (SortDefinition) sortList.get( i ) );
		}
	}
	
	/**
	 * 
	 * @param srcSubQueryDefn
	 * @param destSubQueryDefn
	 */
	private static void copyFilterList(SubqueryDefinition srcSubQueryDefn,
			SubqueryDefinition destSubQueryDefn) 
	{
		List filterList = srcSubQueryDefn.getFilters( );
		for( int i = 0; i < filterList.size( ); i++ )
		{
			destSubQueryDefn.addFilter( (IFilterDefinition) filterList.get( i ) );
		}
	}
	
}