class AnsiQuoteStrategy implements QuoteStrategy (View source)

ANSI compliant quote strategy, this strategy does not apply any quote.

To use this strategy all mapped tables and columns should be ANSI compliant.

Methods

string
getColumnName(string $fieldName, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) column name for safe use in an SQL statement.

string
getTableName(ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) primary table name for safe use in an SQL statement.

string
getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) sequence name for safe use in an SQL statement.

string
getJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) join column name.

string
getReferencedJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) join column name.

string
getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) name of the join table.

array
getIdentifierColumnNames(ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) identifier column names for safe use in an SQL statement.

string
getColumnAlias(string $columnName, integer $counter, AbstractPlatform $platform, ClassMetadata $class = null)

Gets the column alias.

Details

string getColumnName(string $fieldName, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) column name for safe use in an SQL statement.

Parameters

string $fieldName
ClassMetadata $class
AbstractPlatform $platform

Return Value

string

string getTableName(ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) primary table name for safe use in an SQL statement.

Parameters

ClassMetadata $class
AbstractPlatform $platform

Return Value

string

string getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) sequence name for safe use in an SQL statement.

Parameters

array $definition
ClassMetadata $class
AbstractPlatform $platform

Return Value

string

string getJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) join column name.

Parameters

array $joinColumn
ClassMetadata $class
AbstractPlatform $platform

Return Value

string

string getReferencedJoinColumnName(array $joinColumn, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) join column name.

Parameters

array $joinColumn
ClassMetadata $class
AbstractPlatform $platform

Return Value

string

string getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) name of the join table.

Parameters

array $association
ClassMetadata $class
AbstractPlatform $platform

Return Value

string

array getIdentifierColumnNames(ClassMetadata $class, AbstractPlatform $platform)

Gets the (possibly quoted) identifier column names for safe use in an SQL statement.

Parameters

ClassMetadata $class
AbstractPlatform $platform

Return Value

array

string getColumnAlias(string $columnName, integer $counter, AbstractPlatform $platform, ClassMetadata $class = null)

Gets the column alias.

Parameters

string $columnName
integer $counter
AbstractPlatform $platform
ClassMetadata $class

Return Value

string