GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Jifty::DBI::Column(3) User Contributed Perl Documentation Jifty::DBI::Column(3)

Jifty::DBI::Column - Encapsulates a single column in a Jifty::DBI::Record table

This class encapsulates 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".

Returns true if the column is of some numeric type, otherwise returns false.

Returns true if this column is a text field

Returns true if this column is a boolean

Returns a hash describing this column object with enough detail to fully describe it in the database. Intentionally skips "record_class", all column attributes starting with "_", and all column attributes which are undefined. The "known" attributes in the "attributes" hash are flattened and returned as well. The list of known attributes are:
container
label hints render_as
display_length
valid_values
available_values
autocompleted
documentation
no_placeholder
Setting this to a true value causes "load_by_cols" in Jifty::DBI::record to not use a placeholder when loading the column. This can allow the database to come up with better query plans in some cases.

Returns a hash describing this column object with enough detail to fully describe it in the database. Intentionally skips "record_class", all column attributes starting with "_", and all column attributes which are undefined.

Gets/sets the validator coderef for the column.

DEPRECATED. Use "$column->readable" instead.

DEPRECATED. Use "$column->writable" instead.

DEPRECATED. Use "$column->max_length" instead.

DEPRECATED. Use "$column->till" instead.

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 "since" trait and "schema_version" method are defined and "schema_version" is less than the version set on "since".
  • Both the "till" trait and "schema_version" method are defined and "schema_version" is greater than or equal to the version set on "till".

Otherwise, this method returns true.

2014-05-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.