PHP Interface Prado\Data\SqlMap\Statements\IMappedStatement

Since: 3.1
Afficher le fichier Open project: pradosoft/prado Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

executeQueryForList() public méthode

Executes the SQL and retuns a subset of the rows selected.
public executeQueryForList ( $connection, $parameter, $result = null, $skip, $max ) : TList
Résultat TList A TList of result objects.

executeQueryForMap() public méthode

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
Résultat TMap A map of object containing the rows keyed by $keyProperty.

executeQueryForObject() public méthode

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
Résultat object result.

executeUpdate() public méthode

Execute an update statement. Also used for delete statement. Return the number of row effected.
public executeUpdate ( $connection, $parameter ) : integer
Résultat integer The number of row effected.

getID() public méthode

public getID ( ) : string
Résultat string Name used to identify the MappedStatement amongst the others.

getManager() public méthode

public getManager ( ) : TSqlMap
Résultat TSqlMap The TSqlMap used by this TMappedStatement

getStatement() public méthode

public getStatement ( ) : TSqlMapStatement
Résultat TSqlMapStatement The SQL statment used by this TMappedStatement.