class Doctrine_Sequence_Sqlite extends Doctrine_Sequence (View source)

Doctrine_Sequence_Sqlite

Properties

protected Doctrine_Connection $conn from Doctrine_Connection_Module
protected string $moduleName from Doctrine_Connection_Module

Methods

__construct(Doctrine_Connection $conn = null)

No description

getConnection()

getConnection returns the connection object this module uses

string
getModuleName()

getModuleName returns the name of this module

integer
nextId(string $seqName, bool $onDemand = true)

Returns the next free id of a sequence

lastInsertId(string $table = null, string $field = null)

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)

integer
currId(string $seqName)

Returns the current id of a sequence

Details

__construct(Doctrine_Connection $conn = null)

Parameters

Doctrine_Connection $conn Doctrine_Connection object, every connection module holds an instance of Doctrine_Connection

Doctrine_Connection getConnection()

getConnection returns the connection object this module uses

Return Value

Doctrine_Connection

string getModuleName()

getModuleName returns the name of this module

Return Value

string the name of this module

integer nextId(string $seqName, bool $onDemand = true)

Returns the next free id of a sequence

Parameters

string $seqName name of the sequence
bool $onDemand when true missing sequences are automatic created

Return Value

integer next id in the given sequence

lastInsertId(string $table = null, string $field = null)

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)

Parameters

string $table name of the table into which a new row was inserted
string $field name of the field into which a new row was inserted

integer currId(string $seqName)

Returns the current id of a sequence

Parameters

string $seqName name of the sequence

Return Value

integer current id in the given sequence