PHP Class Prado\Data\SqlMap\Configuration\TParameterProperty

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 inbound null value replacement. What this means is that when the value is detected in the object property, a NULL will be written to the database (the opposite behavior of an inbound null value replacement). This allows you to use a magic null number in your application for types that do not support null values (such as int, double, float). When these types of properties contain a matching null value (for example, say, -9999), a NULL will be written to the database instead of the value.
Since: 3.1
Inheritance: extends Prado\TComponent
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
__sleep ( )
getColumn ( ) : string
getDbType ( ) : string
getNullValue ( ) : mixed
getProperty ( ) : string
getType ( ) : string
getTypeHandler ( ) : string
setColumn ( $value )
setDbType ( $value )
setNullValue ( $value ) The nullValue attribute is used to specify an outgoing null value replacement.
setProperty ( $value )
setType ( $value )
setTypeHandler ( $value )

Method Details

__sleep() public méthode

public __sleep ( )

getColumn() public méthode

public getColumn ( ) : string
Résultat string name of a parameter to be used in the SQL statement.

getDbType() public méthode

public getDbType ( ) : string
Résultat string the database column type of the parameter to be set by this property.

getNullValue() public méthode

public getNullValue ( ) : mixed
Résultat mixed null value replacement

getProperty() public méthode

public getProperty ( ) : string
Résultat string name of a property of the parameter object.

getType() public méthode

public getType ( ) : string
Résultat string type of the parameter's property

getTypeHandler() public méthode

public getTypeHandler ( ) : string
Résultat string class name of a custom type handler.

setColumn() public méthode

public setColumn ( $value )

setDbType() public méthode

public setDbType ( $value )

setNullValue() public méthode

The nullValue attribute is used to specify an outgoing null value replacement.
public setNullValue ( $value )

setProperty() public méthode

public setProperty ( $value )

setType() public méthode

public setType ( $value )

setTypeHandler() public méthode

public setTypeHandler ( $value )