User Guide

Chapter 18: Building Custom CFAPI Tags 295
pRequest->ReThrowException( e ) ;
}
// Catch ALL other exceptions and throw them as
// Cold Fusion exceptions (DO NOT REMOVE! --
// this prevents the server from crashing in
// case of an unexpected exception)
catch( ... )
{
pRequest->ThrowException(
"Error occurred in tag CFX_FOO2",
"Unexpected error occurred while processing tag." ) ;
}
}
CCFXQuery Class
Abstract class that represents a query used or created by a ColdFusion Extension
(CFX). Queries contain 1 or more columns of data that extend over a varying number of
rows.
Class members
virtual int AddRow()
CCFXQuery::AddRow adds a new row to the query.
virtual CCFXStringSet* GetColumns
CCFXQuery::GetColumns retrieves a list of the query’s column names.
virtual LPCSTR GetData( int iRow, int iColumn )
CCFXQuery::GetData retrieves a data element from a row and column of the
query.
virtual LPCSTR GetName()
CCFXQuery::GetName retrieves the name of the query.
virtual int GetRowCount()
CCFXQuery::GetRowCount retrieves the number of rows in the query.
virtual void SetData( int iRow, int iColumn, LPCSTR lpszData )
CCFXQuery::SetData sets a data element within a row and column of the query.
virtual void SetQueryString( LPCSTR lpszQuery )
CCFXQuery::SetQueryString sets the query string that will displayed along with
query debug output.
virtual void SetTotalTime( DWORD dwMilliseconds )
CCFXQuery::SetTotalTime sets the total time that was required to process the
query (used for debug output).