creole.drivers.odbc
[ class tree: creole.drivers.odbc ] [ index: creole.drivers.odbc ] [ all elements ]

Class: ODBCConnection

Source Location: /creole/drivers/odbc/ODBCConnection.php

Class Overview

ConnectionCommon
   |
   --ODBCConnection

ODBC implementation of Connection.


Author(s):

Version:

  • $Revision: 1.2 $

Variables

Methods


Inherited Variables

Inherited Methods

Class: ConnectionCommon

ConnectionCommon::getAutoCommit()
Get auto-commit status.
ConnectionCommon::getDSN()
ConnectionCommon::getFlags()
ConnectionCommon::getResource()
ConnectionCommon::prepareCall()
Creates a CallableStatement object for calling database stored procedures.
ConnectionCommon::setAutoCommit()
Enable/disable automatic commits.
ConnectionCommon::__sleep()
This "magic" method is invoked upon serialize() and works in tandem with the __wakeup() method to ensure that your database connection is serializable.
ConnectionCommon::__wakeup()
This "magic" method is invoked upon unserialize().

Class Details

[line 33]
ODBC implementation of Connection.



Tags:

version:  $Revision: 1.2 $
author:  Dave Lawson <dlawson@masterytech.com>


[ Top ]


Class Variables

$adapter =  null

[line 39]

Implements driver-specific behavior



Tags:

access:  protected

Type:   ODBCAdapter


[ Top ]

$odbcresult =  null

[line 45]

Last ODBC result resource from executeQuery/executeUpdate. Used in getUpdateCount()



Tags:

access:  protected

Type:   ODBCResultResource


[ Top ]



Class Methods


destructor __destruct [line 129]

void __destruct( )

Shouldn't this be in ConnectionCommon.php?



Tags:

access:  public


[ Top ]

method applyLimit [line 213]

void applyLimit( mixed &$sql, mixed $offset, mixed $limit)



Tags:

access:  public
see:  Connection::applyLimit()


[ Top ]

method close [line 110]

void close( )



Tags:

access:  public
see:  Connection::close()


[ Top ]

method commit [line 276]

void commit( )



Tags:

access:  public
see:  Connection::commit()


[ Top ]

method connect [line 50]

void connect( mixed $dsninfo, [mixed $flags = 0])



Tags:

access:  public
see:  Connection::connect()


[ Top ]

method createResultSet [line 178]

ResultSet createResultSet( mixed $odbcresult, mixed $fetchmode)

Creates the appropriate ResultSet



Tags:

access:  public


[ Top ]

method createStatement [line 195]

void createStatement( )



Tags:

access:  public
see:  Connection::createStatement()


[ Top ]

method executeQuery [line 222]

void executeQuery( mixed $sql, [mixed $fetchmode = null])



Tags:

access:  public
see:  Connection::executeQuery()


[ Top ]

method executeUpdate [line 240]

void executeUpdate( mixed $sql)



Tags:

access:  public
see:  Connection::executeUpdate()


[ Top ]

method getAdapter [line 152]

ODBCAdapter getAdapter( )

Returns driver-specific ODBCAdapter.



Tags:

access:  public


[ Top ]

method getDatabaseInfo [line 160]

void getDatabaseInfo( )



Tags:

access:  public
see:  Connection::getDatabaseInfo()


[ Top ]

method getIdGenerator [line 169]

void getIdGenerator( )



Tags:

access:  public
see:  Connection::getIdGenerator()


[ Top ]

method getUpdateCount [line 308]

void getUpdateCount( )



Tags:

access:  public
see:  Connection::getUpdateCount()


[ Top ]

method nativeError [line 138]

string nativeError( )

Returns a formatted ODBC error string.



Tags:

access:  public


[ Top ]

method prepareCall [line 205]

void prepareCall( mixed $sql)



Tags:

access:  public
see:  Connection::prepareCall()
todo:  To be implemented


Overrides ConnectionCommon::prepareCall() (Creates a CallableStatement object for calling database stored procedures.)

[ Top ]

method prepareStatement [line 186]

void prepareStatement( mixed $sql)



Tags:

access:  public
see:  Connection::prepareStatement()


[ Top ]

method rollback [line 292]

void rollback( )



Tags:

access:  public
see:  Connection::rollback()


[ Top ]

method setAutoCommit [line 261]

void setAutoCommit( mixed $bit)



Tags:

access:  public
see:  Connection::setAutoCommit()


Overrides ConnectionCommon::setAutoCommit() (Enable/disable automatic commits.)

[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:52:18 -0400 by phpDocumentor 1.3.0RC3