class Sequence extends AbstractAsset (View source)

Sequence Structure

Properties

protected string $_name from AbstractAsset
protected $_quoted from AbstractAsset
protected int $_allocationSize
protected int $_initialValue

Methods

_setName(string $name)

Set name of this asset

bool
isQuoted(string $identifier)

Check if this identifier is quoted.

string
trimQuotes(string $identifier)

Trim quotes from the identifier.

string
getName()

Return name of this schema asset.

string
getQuotedName(AbstractPlatform $platform)

Get the quoted representation of this asset but only if it was defined with one. Otherwise return the plain unquoted value as inserted.

string
_generateIdentifierName(array $columnNames, string $prefix = '', int $maxSize = 30)

Generate an identifier from a list of column names obeying a certain string length.

__construct(string $name, int $allocationSize = 1, int $initialValue = 1)

No description

getAllocationSize()

No description

getInitialValue()

No description

visit(Visitor $visitor)

No description

Details

protected _setName(string $name)

Set name of this asset

Parameters

string $name

protected bool isQuoted(string $identifier)

Check if this identifier is quoted.

Parameters

string $identifier

Return Value

bool

protected string trimQuotes(string $identifier)

Trim quotes from the identifier.

Parameters

string $identifier

Return Value

string

string getName()

Return name of this schema asset.

Return Value

string

string getQuotedName(AbstractPlatform $platform)

Get the quoted representation of this asset but only if it was defined with one. Otherwise return the plain unquoted value as inserted.

Parameters

AbstractPlatform $platform

Return Value

string

protected string _generateIdentifierName(array $columnNames, string $prefix = '', int $maxSize = 30)

Generate an identifier from a list of column names obeying a certain string length.

This is especially important for Oracle, since it does not allow identifiers larger than 30 chars, however building idents automatically for foreign keys, composite keys or such can easily create very long names.

Parameters

array $columnNames
string $prefix
int $maxSize

Return Value

string

__construct(string $name, int $allocationSize = 1, int $initialValue = 1)

Parameters

string $name
int $allocationSize
int $initialValue

getAllocationSize()

getInitialValue()

visit(Visitor $visitor)

Parameters

Visitor $visitor