PHP Класс Doctrine\DBAL\Platforms\DB2Platform

Наследование: extends Doctrine\DBAL\Platforms\AbstractPlatform
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getAlterTableSQL ( Doctrine\DBAL\Schema\TableDiff $diff ) {@inheritDoc}
getBigIntTypeDeclarationSQL ( array $columnDef ) {@inheritDoc}
getBinaryDefaultLength ( )
getBinaryMaxLength ( )
getBitAndComparisonExpression ( $value1, $value2 )
getBitOrComparisonExpression ( $value1, $value2 )
getBlobTypeDeclarationSQL ( array $field ) {@inheritDoc}
getBooleanTypeDeclarationSQL ( array $columnDef ) {@inheritDoc}
getClobTypeDeclarationSQL ( array $field ) {@inheritDoc}
getCreateDatabaseSQL ( $database ) {@inheritDoc}
getCreateTemporaryTableSnippetSQL ( ) {@inheritDoc}
getCreateViewSQL ( $name, $sql ) {@inheritDoc}
getCurrentDateSQL ( ) {@inheritDoc}
getCurrentTimeSQL ( ) {@inheritDoc}
getCurrentTimestampSQL ( ) {@inheritDoc}
getDateDiffExpression ( $date1, $date2 )
getDateTimeTypeDeclarationSQL ( array $fieldDeclaration ) {@inheritDoc}
getDateTypeDeclarationSQL ( array $fieldDeclaration ) {@inheritDoc}
getDefaultValueDeclarationSQL ( $field ) {@inheritDoc}
getDropDatabaseSQL ( $database ) {@inheritDoc}
getDropViewSQL ( $name ) {@inheritDoc}
getDummySelectSQL ( ) {@inheritDoc}
getEmptyIdentityInsertSQL ( $tableName, $identifierColumnName ) {@inheritDoc}
getForUpdateSQL ( ) {@inheritDoc}
getIndexDeclarationSQL ( $name, Doctrine\DBAL\Schema\Index $index ) {@inheritDoc}
getIntegerTypeDeclarationSQL ( array $columnDef ) {@inheritDoc}
getListTableColumnsSQL ( string $table, string $database = null ) : string This code fragment is originally from the Zend_Db_Adapter_Db2 class, but has been edited.
getListTableForeignKeysSQL ( $table ) {@inheritDoc}
getListTableIndexesSQL ( $table, $currentDatabase = null ) {@inheritDoc}
getListTablesSQL ( ) {@inheritDoc}
getListViewsSQL ( $database ) {@inheritDoc}
getLocateExpression ( $str, $substr, $startPos = false ) {@inheritDoc}
getName ( ) {@inheritDoc}
getSQLResultCasing ( $column ) {@inheritDoc}
getSmallIntTypeDeclarationSQL ( array $columnDef ) {@inheritDoc}
getSubstringExpression ( $value, $from, $length = null ) {@inheritDoc}
getTemporaryTableName ( $tableName ) {@inheritDoc}
getTimeTypeDeclarationSQL ( array $fieldDeclaration ) {@inheritDoc}
getTruncateTableSQL ( $tableName, $cascade = false )
initializeDoctrineTypeMappings ( ) {@inheritDoc}
isCommentedDoctrineType ( Doctrine\DBAL\Types\Type $doctrineType )
prefersIdentityColumns ( ) {@inheritDoc}
supportsCommentOnStatement ( )
supportsCreateDropDatabase ( ) {@inheritDoc}
supportsIdentityColumns ( ) {@inheritDoc}
supportsReleaseSavepoints ( ) {@inheritDoc}
supportsSavepoints ( ) {@inheritDoc}

Защищенные методы

