/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.data.engine.impl.document;

/**
 * 
 */
public class QueryResultInfo
{
	private String rootQueryResultID;
	private String parentQueryResultID;
	
	private String queryResultID;
	private String subQueryName;
	private int index;
	
	/**
	 * @param queryResultID
	 * @param subQueryName
	 * @param subQueryIndex
	 */
	public QueryResultInfo( String rootQueryResultID,
			String parentQueryResultID, String queryResultID,
			String subQueryName, int index )
	{
		this( queryResultID, subQueryName, index );
		this.rootQueryResultID = rootQueryResultID;
		this.parentQueryResultID = parentQueryResultID;
	}
	
	/**
	 * @param queryResultID
	 * @param subQueryName
	 * @param subQueryIndex
	 */
	public QueryResultInfo( String queryResultID, String subQueryName, int index )
	{
		this.queryResultID = queryResultID;
		this.subQueryName = subQueryName;
		this.index = index;
	}

	/**
	 * @return
	 */
	String getRootQueryResultID()
	{
		return this.rootQueryResultID;
	}
	
	/**
	 * @return
	 */
	String getParentQueryResultID()
	{
		return this.parentQueryResultID;
	}
	
	/**
	 * @return
	 */
	String getQueryResultID( )
	{
		return this.queryResultID;
	}

	/**
	 * @return
	 */
	String getSubQueryName( )
	{
		return this.subQueryName;
	}

	/**
	 * @return
	 */
	int getIndex( )
	{
		return this.index;
	}
	
}

@@ -583,17 +583,59 @@
 %0A/**%0A * 
+Wrap the ID infromation of a query result.
 %0A
-
  */%0Apubl
@@ -815,32 +815,251 @@
 t index;%0A%09%0A%09/**%0A
+%09 * The index parameter has different meaning in write/read. In writing, it%0A%09 * means the sub query index, but in reading, it means the parent row index.%0A%09 * %0A%09 * @param rootQueryResultID%0A%09 * @param parentQueryResultID%0A
 %09 * @param query
@@ -1098,33 +1098,25 @@
 %0A%09 * @param 
-subQueryI
+i
 ndex%0A%09 */%0A%09p

Add comments