NAME
Jifty::DBI::Column
DESCRIPTION
This class encapsulate's a single column in a Jifty::DBI::Record table description. It replaces the _accessible method in Jifty::DBI::Record.
It has the following accessors: name type default validator boolean refers_to readable writable length.
is_numeric
Returns true if the column is of some numeric type, otherwise returns false.
is_string
Returns true if this column is a text field
validator
Gets/sets the validator coderef for the column.
length
DEPRECATED. Use $column->max_length instead.
until
DEPRECATED. Use $column->till instead.
active
Returns the a true value if the column method exists for the current application version. The current application version is determined by checking the "schema_version" in Jifty::DBI::Record of the column's "record_class". This method returns a false value if the column is not yet been added or has been dropped.
This method returns a false value under these circumstances:
Both the
sincetrait andschema_versionmethod are defined andschema_versionis less than the version set onsince.Both the
tilltrait andschema_versionmethod are defined andschema_versionis greater than or equal to the version set ontill.
Otherwise, this method returns true.