Метод Описание
_getCommonIntegerTypeDeclarationSQL ( array $columnDef ) {@inheritDoc}
_getCreateTableSQL ( $tableName, array $columns, array $options = [] ) {@inheritDoc}
doModifyLimitQuery ( $query, $limit, $offset = null ) {@inheritDoc}
getBinaryTypeDeclarationSQLSnippet ( $length, $fixed )
getDateArithmeticIntervalExpression ( $date, $operator, $interval, $unit )
getPreAlterTableIndexForeignKeySQL ( Doctrine\DBAL\Schema\TableDiff $diff ) {@inheritDoc}
getRenameIndexSQL ( $oldIndexName, Doctrine\DBAL\Schema\Index $index, $tableName )
getReservedKeywordsClass ( ) {@inheritDoc}
getVarcharTypeDeclarationSQLSnippet ( $length, $fixed ) {@inheritDoc}

Приватные методы

Метод Описание
gatherAlterColumnSQL ( Doctrine\DBAL\Schema\Table $table, Doctrine\DBAL\Schema\ColumnDiff $columnDiff, array &$sql, array &$queryParts ) Gathers the table alteration SQL for a given column diff.
getAlterColumnClausesSQL ( Doctrine\DBAL\Schema\ColumnDiff $columnDiff ) : array Returns the ALTER COLUMN SQL clauses for altering a column described by the given column diff.

Описание методов

_getCommonIntegerTypeDeclarationSQL() защищенный Метод

{@inheritDoc}
protected _getCommonIntegerTypeDeclarationSQL ( array $columnDef )
$columnDef array

_getCreateTableSQL() защищенный Метод

{@inheritDoc}
protected _getCreateTableSQL ( $tableName, array $columns, array $options = [] )
$columns array
$options array

doModifyLimitQuery() защищенный Метод

{@inheritDoc}
protected doModifyLimitQuery ( $query, $limit, $offset = null )

getAlterTableSQL() публичный Метод

{@inheritDoc}
public getAlterTableSQL ( Doctrine\DBAL\Schema\TableDiff $diff )
$diff Doctrine\DBAL\Schema\TableDiff

getBigIntTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getBigIntTypeDeclarationSQL ( array $columnDef )
$columnDef array

getBinaryDefaultLength() публичный Метод

getBinaryMaxLength() публичный Метод

public getBinaryMaxLength ( )

getBinaryTypeDeclarationSQLSnippet() защищенный Метод

protected getBinaryTypeDeclarationSQLSnippet ( $length, $fixed )

getBitAndComparisonExpression() публичный Метод

public getBitAndComparisonExpression ( $value1, $value2 )

getBitOrComparisonExpression() публичный Метод

public getBitOrComparisonExpression ( $value1, $value2 )

getBlobTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getBlobTypeDeclarationSQL ( array $field )
$field array

getBooleanTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getBooleanTypeDeclarationSQL ( array $columnDef )
$columnDef array

getClobTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getClobTypeDeclarationSQL ( array $field )
$field array

getCreateDatabaseSQL() публичный Метод

{@inheritDoc}
public getCreateDatabaseSQL ( $database )

getCreateTemporaryTableSnippetSQL() публичный Метод

{@inheritDoc}

getCreateViewSQL() публичный Метод

{@inheritDoc}
public getCreateViewSQL ( $name, $sql )

getCurrentDateSQL() публичный Метод

{@inheritDoc}
public getCurrentDateSQL ( )

getCurrentTimeSQL() публичный Метод

{@inheritDoc}
public getCurrentTimeSQL ( )

getCurrentTimestampSQL() публичный Метод

{@inheritDoc}

getDateArithmeticIntervalExpression() защищенный Метод

protected getDateArithmeticIntervalExpression ( $date, $operator, $interval, $unit )

getDateDiffExpression() публичный Метод

public getDateDiffExpression ( $date1, $date2 )

getDateTimeTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getDateTimeTypeDeclarationSQL ( array $fieldDeclaration )
$fieldDeclaration array

getDateTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getDateTypeDeclarationSQL ( array $fieldDeclaration )
$fieldDeclaration array

getDefaultValueDeclarationSQL() публичный Метод

{@inheritDoc}
public getDefaultValueDeclarationSQL ( $field )

getDropDatabaseSQL() публичный Метод

{@inheritDoc}
public getDropDatabaseSQL ( $database )

getDropViewSQL() публичный Метод

