Interface \Prado\Data\SqlMap\Statements\IMappedStatement
Interface for all mapping statements.
Namespace: \Prado\Data\SqlMap\StatementsAuthor: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
public
|
executeInsert(TDbConnection $connection, mixed $parameter) : string
Execute an insert statement. Fill the parameter object with the ouput
parameters if any, also could return the insert generated key.
|
public
|
executeQueryForList(TDbConnection $connection, mixed $parameter[, null|TList $result = null ][, int $skip = -1 ][, int $max = -1 ][, null|mixed $delegate = null ]) : TList
Executes the SQL and retuns a subset of the rows selected.
|
public
|
executeQueryForMap(TDbConnection $connection, mixed $parameter, string $keyProperty[, string $valueProperty = null ][, int $skip = -1 ][, int $max = -1 ][, null|mixed $delegate = null ]) : TMap
Executes the SQL and retuns all rows selected in a map that is keyed on
the property named in the <tt>$keyProperty</tt> parameter. The value at
each key will be the value of the property specified in the
<tt>$valueProperty</tt> parameter. If <tt>$valueProperty</tt> is
<tt>null</tt>, the entire result object will be entered.
|
public
|
executeQueryForObject(TDbConnection $connection, mixed $parameter[, object $result = null ]) : object
Executes an SQL statement that returns a single row as an object
of the type of the <tt>$result</tt> passed in as a parameter.
|
public
|
executeUpdate(TDbConnection $connection, mixed $parameter) : int
Execute an update statement. Also used for delete statement. Return the
number of row effected.
|
public
|
|
public
|
|
public
|
|