Class MysqlSampleDao

Description

class MysqlSampleDao

This class defines a Data Access Object to be created by the corresponding MysqlDaoFactory and implements the SampleDao interface.

This class contains all MySQL specific code and SQL statements. The implementation details are hidden from the end user.

Located in /mysqlsampledao.class.php (line 22)

SampleDao
   |
   --MysqlSampleDao
Variable Summary
mixed $dsn
Method Summary
MysqlSampleDao __construct (mixed $dsn)
void DeleteSample ()
void FindSample ()
void GetData (mixed &$RecordSet)
void GetDataTO (mixed &$RecordSet)
void InsertSample ()
void SelectSampleRS ()
void SelectSampleTO ()
void UpdateSample ()
Variables
mixed $dsn (line 25)
  • access: private
mixed $MysqlSampleDao (line 24)
  • static:
  • access: private
Methods
Constructor __construct (line 34)

function __construct

This method is executed when an object is instantiated from this class. Preprocessing can be done here before the object is put into service.

  • access: public
MysqlSampleDao __construct (mixed $dsn)
DeleteSample (line 66)

function DeleteSample

This method retrieves a database connection object, starts a transaction, executes SQL delete statements and catches any exceptions thrown.

  • access: public
void DeleteSample ()

Redefinition of:
SampleDao::DeleteSample()
FindSample (line 85)

function FindSample

This method retrieves a database connection object, executes SQL select statements, parses recordsets and catches any exceptions thrown.

  • access: public
void FindSample ()

Redefinition of:
SampleDao::FindSample()
GetData (line 159)

function GetData

This method uses PEAR style data retrieval to retrieve arrays containing the current row. FetchRow() internally moves to the next record after returning the current row.

  • access: public
void GetData (mixed &$RecordSet)

Redefinition of:
SampleDao::GetData()
GetDataTO (line 180)

function GetDataTO

This method uses PEAR style data retrieval to retrieve the current row as an object. FetchNextObject() internally moves to the next row automatically.

  • access: public
void GetDataTO (mixed &$RecordSet)

Redefinition of:
SampleDao::GetDataTO()
InsertSample (line 46)

function InsertSample

This method retrieves a database connection object, starts a transaction, executes SQL insert statements and catches any exceptions thrown.

  • access: public
void InsertSample ()

Redefinition of:
SampleDao::InsertSample()
SelectSampleRS (line 124)

function SelectSampleRS

This method retrieves a database connection object, executes SQL select statements, parses recordsets and catches any exceptions thrown.

  • access: public
void SelectSampleRS ()

Redefinition of:
SampleDao::SelectSampleRS()
SelectSampleTO (line 141)

function SelectSampleTO

This method retrieves a database connection object, executes SQL select statements, parses recordsets and catches any exceptions thrown.

  • access: public
void SelectSampleTO ()

Redefinition of:
SampleDao::SelectSampleTO()
UpdateSample (line 105)

function UpdateSample

This method retrieves a database connection object, starts a transaction, executes SQL update statements and catches any exceptions thrown.

  • access: public
void UpdateSample ()

Redefinition of:
SampleDao::UpdateSample()

Inherited Methods

Inherited From SampleDao

SampleDao::DeleteSample()
SampleDao::FindSample()
SampleDao::GetData()
SampleDao::GetDataTO()
SampleDao::InsertSample()
SampleDao::SelectSampleRS()
SampleDao::SelectSampleTO()
SampleDao::UpdateSample()

Documentation generated on Thu, 9 Sep 2004 09:03:38 -0400 by phpDocumentor 1.3.0RC3