PHP Интерфейс Prado\Data\SqlMap\Statements\IMappedStatement

С версии: 3.1
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
executeQueryForList ( $connection, $parameter, $result = null, $skip, $max ) : TList Executes the SQL and retuns a subset of the rows selected.
executeQueryForMap ( $connection, $parameter, $keyProperty, $valueProperty = null ) : TMap Executes the SQL and retuns all rows selected in a map that is keyed on the property named in the $keyProperty parameter. The value at each key will be the value of the property specified in the $valueProperty parameter. If $valueProperty is null, the entire result object will be entered.
executeQueryForObject ( $connection, $parameter, $result = null ) : object Executes an SQL statement that returns a single row as an object of the type of the $result passed in as a parameter.
executeUpdate ( $connection, $parameter ) : integer Execute an update statement. Also used for delete statement. Return the number of row effected.
getID ( ) : string
getManager ( ) : TSqlMap
getStatement ( ) : TSqlMapStatement

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

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

Executes the SQL and retuns a subset of the rows selected.
public executeQueryForList ( $connection, $parameter, $result = null, $skip, $max ) : TList
Результат TList A TList of result objects.

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

Executes the SQL and retuns all rows selected in a map that is keyed on the property named in the $keyProperty parameter. The value at each key will be the value of the property specified in the $valueProperty parameter. If $valueProperty is null, the entire result object will be entered.
public executeQueryForMap ( $connection, $parameter, $keyProperty, $valueProperty = null ) : TMap
Результат TMap A map of object containing the rows keyed by $keyProperty.

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

Executes an SQL statement that returns a single row as an object of the type of the $result passed in as a parameter.
public executeQueryForObject ( $connection, $parameter, $result = null ) : object
Результат object result.

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

Execute an update statement. Also used for delete statement. Return the number of row effected.
public executeUpdate ( $connection, $parameter ) : integer
Результат integer The number of row effected.

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

public getID ( ) : string
Результат string Name used to identify the MappedStatement amongst the others.

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

public getManager ( ) : TSqlMap
Результат TSqlMap The TSqlMap used by this TMappedStatement

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

public getStatement ( ) : TSqlMapStatement
Результат TSqlMapStatement The SQL statment used by this TMappedStatement.