Class TResultProperty
TResultProperty corresponds a <property> tags inside a <resultMap> tag.
The NullValue setNullValue() attribute can be set to any valid value (based on property type). The NullValue setNullValue() attribute is used to specify an outgoing null value replacement. What this means is that when a null value is detected in the result, the corresponding value of the NullValue getNullValue() will be used instead.
The Select setSelect() property is used to describe a relationship between objects and to automatically load complex (i.e. user defined) property types. The value of the Select setSelect() property must be the name of another mapped statement. The value of the database Column setColumn() that is defined in the same property element as this statement attribute will be passed to the related mapped statement as the parameter. The LazyLoad setLayLoad() attribute can be specified with the Select setSelect() .
- TComponent
-
TResultProperty
Copyright: 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/TResultProperty.php
public
|
|
public
mixed
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
#
setSelect( string $value )
The select property is used to describe a relationship between objects and to automatically load complex (i.e. user defined) property types. |
public
boolean
|
|
public
|
|
public
mixed
|
#
getPropertyValue(
Gets the value for the current property, converts to applicable type if necessary. |
protected
mixed
|
|
protected
|
#
createTypeHandler(
Create type handler from Type setType() or TypeHandler setTypeHandler. |
protected
integer
|
|
public
boolean
|
#
instanceOfListType( object $target )
Returns true if the result property Type getType() is of TList type or that the actual result object is an instance of TList. |
public
boolean
|
#
instanceOfArrayType( object $target )
Returns true if the result property Type getType() is of ArrayAccess or that the actual result object is an array or implements ArrayAccess |
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. |
integer |
LIST_TYPE |
0 |
|
integer |
ARRAY_TYPE |
1 |
GLOBAL_RAISE_EVENT_LISTENER
|