FileDocCategorySizeDatePackage
QueryTag.javaAPI DocGlassfish v2 API3547Sat May 05 19:18:00 BST 2007org.apache.taglibs.standard.tag.rt.sql

QueryTag

public class QueryTag extends org.apache.taglibs.standard.tag.common.sql.QueryTagSupport
Subclass for the JSTL library with rtexprvalue support.
author
Hans Bergsten
author
Justyna Horwat

Fields Summary
Constructors Summary
public QueryTag()
Constructs a new QueryTag. As with TagSupport, subclasses should not provide other constructors and are expected to call the superclass constructor

        super();
    
Methods Summary
public voidsetDataSource(java.lang.Object dataSource)

	this.rawDataSource = dataSource;
	this.dataSourceSpecified = true;
    
public voidsetMaxRows(int maxRows)
Query result can be limited by specifying the maximum number of rows returned.

        this.maxRows = maxRows;
	this.maxRowsSpecified = true;
    
public voidsetSql(java.lang.String sql)
Setter method for the SQL statement to use for the query. The statement may contain parameter markers (question marks, ?). If so, the parameter values must be set using nested value elements.

	this.sql = sql;
    
public voidsetStartRow(int startRow)
The index of the first row returned can be specified using startRow.

        this.startRow = startRow;