{@inheritDoc}
public getDropViewSQL ( $name )

getDummySelectSQL() публичный Метод

{@inheritDoc}
public getDummySelectSQL ( )

getEmptyIdentityInsertSQL() публичный Метод

{@inheritDoc}
public getEmptyIdentityInsertSQL ( $tableName, $identifierColumnName )

getForUpdateSQL() публичный Метод

{@inheritDoc}
public getForUpdateSQL ( )

getIndexDeclarationSQL() публичный Метод

{@inheritDoc}
public getIndexDeclarationSQL ( $name, Doctrine\DBAL\Schema\Index $index )
$index Doctrine\DBAL\Schema\Index

getIntegerTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getIntegerTypeDeclarationSQL ( array $columnDef )
$columnDef array

getListTableColumnsSQL() публичный Метод

This code fragment is originally from the Zend_Db_Adapter_Db2 class, but has been edited.
public getListTableColumnsSQL ( string $table, string $database = null ) : string
$table string
$database string
Результат string

getListTableForeignKeysSQL() публичный Метод

{@inheritDoc}
public getListTableForeignKeysSQL ( $table )

getListTableIndexesSQL() публичный Метод

{@inheritDoc}
public getListTableIndexesSQL ( $table, $currentDatabase = null )

getListTablesSQL() публичный Метод

{@inheritDoc}
public getListTablesSQL ( )

getListViewsSQL() публичный Метод

{@inheritDoc}
public getListViewsSQL ( $database )

getLocateExpression() публичный Метод

{@inheritDoc}
public getLocateExpression ( $str, $substr, $startPos = false )

getName() публичный Метод

{@inheritDoc}
public getName ( )

getPreAlterTableIndexForeignKeySQL() защищенный Метод

{@inheritDoc}
protected getPreAlterTableIndexForeignKeySQL ( Doctrine\DBAL\Schema\TableDiff $diff )
$diff Doctrine\DBAL\Schema\TableDiff

getRenameIndexSQL() защищенный Метод

protected getRenameIndexSQL ( $oldIndexName, Doctrine\DBAL\Schema\Index $index, $tableName )
$index Doctrine\DBAL\Schema\Index

getReservedKeywordsClass() защищенный Метод

{@inheritDoc}
protected getReservedKeywordsClass ( )

getSQLResultCasing() публичный Метод

DB2 returns all column names in SQL result sets in uppercase.
public getSQLResultCasing ( $column )

getSmallIntTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getSmallIntTypeDeclarationSQL ( array $columnDef )
$columnDef array

getSubstringExpression() публичный Метод

{@inheritDoc}
public getSubstringExpression ( $value, $from, $length = null )

getTemporaryTableName() публичный Метод

{@inheritDoc}
public getTemporaryTableName ( $tableName )

getTimeTypeDeclarationSQL() публичный Метод

{@inheritDoc}
public getTimeTypeDeclarationSQL ( array $fieldDeclaration )
$fieldDeclaration array

getTruncateTableSQL() публичный Метод

public getTruncateTableSQL ( $tableName, $cascade = false )

getVarcharTypeDeclarationSQLSnippet() защищенный Метод

{@inheritDoc}
protected getVarcharTypeDeclarationSQLSnippet ( $length, $fixed )

initializeDoctrineTypeMappings() публичный Метод

{@inheritDoc}

isCommentedDoctrineType() публичный Метод

public isCommentedDoctrineType ( Doctrine\DBAL\Types\Type $doctrineType )
$doctrineType Doctrine\DBAL\Types\Type

prefersIdentityColumns() публичный Метод

{@inheritDoc}

supportsCommentOnStatement() публичный Метод

supportsCreateDropDatabase() публичный Метод

{@inheritDoc}

supportsIdentityColumns() публичный Метод

{@inheritDoc}

supportsReleaseSavepoints() публичный Метод

{@inheritDoc}

supportsSavepoints() публичный Метод

DB2 supports savepoints, but they work semantically different than on other vendor platforms. TODO: We have to investigate how to get DB2 up and running with savepoints.
public supportsSavepoints ( )