Class: Doctrine_Sequence_Pgsql

Source Location: /Doctrine/Sequence/Pgsql.php

Class Doctrine_Sequence_Pgsql

Class Overview

Doctrine_Sequence_Pgsql

Located in /Doctrine/Sequence/Pgsql.php [line 33]

Doctrine_Connection_Module
   |
   --Doctrine_Sequence
      |
      --Doctrine_Sequence_Pgsql
Author(s): Information Tags:
Version:  $Revision: 1632 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::$conn
Doctrine_Connection_Module::$moduleName

Inherited From Doctrine_Sequence

Doctrine_Sequence::currId()
Returns the current id of a sequence
Doctrine_Sequence::lastInsertId()
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
Doctrine_Sequence::nextId()
Returns the next free id of a sequence

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::__construct()
Doctrine_Connection_Module::getConnection()
getConnection returns the connection object this module uses
Doctrine_Connection_Module::getModuleName()
getModuleName returns the name of this module

[ Top ]
Method Summary
integer   currId()   Returns the current id of a sequence
integer   lastInsertId()   lastInsertId
integer   nextId()   Returns the next free id of a sequence

[ Top ]
Properties
Methods
currId  [line 87]

  integer currId( string $seqName  )

Returns the current id of a sequence

Parameters:
string   $seqName:  name of the sequence

API Tags:
Return:  current id in the given sequence
Access:  public


Redefinition of:
Doctrine_Sequence::currId()
Returns the current id of a sequence

[ Top ]
lastInsertId  [line 73]

  integer lastInsertId( [string $table = null], [string $field = null]  )

lastInsertId

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

API Tags:
Return:  the autoincremented id
Access:  public


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

[ Top ]
nextId  [line 43]

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

Returns the next free id of a sequence

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

API Tags:
Return:  next id in the given sequence
Access:  public


Redefinition of:
Doctrine_Sequence::nextId()
Returns the next free id of a sequence

[ Top ]