query.getInputParamBindings( ) .addAll( createParamBindings( riHandle .paramBindingsIterator( ) ) );
ArrayList bindings = createParamBindings( riHandle .paramBindingsIterator( ) ); if(bindings.size()>0) { query.getInputParamBindings( ).addAll(bindings); IBaseTransform trans = getTransform(); if(trans!=null) { for(int i=0; i<bindings.size(); i++) { IInputParameterBinding binding = (IInputParameterBinding)bindings.get(i); trans.getRowExpressions().add(binding.getExpr()); } }  }
		protected BaseQueryDefinition createQuery( ReportItemDesign item )		{			DataSetHandle dsHandle = (DataSetHandle) ( (ReportItemHandle) item					.getHandle( ) ).getDataSet( );			if ( dsHandle != null )			{				ReportItemHandle riHandle = (ReportItemHandle) item.getHandle( );				QueryDefinition query = new QueryDefinition( getParentQuery( ) );				query.setDataSetName( dsHandle.getName( ) );				query.getInputParamBindings( )						.addAll(								createParamBindings( riHandle										.paramBindingsIterator( ) ) );				this.queries.add( query );				item.setQuery( query );				return query;			}			return null;		}