Sequenceless Class Reference
[Connectors and dialects for various databases]

Workaround for sequenceless DB's. More...

Inheritance diagram for Sequenceless:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 obtainSequence ($sequence)
 
Returns:
Identifier

 query (Query $query)
 base queries

Protected Member Functions

 getInsertId ()

Protected Attributes

 $sequencePool = array()


Detailed Description

Workaround for sequenceless DB's.

You should follow two conventions, when stornig objects thru this one:

1) objects should be childs of IdentifiableObject; 2) sequence name should equal table name + '_id'.

See also:
IdentifiableOjbect

MySQL

SQLite

Definition at line 28 of file Sequenceless.class.php.


Member Function Documentation

Sequenceless::getInsertId (  )  [abstract, protected]

Reimplemented in MySQL, MySQLim, and SQLite.

Referenced by query().

Sequenceless::obtainSequence ( sequence  )  [final]

Returns:
Identifier

Definition at line 37 of file Sequenceless.class.php.

References Identifier::create().

Here is the call graph for this function:

Sequenceless::query ( Query query  )  [final]

base queries

Reimplemented from DB.

Definition at line 46 of file Sequenceless.class.php.

References DB::getDialect(), getInsertId(), Assert::isTrue(), and DB::queryRaw().

Referenced by SQLite::checkSingle(), MySQLim::checkSingle(), MySQL::checkSingle(), SQLite::queryColumn(), MySQLim::queryColumn(), MySQL::queryColumn(), SQLite::queryRow(), MySQLim::queryRow(), MySQL::queryRow(), SQLite::querySet(), MySQLim::querySet(), and MySQL::querySet().

Here is the call graph for this function:


Member Data Documentation

Sequenceless::$sequencePool = array() [protected]

Definition at line 30 of file Sequenceless.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:26 2007 for onPHP by  doxygen 1.5.4