jDbColumn

package

jelix

Methods

__construct

__construct( $name,  $type,  $length,  $hasDefault = false,  $default = null,  $notNull = false) 

Arguments

$name

$type

$length

$hasDefault

$default

$notNull

_isEqualToExceptName

_isEqualToExceptName( $column) 

Arguments

$column

hasOnlyDifferentName

hasOnlyDifferentName( $otherColumn) 

Arguments

$otherColumn

isEqualTo

isEqualTo( $column) 

Arguments

$column

Properties

native type of the field

type : string
var

Type(s)

string

field name

name : string
var

Type(s)

string

says if the field can be null or not

notNull : boolean
var

Type(s)

boolean

says if the field is auto incremented

autoIncrement : boolean
var

Type(s)

boolean

default value

default : string
var

Type(s)

string

says if there is a default value

hasDefault : boolean
var

Type(s)

boolean

The length for a string

length : integer
var

Type(s)

integer

The precision for a number

precision : integer
var

Type(s)

integer

The scale for a number (value after the coma, in the precision)

scale : integer
var

Type(s)

integer

if there is a sequence

sequence : string
var

Type(s)

string

unsigned

unsigned : 

Type(s)

minLength

minLength : 

Type(s)

maxLength

maxLength : 

Type(s)

minValue

minValue : 

Type(s)

maxValue

maxValue : 

Type(s)

comment

comment : 

Type(s)