PHP 클래스 Doctrine\DBAL\Driver\OCI8\OCI8Statement

부터: 2.0
저자: Roman Borschel ([email protected])
상속: implements Doctrine\DBAL\Driver\Statement
파일 보기 프로젝트 열기: doctrine/dbal 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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