User Guide
312 Developing Web Applications with ColdFusion
response — Interface for generating response to request (output, variables,
queries, etc.)
Throws:
Exception — If an unexpected error occurs while processing the request.
Interface Query
public abstract interface Query
Interface to a query used or created by a CustomTag. A query contains tabular data
organized by named columns and rows
Method Detail
getName
public String getName()
Retrieves the name of the query.
The following example retrieves the name of the query and writes it back to the
user:
Query query = request.getQuery() ;
response.write( "The query name is: " + query.getName() ) ;
Method Summary
int addRow()
Adds a new row to the query.
int getColumnIndex(String name)
Retrieves the index of a column
given its name.
String[] getColumns()
Retrieves a list of the column
names contained in the query.
String getData(int iRow, int iCol)
Retrieves a data element from a
row and column of the query.
String getName()
Retrieves the name of the query.
int getRowCount()
Retrieves the number of rows in the
query.
void setData(int iRow, int iCol,
String data)
Sets a data element within a row
and column of the query.