PHP 클래스 Prado\Data\SqlMap\Configuration\TDiscriminator

TDiscriminator allows inheritance logic in SqlMap result mappings. SqlMap compares the data found in the discriminator column to the different values using the column value's string equivalence. When the string values matches a particular , SqlMap will use the defined by {@link resultMapping TSubMap::setResultMapping()} property for loading the object data.
부터: 3.1
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
addSubMap ( $subMap )
getColumn ( ) : string
getColumnIndex ( ) : integer
getMapping ( ) : TResultProperty
getNullValue ( ) : mixed
getSubMap ( $value ) : TResultMap
getType ( )
getTypeHandler ( ) : string
initMapping ( $resultMap ) Copies the discriminator properties to a new TResultProperty.
initialize ( $manager ) Set the result maps for particular sub-mapping values.
setColumn ( $value )
setColumnIndex ( $value ) The columnIndex attribute value is the index of the column in the ResultSet from which the value will be used to populate the object property.
setNullValue ( $value )
setType ( $value ) : string The type attribute is used to explicitly specify the property type of the parameter to be set. If the attribute type is not set and the framework cannot otherwise determine the type, the type is assumed from the default value of the property.
setTypeHandler ( $value )

메소드 상세

addSubMap() 공개 메소드

public addSubMap ( $subMap )

getColumn() 공개 메소드

public getColumn ( ) : string
리턴 string the 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

getMapping() 공개 메소드

public getMapping ( ) : TResultProperty
리턴 TResultProperty result property for the discriminator column.

getNullValue() 공개 메소드

public getNullValue ( ) : mixed
리턴 mixed outgoing null value replacement.

getSubMap() 공개 메소드

public getSubMap ( $value ) : TResultMap
리턴 TResultMap result mapping.

getType() 공개 메소드

public getType ( )

getTypeHandler() 공개 메소드

public getTypeHandler ( ) : string
리턴 string custom type handler class name (may use namespace).

initMapping() 공개 메소드

Copies the discriminator properties to a new TResultProperty.
public initMapping ( $resultMap )

initialize() 공개 메소드

Set the result maps for particular sub-mapping values.
public initialize ( $manager )

setColumn() 공개 메소드

public setColumn ( $value )

setColumnIndex() 공개 메소드

The columnIndex attribute value is the index of the column in the ResultSet from which the value will be used to populate the object property.
public setColumnIndex ( $value )

setNullValue() 공개 메소드

public setNullValue ( $value )

setType() 공개 메소드

The type attribute is used to explicitly specify the property type of the parameter to be set. If the attribute type is not set and the framework cannot otherwise determine the type, the type is assumed from the default value of the property.
public setType ( $value ) : string
리턴 string property type of the parameter to be set.

setTypeHandler() 공개 메소드

public setTypeHandler ( $value )