PHP 클래스 Pheasant\Database\Mysqli\SequencePool

파일 보기 프로젝트 열기: lox/pheasant

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
_lockSequence ( $sequence ) Locks the sequence, creates it if needed and returns the current value

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $connection, $startId = 1 )

_nextSequence() 공개 메소드

Called within a transaction, gets the next sequence value
public _nextSequence ( $sequence )

clear() 공개 메소드

Clears either the whole pool
public clear ( )

close() 공개 메소드

Closes a connection
public close ( )

current() 공개 메소드

Returns the current integer in the sequence
public current ( $sequence )

delete() 공개 메소드

Deletes a given sequence from the pool
public delete ( $sequence )

initialize() 공개 메소드

Creates the sequence table if it doesn't exist
public initialize ( )

next() 공개 메소드

Returns the next integer in the sequence
public next ( $sequence )