Back | Index
class parsetool.schema.Field
var columnName : String
var defaultValue(default,null) : String
var foreignKey : Null<ForeignKey>
The ForeignKey object this Field is a part of.
var magic(default,null) : FieldMagic
var name : String
var notNull : Bool
var parent(default,setParent) : Null<Field>
References the Field that was copied from, if this is a foreign key column. Otherwise null.
var root(default,null) : Table
The Table object which defined this column. Foreign Field-objects reference to their original 'creators'.
var selectAlias : String
The 'SELECT column AS' Alias name used in queries and manager classes.
var sqlDataType : Null<parsetool.sqlgenerator.AbstractDatatype>
Abstract SQL Datatype of this Field. Is NULL in unresolved classfields that reference other tables.
var templateVar : String
The 'haXe template-variable' name use this Field in queries and manager classes.
function isForeign() : Bool
function rootField() : Field
function toString() : String
static function addFromClassField(f : haxe.rtti.ClassField, table : Table) : Void
Takes haxe.rtti.ClassField data, and builds a Field object from it. This new Field will be added to the given table once all type-parameters are resolved.
Back | Index