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
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__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 )