Method | Description | |
---|---|---|
__construct ( $connection, $startId = 1 ) | Constructor | |
_nextSequence ( $sequence ) | Called within a transaction, gets the next sequence value | |
clear ( ) | Clears either the whole pool | |
close ( ) | Closes a connection | |
current ( $sequence ) | Returns the current integer in the sequence | |
delete ( $sequence ) | Deletes a given sequence from the pool | |
initialize ( ) | Creates the sequence table if it doesn't exist | |
next ( $sequence ) | Returns the next integer in the sequence |
Method | Description | |
---|---|---|
_lockSequence ( $sequence ) | Locks the sequence, creates it if needed and returns the current value |
public _nextSequence ( $sequence ) |