Column
Column
SubTypes
- BinaryColumn
- DateTimeColumn
- EnumColumn
- FixedPointColumn
- FloatingPointColumn
- IntegerColumn
- StringColumn
- TextColumn
Implemented by:
Methods summary
Modifier and Type | Method |
---|---|
public string | getName ( ) |
public | setName ( string name ) |
public Table | getTable ( ) |
public bool | isNullAllowed ( ) |
public | setNullAllowed ( bool nullAllowed ) |
public mixed | getDefaultValue ( ) |
public | setDefaultValue ( string defaultValue ) |
public bool | isValueGenerated ( ) |
public array | getAttrs ( ) |
public array | getIndexes ( ) |
public Column | copy ( string newColumnName = null ) |
public | equals ( Column column ) |
public | equalsType ( Column column , bool ignoreNull = false ) |
Methods in detail
-
getName
string public getName ( ) -
setName
public setName ( string name )param
string name -
getTable
Table public getTable ( )return
-
isNullAllowed
bool public isNullAllowed ( )return
bool -
setNullAllowed
public setNullAllowed ( bool nullAllowed )param
bool nullAllowed -
getDefaultValue
mixed public getDefaultValue ( )return
mixed -
setDefaultValue
public setDefaultValue ( string defaultValue )param
string defaultValue -
isValueGenerated
bool public isValueGenerated ( )return
bool -
getAttrs
array public getAttrs ( )return
array -
getIndexes
array public getIndexes ( )return
array -
copy
Creates and returns a copy of the current column. The created column is not applied to any table. -
equals
Returns true if column equals the passed column in every way.param
-
equalsType
Returns true if the column type and its configuration are equal. The column doesn't have to be in the same table nor have the same name.param
bool ignoreNull ignoreNull
return