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
Показать файл Открыть проект

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

Метод Описание
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 )