mediatekformation

BigIntegerIdentityGenerator extends AbstractIdGenerator
in package

Id generator that obtains IDs from special "identity" columns. These are columns that automatically get a database-generated, auto-incremented identifier on INSERT.

This generator obtains the last insert id after such an insert.

Table of Contents

$sequenceName  : string
The name of the sequence to pass to lastInsertId(), if any.
__construct()  : mixed
generate()  : mixed
Generates an identifier for an entity.
isPostInsertGenerator()  : bool
Gets whether this generator is a post-insert generator which means that {@link generate()} must be called after the entity has been inserted into the database.

Properties

Methods

__construct()

public __construct([string|null $sequenceName = null ]) : mixed
Parameters
$sequenceName : string|null = null

The name of the sequence to pass to lastInsertId() to obtain the last generated identifier within the current database session/connection, if any.

Return values
mixed

isPostInsertGenerator()

Gets whether this generator is a post-insert generator which means that {@link generate()} must be called after the entity has been inserted into the database.

public isPostInsertGenerator() : bool
Return values
bool

Search results