groupDefn[0].setKeyExpression( "row.col0" ); groupDefn[1].setKeyExpression( "row.col1" ); groupDefn[2].setKeyExpression( "row.col2" );
groupDefn[0].setKeyExpression( "row.GROUP_COL0" ); groupDefn[1].setKeyExpression( "row.GROUP_COL1" ); groupDefn[2].setKeyExpression( "row.GROUP_COL2" );
		protected IQueryDefinition getDefaultQueryDefn( String dataSetName ) 		{				// 2.1 GroupKey			GroupDefinition[] groupDefn = new GroupDefinition[]{					new GroupDefinition( "group1" ),					new GroupDefinition( "group2"),					new GroupDefinition( "group3")			};			groupDefn[0].setKeyExpression( "row.col0" );			groupDefn[1].setKeyExpression( "row.col1" );			groupDefn[2].setKeyExpression( "row.col2" );			// 2.2 SortKey			SortDefinition[] sortDefn = new SortDefinition[]{				new SortDefinition( )			};			sortDefn[0].setExpression( "row.col3" );//.setColumn("col3");			sortDefn[0].setSortDirection( ISortDefinition.SORT_ASC );			// 2.3: ExpressionKey			expressions = new BaseExpression[]{					new ScriptExpression( "row.col0", 0 ),					new ScriptExpression( "row.col1", 0 ),					new ScriptExpression( "row.col2", 0 ),					new ScriptExpression( "row.col3", 0 )			};			queryDefn = new QueryDefinition( null );			queryDefn.setDataSetName( dataSetName );			for ( int i = 0; i < groupDefn.length; i++ )				queryDefn.addGroup( groupDefn[i] );			for ( int i = 0; i < sortDefn.length; i++ )				queryDefn.addSort( sortDefn[i] );			for ( int i = 0; i < expressions.length; i++ )				queryDefn.addExpression( expressions[i], BaseTransform.ON_EACH_ROW );			return queryDefn;		}