Adobe COLDFUSION 9 Manual page 233

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Building Blocks of ColdFusion Applications
Method
getIntAttribute
getQuery
getSetting
For detailed reference information on each of these interfaces, see the CFML Reference.
Response object
The Response object is passed to the processRequest method of the CustomTag interface. The following table lists the
methods of the Response object for writing output, generating queries, and setting variables within the calling page:
Method
write
setVariable
addQuery
writeDebug
For detailed reference information on each of these interfaces, see the CFML Reference.
Query object
The Query object provides an interface for working with ColdFusion queries. The following table lists the methods of
the Query object for retrieving name, row count, and column names and methods for getting and setting data
elements:
Method
getName
getRowCount
getColumnIndex
getColumns
getData
addRow
setData
For detailed reference information on each of these interfaces, see CFML Reference.
Life cycle of Java CFX tags
A new instance of the Java CFX object is created for each invocation of the Java CFX tag. As a result, it is safe to store
per-request instance data within the members of your
to all instances of your
CustomTag
safe.
Description
Retrieves the value of the passed attribute as an integer.
Retrieves the query that was passed to this tag, if any.
Retrieves the value of a global custom tag setting.
Description
Outputs text to the calling page.
Sets a variable in the calling page.
Adds a query to the calling page.
Outputs text to the debug stream.
Description
Retrieves the name of the query.
Retrieves the number of rows in the query.
Retrieves the index of a query column.
Retrieves the names of the query columns.
Retrieves a data element from the query.
Adds a new row to the query.
Sets a data element within the query.
CustomTag
, use static data members. If you do so, ensure that all accesses to the data are thread-
Last updated 8/5/2010
object. To store data and objects that are accessible
228

Advertisement

Table of Contents
loading

Table of Contents