onPHP

DB Class Reference

 

DB Class Reference
[Connectors and dialects for various databases]

DB-connector's implementation basis. More...

Inheritance diagram for DB:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 connect ($user, $pass, $host, $base=null, $persistent=false)
 disconnect ()
 queryRaw ($queryString)
 queryRow (Query $query)
 queryObjectRow (Query $query, GenericDAO $dao)
 querySet (Query $query)
 queryObjectSet (Query $query, GenericDAO $dao)
 queryColumn (Query $query)
 queryCount (Query $query)
 asyncQuery (Query $query)
 isBusy ()
 __destruct ()
 begin ($level=null, $mode=null)
 transaction handling
 commit ()
 rollback ()
 inTransaction ()
 queueStart ()
 queue handling
 queueStop ()
 queueDrop ()
 queueFlush ()
 query (Query $query)
 base queries
 queryNull (Query $query)
 isConnected ()
 supportSequences ()
 isPersistent ()

Static Public Member Functions

static getDialect ()

Public Attributes

const FULL_TEXT_AND = 1
const FULL_TEXT_OR = 2

Protected Attributes

 $link = null
 $persistent = false
 $queueSupported = true

Private Attributes

 $transaction = false
 flag to indicate whether we're in transaction
 $queue = array()
 $toQueue = false

Detailed Description

DB-connector's implementation basis.

Definition at line 18 of file DB.class.php.


Constructor & Destructor Documentation

DB::__destruct (  ) 

Definition at line 57 of file DB.class.php.

References disconnect(), isConnected(), and rollback().

Here is the call graph for this function:


Member Function Documentation

DB::connect ( user,
pass,
host,
base = null,
persistent = false 
) [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::disconnect (  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

Referenced by __destruct().

DB::queryRaw ( queryString  )  [abstract]

DB::queryRow ( Query query  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::queryObjectRow ( Query query,
GenericDAO dao 
) [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::querySet ( Query query  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::queryObjectSet ( Query query,
GenericDAO dao 
) [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::queryColumn ( Query query  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::queryCount ( Query query  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::asyncQuery ( Query query  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

DB::isBusy (  )  [abstract]

Reimplemented in MySQL, PgSQL, and SQLite.

static DB::getDialect (  )  [static]

Reimplemented in MySQL, PgSQL, and SQLite.

Definition at line 68 of file DB.class.php.

Referenced by Sequenceless::query(), query(), and queryNull().

DB::begin ( level = null,
mode = null 
)

transaction handling

Deprecated:
by Transaction class

Definition at line 78 of file DB.class.php.

References queryRaw().

Here is the call graph for this function:

DB::commit (  ) 

Definition at line 98 of file DB.class.php.

References queryRaw().

Here is the call graph for this function:

DB::rollback (  ) 

Definition at line 110 of file DB.class.php.

References queryRaw().

Referenced by __destruct().

Here is the call graph for this function:

DB::inTransaction (  ) 

Definition at line 122 of file DB.class.php.

DB::queueStart (  ) 

queue handling

Deprecated:
by Queue class

Definition at line 132 of file DB.class.php.

DB::queueStop (  ) 

Definition at line 140 of file DB.class.php.

DB::queueDrop (  ) 

Definition at line 147 of file DB.class.php.

Referenced by queueFlush().

DB::queueFlush (  ) 

Definition at line 154 of file DB.class.php.

References queryRaw(), and queueDrop().

Here is the call graph for this function:

DB::query ( Query query  ) 

base queries

Reimplemented in Sequenceless.

Definition at line 170 of file DB.class.php.

References getDialect(), and queryRaw().

Referenced by PgSQL::queryColumn(), PgSQL::queryCount(), queryNull(), PgSQL::queryObjectRow(), PgSQL::queryObjectSet(), PgSQL::queryRow(), and PgSQL::querySet().

Here is the call graph for this function:

DB::queryNull ( Query query  ) 

Definition at line 175 of file DB.class.php.

References getDialect(), and query().

Here is the call graph for this function:

DB::isConnected (  ) 

Reimplemented in PgSQL, and SQLite.

Definition at line 189 of file DB.class.php.

Referenced by __destruct(), and MySQL::disconnect().

DB::supportSequences (  ) 

Reimplemented in PgSQL.

Definition at line 194 of file DB.class.php.

DB::isPersistent (  ) 

Definition at line 199 of file DB.class.php.


Member Data Documentation

const DB::FULL_TEXT_OR = 2

Definition at line 21 of file DB.class.php.

Referenced by Expression::fullTextOr(), and Expression::fullTextRankOr().

DB::$link = null [protected]

Definition at line 23 of file DB.class.php.

DB::$persistent = false [protected]

Definition at line 25 of file DB.class.php.

Referenced by SQLite::connect(), PgSQL::connect(), and MySQL::connect().

DB::$queueSupported = true [protected]

Reimplemented in MySQL.

Definition at line 27 of file DB.class.php.

DB::$transaction = false [private]

flag to indicate whether we're in transaction

Definition at line 32 of file DB.class.php.

DB::$queue = array() [private]

Definition at line 34 of file DB.class.php.

DB::$toQueue = false [private]

Definition at line 35 of file DB.class.php.


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

generated by doxygen-1.5.1
for onPHP at Tue Feb 13 19:29:46 2007