Chapter 18: Building Custom CFAPI Tags
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(
}
}
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
virtual CCFXStringSet* GetColumns
CCFXQuery::GetColumns
virtual LPCSTR GetData( int iRow, int iColumn )
CCFXQuery::GetData
query.
virtual LPCSTR GetName()
CCFXQuery::GetName
virtual int GetRowCount()
CCFXQuery::GetRowCount
virtual void SetData( int iRow, int iColumn, LPCSTR lpszData )
CCFXQuery::SetData
virtual void SetQueryString( LPCSTR lpszQuery )
CCFXQuery::SetQueryString
query debug output.
virtual void SetTotalTime( DWORD dwMilliseconds )
CCFXQuery::SetTotalTime
query (used for debug output).
"Error occurred in tag CFX_FOO2",
"Unexpected error occurred while processing tag." ) ;
adds a new row to the query.
retrieves a list of the query's column names.
retrieves a data element from a row and column of the
retrieves the name of the query.
retrieves the number of rows in the query.
sets a data element within a row and column of the query.
sets the total time that was required to process the
sets the query string that will displayed along with
295