PHP Класс Doctrine\DBAL\Driver\OCI8\OCI8Statement

С версии: 2.0
Автор: Roman Borschel ([email protected])
Наследование: implements Doctrine\DBAL\Driver\Statement
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_PARAM string
$_conn Doctrine\DBAL\Driver\OCI8\OCI8Connection
$_dbh resource
$_defaultFetchMode integer
$_paramMap array
$_sth resource
$fetchModeMap array

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

Метод Описание
__construct ( resource $dbh, string $statement, Doctrine\DBAL\Driver\OCI8\OCI8Connection $conn ) Creates a new OCI8Statement that uses the given connection handle and SQL statement.
bindParam ( $column, &$variable, $type = null, $length = null )
bindValue ( $param, $value, $type = null )
closeCursor ( )
columnCount ( )
convertPositionalToNamedPlaceholders ( string $statement ) : string Converts positional (?) into named placeholders (:param).
errorCode ( )
errorInfo ( )
execute ( $params = null )
fetch ( $fetchMode = null )
fetchAll ( $fetchMode = null )
fetchColumn ( $columnIndex )
getIterator ( )
rowCount ( )
setFetchMode ( $fetchMode, $arg2 = null, $arg3 = null )

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

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

Creates a new OCI8Statement that uses the given connection handle and SQL statement.
public __construct ( resource $dbh, string $statement, Doctrine\DBAL\Driver\OCI8\OCI8Connection $conn )
$dbh resource The connection handle.
$statement string The SQL statement.
$conn Doctrine\DBAL\Driver\OCI8\OCI8Connection

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

public bindParam ( $column, &$variable, $type = null, $length = null )

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

public bindValue ( $param, $value, $type = null )

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

public closeCursor ( )

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

public columnCount ( )

convertPositionalToNamedPlaceholders() публичный статический Метод

Oracle does not support positional parameters, hence this method converts all positional parameters into artificially named parameters. Note that this conversion is not perfect. All question marks (?) in the original statement are treated as placeholders and converted to a named parameter. The algorithm uses a state machine with two possible states: InLiteral and NotInLiteral. Question marks inside literal strings are therefore handled correctly by this method. This comes at a cost, the whole sql statement has to be looped over.
public static convertPositionalToNamedPlaceholders ( string $statement ) : string
$statement string The SQL statement to convert.
Результат string

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

public errorCode ( )

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

public errorInfo ( )

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

public execute ( $params = null )

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

public fetch ( $fetchMode = null )

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

public fetchAll ( $fetchMode = null )

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

public fetchColumn ( $columnIndex )

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

public getIterator ( )

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

public rowCount ( )

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

public setFetchMode ( $fetchMode, $arg2 = null, $arg3 = null )

Описание свойств

$_PARAM защищенное статическое свойство

protected static string $_PARAM
Результат string

$_conn защищенное свойство

protected OCI8Connection,Doctrine\DBAL\Driver\OCI8 $_conn
Результат Doctrine\DBAL\Driver\OCI8\OCI8Connection

$_dbh защищенное свойство

protected resource $_dbh
Результат resource

$_defaultFetchMode защищенное свойство

protected int $_defaultFetchMode
Результат integer

$_paramMap защищенное свойство

protected array $_paramMap
Результат array

$_sth защищенное свойство

protected resource $_sth
Результат resource

$fetchModeMap защищенное статическое свойство

protected static array $fetchModeMap
Результат array