PHP Класс Prado\Data\SqlMap\Configuration\TResultProperty

The {@link NullValue setNullValue()} attribute can be set to any valid value (based on property type). The {@link 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 {@link NullValue getNullValue()} will be used instead. The {@link 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 {@link Select setSelect()} property must be the name of another mapped statement. The value of the database {@link 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 {@link LazyLoad setLayLoad()} attribute can be specified with the {@link Select setSelect()} .
С версии: 3.1
Наследование: extends Prado\TComponent
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $resultMap = null ) Gets the containing result map ID.
__sleep ( )
getColumn ( ) : string
getColumnIndex ( ) : integer
getLazyLoad ( ) : boolean
getNestedResultMap ( ) : TResultMap
getNullValue ( ) : mixed
getProperty ( ) : string
getPropertyValue ( $registry, $row ) : mixed Gets the value for the current property, converts to applicable type if necessary.
getResultMapping ( ) : string
getSelect ( ) : string
getType ( ) : string
getTypeHandler ( ) : string
instanceOfArrayType ( $target ) : boolean Returns true if the result property {@link Type getType()} is of \ArrayAccess or that the actual result object is an array or implements \ArrayAccess
instanceOfListType ( $target ) : boolean Returns true if the result property {@link Type getType()} is of TList type or that the actual result object is an instance of TList.
setColumn ( $value )
setColumnIndex ( $value )
setLazyLoad ( $value )
setNestedResultMap ( $value )
setNullValue ( $value )
setProperty ( $value )
setResultMapping ( $value )
setSelect ( $value ) The select property is used to describe a relationship between objects and to automatically load complex (i.e. user defined) property types.
setType ( $value )
setTypeHandler ( $value )

Защищенные методы

Метод Описание
createTypeHandler ( $registry ) : TSqlMapTypeHandler Create type handler from {@link Type setType()} or {@link TypeHandler setTypeHandler}.
getPropertyValueType ( ) : integer Determines if the type is an instance of \ArrayAccess, TList or an array.
getTypedValue ( $registry, $value ) : mixed

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

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

Gets the containing result map ID.
public __construct ( $resultMap = null )

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

public __sleep ( )

createTypeHandler() защищенный Метод

Create type handler from {@link Type setType()} or {@link TypeHandler setTypeHandler}.
protected createTypeHandler ( $registry ) : TSqlMapTypeHandler
Результат TSqlMapTypeHandler type handler.

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

public getColumn ( ) : string
Результат string name of the column in the result set from which the value will be used to populate the property.

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

public getColumnIndex ( ) : integer
Результат integer index of the column in the ResultSet from which the value will be used to populate the object property

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

public getLazyLoad ( ) : boolean
Результат boolean indicate whether or not the select statement's results should be lazy loaded

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

public getNestedResultMap ( ) : TResultMap
Результат TResultMap nested result map.

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

public getNullValue ( ) : mixed
Результат mixed null value replacement.

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

public getProperty ( ) : string
Результат string name of a property of the result object that will be set to.

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

Gets the value for the current property, converts to applicable type if necessary.
public getPropertyValue ( $registry, $row ) : mixed
Результат mixed property value.

getPropertyValueType() защищенный Метод

Determines if the type is an instance of \ArrayAccess, TList or an array.
protected getPropertyValueType ( ) : integer
Результат integer TResultProperty::LIST_TYPE or TResultProperty::ARRAY_TYPE

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

public getResultMapping ( ) : string
Результат string ID of another used to fill the property.

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

public getSelect ( ) : string
Результат string name of another mapped statement

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

public getType ( ) : string
Результат string property type of the object property to be set.

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

public getTypeHandler ( ) : string
Результат string custom type handler class name (may use namespace).

getTypedValue() защищенный Метод

protected getTypedValue ( $registry, $value ) : mixed
Результат mixed property value casted to specific type.

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

Returns true if the result property {@link Type getType()} is of \ArrayAccess or that the actual result object is an array or implements \ArrayAccess
public instanceOfArrayType ( $target ) : boolean
Результат boolean true if the result object is an instance of \ArrayAccess or is an array.

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

Returns true if the result property {@link Type getType()} is of TList type or that the actual result object is an instance of TList.
public instanceOfListType ( $target ) : boolean
Результат boolean true if the result object is an instance of TList

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

public setColumn ( $value )

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

public setColumnIndex ( $value )

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

public setLazyLoad ( $value )

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

public setNestedResultMap ( $value )

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

public setNullValue ( $value )

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

public setProperty ( $value )

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

public setResultMapping ( $value )

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

The select property is used to describe a relationship between objects and to automatically load complex (i.e. user defined) property types.
public setSelect ( $value )

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

public setType ( $value )

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

public setTypeHandler ( $value )