PixelLightAPI  .
Public Member Functions | Static Public Member Functions | Protected Member Functions
PLDatabase::DatabaseQuery Class Reference

Abstract database query base class. More...

#include <DatabaseQuery.h>

List of all members.

Public Member Functions

virtual PLDATABASE_API ~DatabaseQuery ()
 Destructor.
PLDATABASE_API DatabaseGetDatabase () const
 Returns the database this query is in.
virtual DatabaseQueryResultExecute (const PLCore::String &sSQL)=0
 Executes a given SQL statement.

Static Public Member Functions

static PLDATABASE_API bool IsSelect (const PLCore::String &sSQL)
 Returns whether the given SQL statement is a SELECT.

Protected Member Functions

PLDATABASE_API DatabaseQuery (Database &cParentDd)
 Constructor.

Detailed Description

Abstract database query base class.


Constructor & Destructor Documentation

virtual PLDATABASE_API PLDatabase::DatabaseQuery::~DatabaseQuery ( ) [virtual]

Destructor.

PLDATABASE_API PLDatabase::DatabaseQuery::DatabaseQuery ( Database cParentDd) [protected]

Constructor.

Parameters:
[in]cParentDdDatabase this query is in

Member Function Documentation

static PLDATABASE_API bool PLDatabase::DatabaseQuery::IsSelect ( const PLCore::String sSQL) [static]

Returns whether the given SQL statement is a SELECT.

Parameters:
[in]sSQLSQL statement to check
Returns:
'true' if the given SQL statement is a SELECT one, else 'false'

Returns the database this query is in.

Returns:
The database this query is in
virtual DatabaseQueryResult* PLDatabase::DatabaseQuery::Execute ( const PLCore::String sSQL) [pure virtual]

Executes a given SQL statement.

Parameters:
[in]sSQLSQL statement to execute
Returns:
A pointer to a newly created query result you have to delete by own or a null pointer if the SQL statement is not a select (ie: INSERT, UPDATE, etc.)

The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:17
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported