Class TSqlMapStatement
TSqlMapStatement class corresponds to <statement> element.
Mapped Statements can hold any SQL statement and can use Parameter Maps and Result Maps for input and output.
The <statement> element is a general "catch all" element that can be used for any type of SQL statement. Generally it is a good idea to use one of the more specific statement-type elements. The more specific elements provided better error-checking and even more functionality. (For example, the insert statement can return a database-generated key.)
- TComponent
-
TSqlMapStatement
Indirect known subclasses
TSqlMapDeleteCopyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/Configuration/TSqlMapStatement.php
public
string
|
|
public
|
|
public
string
|
|
public
|
#
setParameterMap( string $value )
A Parameter Map defines an ordered list of values that match up with the "?" placeholders of a standard, parameterized query statement. |
public
string
|
|
public
|
#
setParameterClass( string $value )
If a ParameterMap setParameterMap() property is not specified, you may specify a ParameterClass instead and use inline parameters. The value of the parameterClass attribute can be any existing PHP class name. |
public
string
|
|
public
|
#
setResultMap( string $value )
A Result Map lets you control how data is extracted from the result of a query, and how the columns are mapped to object properties. |
public
string
|
|
public
|
#
setResultClass( string $value )
If a ResultMap setResultMap() is not specified, you may specify a ResultClass instead. The value of the ResultClass property can be the name of a PHP class or primitives like integer, string, or array. The class specified will be automatically mapped to the columns in the result, based on the result metadata. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
#
setListClass( string $value )
An ArrayAccess class can be specified to handle the type of objects in the collection. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
ArrayAccess
|
|
protected
mixed
|
#
createInstanceOf(
Create a new instance of a given type. |
public
mixed
|
#
createInstanceOfResultClass(
Create a new instance of result class. |
public
|
#
__sleep( )
Returns an array with the names of all variables of that object that should be serialized. Do not call this method. This is a PHP magic method that will be called automatically prior to any serialization. |
GLOBAL_RAISE_EVENT_LISTENER
|