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

Class: MySQLIdGenerator

Source Location: /creole/drivers/mysql/MySQLIdGenerator.php

Class Overview


MySQL IdGenerator implimenation.


Author(s):

Version:

  • $Revision: 1.6 $

Methods



Class Details

[line 12]
MySQL IdGenerator implimenation.



Tags:

version:  $Revision: 1.6 $
author:  Hans Lellelid <hans@xmpl.org>


[ Top ]


Class Methods


constructor __construct [line 22]

MySQLIdGenerator __construct( Connection $conn)

Creates a new IdGenerator class, saves passed connection for use later by getId() method.



Tags:

access:  public


Parameters:

Connection   $conn  

[ Top ]

method getId [line 60]

void getId( [mixed $unused = null])

Returns last-generated auto-increment ID.

Note that for very large values (2,147,483,648 to 9,223,372,036,854,775,807) a string will be returned, because these numbers are larger than supported by PHP's native numeric datatypes.




Tags:

access:  public
see:  IdGenerator::getId()


[ Top ]

method getIdMethod [line 46]

void getIdMethod( )



Tags:

access:  public
see:  IdGenerator::getIdMethod()


[ Top ]

method isAfterInsert [line 38]

void isAfterInsert( )



Tags:

access:  public
see:  IdGenerator::isAfterInsert()


[ Top ]

method isBeforeInsert [line 30]

void isBeforeInsert( )



Tags:

access:  public
see:  IdGenerator::isBeforeInsert()


[ Top ]


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