Doctrine


Doctrine\DBAL\Schema\Column
/Doctrine/DBAL/Schema/Column.php at line 36

Class Column

Class:Column - Superclass: AbstractAsset
AbstractAsset
⌊ Column

public class Column
extends AbstractAsset

Object representation of a database column

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision$
Author:
Benjamin Eberlei

Field Summary
protected string

$_columnDefinition

protected string

$_default

protected bool

$_fixed

protected int

$_length

protected bool

$_notnull

protected array

$_platformOptions

protected int

$_precision

protected int

$_scale

protected \Doctrine\DBAL\Types\Type

$_type

protected bool

$_unsigned

Fields inherited from Doctrine\DBAL\Schema\AbstractAsset
_name
Constructor Summary

Column(string columnName, Doctrine\DBAL\Types\Type type, mixed options, int length, bool notNull, mixed default, bool unsigned, bool fixed, int precision, int scale, array platformOptions)

Create a new Column

Method Summary
void

getColumnDefinition()

void

getDefault()

void

getFixed()

void

getLength()

void

getNotnull()

void

getPlatformOption(mixed name)

void

getPlatformOptions()

void

getPrecision()

void

getScale()

void

getType()

void

getUnsigned()

void

hasPlatformOption(mixed name)

Column

setColumnDefinition(mixed value, string )

Column

setDefault(mixed default)

Column

setFixed(bool fixed)

Column

setLength(int length)

Column

setNotnull(bool notnull)

Column

setOptions(array options)

Column

setPlatformOption(string name, mixed value)

Column

setPlatformOptions(array platformOptions)

Column

setPrecision(int precision)

Column

setScale(int scale)

Column

setType(Type type)

Column

setUnsigned(bool unsigned)

array

toArray()

void

visit(Visitor visitor)

Methods inherited from Doctrine\DBAL\Schema\AbstractAsset
getName

Field Detail

/Doctrine/DBAL/Schema/Column.php at line 86

_columnDefinition

protected string $_columnDefinition = null


/Doctrine/DBAL/Schema/Column.php at line 76

_default

protected string $_default = null


/Doctrine/DBAL/Schema/Column.php at line 66

_fixed

protected bool $_fixed = false


/Doctrine/DBAL/Schema/Column.php at line 46

_length

protected int $_length = 255


/Doctrine/DBAL/Schema/Column.php at line 71

_notnull

protected bool $_notnull = true


/Doctrine/DBAL/Schema/Column.php at line 81

_platformOptions

protected array $_platformOptions = array()


/Doctrine/DBAL/Schema/Column.php at line 51

_precision

protected int $_precision


/Doctrine/DBAL/Schema/Column.php at line 56

_scale

protected int $_scale


/Doctrine/DBAL/Schema/Column.php at line 41

_type

protected \Doctrine\DBAL\Types\Type $_type


/Doctrine/DBAL/Schema/Column.php at line 61

_unsigned

protected bool $_unsigned = false


Constructor Detail

/Doctrine/DBAL/Schema/Column.php at line 102

Column

public Column(string columnName, Doctrine\DBAL\Types\Type type, mixed options, int length, bool notNull, mixed default, bool unsigned, bool fixed, int precision, int scale, array platformOptions)

Create a new Column


Method Detail

/Doctrine/DBAL/Schema/Column.php at line 300

getColumnDefinition

public void getColumnDefinition()

/Doctrine/DBAL/Schema/Column.php at line 280

getDefault

public void getDefault()

/Doctrine/DBAL/Schema/Column.php at line 270

getFixed

public void getFixed()

/Doctrine/DBAL/Schema/Column.php at line 250

getLength

public void getLength()

/Doctrine/DBAL/Schema/Column.php at line 275

getNotnull

public void getNotnull()

/Doctrine/DBAL/Schema/Column.php at line 295

getPlatformOption

public void getPlatformOption(mixed name)

/Doctrine/DBAL/Schema/Column.php at line 285

getPlatformOptions

public void getPlatformOptions()

/Doctrine/DBAL/Schema/Column.php at line 255

getPrecision

public void getPrecision()

/Doctrine/DBAL/Schema/Column.php at line 260

getScale

public void getScale()

/Doctrine/DBAL/Schema/Column.php at line 245

getType

public void getType()

/Doctrine/DBAL/Schema/Column.php at line 265

getUnsigned

public void getUnsigned()

/Doctrine/DBAL/Schema/Column.php at line 290

hasPlatformOption

public void hasPlatformOption(mixed name)

/Doctrine/DBAL/Schema/Column.php at line 239

setColumnDefinition

public Column setColumnDefinition(mixed value, string )


/Doctrine/DBAL/Schema/Column.php at line 205

setDefault

public Column setDefault(mixed default)


/Doctrine/DBAL/Schema/Column.php at line 184

setFixed

public Column setFixed(bool fixed)


/Doctrine/DBAL/Schema/Column.php at line 138

setLength

public Column setLength(int length)


/Doctrine/DBAL/Schema/Column.php at line 194

setNotnull

public Column setNotnull(bool notnull)


/Doctrine/DBAL/Schema/Column.php at line 113

setOptions

public Column setOptions(array options)


/Doctrine/DBAL/Schema/Column.php at line 228

setPlatformOption

public Column setPlatformOption(string name, mixed value)


/Doctrine/DBAL/Schema/Column.php at line 216

setPlatformOptions

public Column setPlatformOptions(array platformOptions)


/Doctrine/DBAL/Schema/Column.php at line 152

setPrecision

public Column setPrecision(int precision)


/Doctrine/DBAL/Schema/Column.php at line 162

setScale

public Column setScale(int scale)


/Doctrine/DBAL/Schema/Column.php at line 128

setType

public Column setType(Type type)


/Doctrine/DBAL/Schema/Column.php at line 173

setUnsigned

public Column setUnsigned(bool unsigned)


/Doctrine/DBAL/Schema/Column.php at line 316

toArray

public array toArray()


/Doctrine/DBAL/Schema/Column.php at line 308

visit

public void visit(Visitor visitor)


Doctrine