PHP Trait TORM\Sequences

Exibir arquivo Open project: taq/torm

Public Methods

Method Description
getSequenceName ( ) : name Returns the sequence name, if any
resolveSequenceName ( ) : name Resolve the sequence name, if any
sequenceNextVal ( string $name ) : mixed Get the next value from a sequence
setSequenceName ( string $name ) : null Set the sequence name, if any

Private Methods

Method Description
_checkSequence ( ) : null Create a sequence if not exists
_createOracleSequence ( ) : null Create an Oracle sequence
_createPostgresqlSequence ( ) : null Create a PostgreSQL sequence
_oracleSequenceExists ( string $name ) : exists Check if an Oracle sequence exists
_postgresqlSequenceExists ( string $name ) : exists Check if an PostgreSQL sequence exists
_sequenceExists ( ) : exists Check if a sequence exists

Method Details

getSequenceName() public static method

Returns the sequence name, if any
public static getSequenceName ( ) : name
return name of the sequence

resolveSequenceName() public static method

Resolve the sequence name, if any
public static resolveSequenceName ( ) : name
return name of the sequence

sequenceNextVal() public static method

Get the next value from a sequence
public static sequenceNextVal ( string $name ) : mixed
$name string sequence name
return mixed next value

setSequenceName() public static method

Set the sequence name, if any
public static setSequenceName ( string $name ) : null
$name string of the sequence
return null