Field Class

Used to represent an individual field in a model.

Constructors

There are no public constructors.

Public Methods

getName( ) returns String
getType( ) returns String
getColumnName( ) returns String
getColumnType( ) returns String
getForeignKey( ) returns ForeignKey
isLastModifiedDate( ) returns boolean
isModel( ) returns boolean
isArray( ) returns boolean
isRequired( ) returns boolean
Returns true if a value is required for this field. Default is false (nullable).
isRequired( boolean required ) returns void
isUnique( ) returns boolean
Returns true if the field value must be unique. Default is false.
isUnique( boolean unique ) returns void
hasDefaultValue( ) returns boolean
Returns true if the field has a default value.
getDefaultValue( ) returns Object
Returns the default value assigned to this field. Returns null if there is no default value.
setDefaultValue( Object defaultValue ) returns void
setLength( int length ) returns void
setSRID( Integer srid ) returns void