Class PostgreSQLGenericQueryResult

Description

Implements interfaces:

The GenericQueryResult interface provides methods for accessing the results of a generic query. These results can be returned as if they were one of the other query types, or the resource links can be returned and accessed directly.

  • version: $Id: PostgreSQLGenericQueryResult.class.php,v 1.1 2007/09/14 13:57:08 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/DBHandler/PostgreSQL/PostgreSQLGenericQueryResult.class.php (line 26)


	
			
Variable Summary
mixed $_linkId
integer $_resourceId
Method Summary
PostgreSQLGenericQueryResult PostgreSQLGenericQueryResult (integer $resourceId, integer $linkId)
integer getNumberOfRows ()
integer getResourceId ()
object DeleteQueryResult returnAsDeleteQueryResult ()
object InsertQueryResult returnAsInsertQueryResult ()
object SelectQueryResult returnAsSelectQueryResult ()
object UpdateQueryResult returnAsUpdateQueryResult ()
Variables
mixed $_linkId (line 45)

The link identifier for the database connection.

The link identifier for the database connection.

  • access: private
integer $_resourceId (line 36)

The resource id for this SELECT query.

The resource id for this SELECT query.

  • var: The resource id for this SELECT query.
  • access: private
Methods
Constructor PostgreSQLGenericQueryResult (line 55)

Constructor

  • since: 7/2/04
  • access: public
PostgreSQLGenericQueryResult PostgreSQLGenericQueryResult (integer $resourceId, integer $linkId)
  • integer $resourceId: The resource id for this SELECT query.
  • integer $linkId: The link identifier for the database connection.
getNumberOfRows (line 75)

Returns the number of rows that the query processed.

Returns the number of rows that the query processed. For a SELECT query, this would be the total number of rows selected. For a DELETE, UPDATE, or INSERT query, this would be the number of rows that were affected.

  • return: Number of rows that were processed by the query.
integer getNumberOfRows ()
getResourceId (line 86)

Returns the resource id for this SELECT query.

Returns the resource id for this SELECT query. The resource id is returned by the PostgreSQL_query() function.

  • return: The resource id for this SELECT query.
  • access: public
integer getResourceId ()
returnAsDeleteQueryResult (line 133)

Returns the result of the query as a DeleteQueryResult.

  • since: 7/1/04
  • access: public
object DeleteQueryResult returnAsDeleteQueryResult ()
returnAsInsertQueryResult (line 109)

Returns the result of the query as an InsertQueryResult.

  • since: 7/1/04
  • access: public
object InsertQueryResult returnAsInsertQueryResult ()
returnAsSelectQueryResult (line 97)

Returns the result of the query as a SelectQueryResult.

  • since: 7/1/04
  • access: public
object SelectQueryResult returnAsSelectQueryResult ()
returnAsUpdateQueryResult (line 121)

Returns the result of the query as a UpdateQueryResult.

  • since: 7/1/04
  • access: public
object UpdateQueryResult returnAsUpdateQueryResult ()

Documentation generated on Wed, 19 Sep 2007 10:25:33 -0400 by phpDocumentor 1.3.0RC3