DBIx::XMLServer::NumberField - integer field type
This class implements the built-in integer field type of DBIx::XMLServer. Only the where method is overridden from the base class.
$sql_expression = $number_field->where($condition);
The condition may consist of one of the numeric comparison operators '=', '>', '<', '>=' or '<=', followed by an integer. The integer must match the regular expression '-?\d+'. The resulting SQL expression is simply
<field> <condition> <value> .
If the operator is '=', then instead of a single integer a comma-separated list of integers may be given. Then the SQL expression is
<field> IN (<value1>, <value2>, ...) .
Alternatively, the condition may be empty, in which case the SQL expression is
<field> IS NOT NULL .
If the condition is the character '!', then the SQL expression is
<field> IS NULL .
DBIx::XMLServer::Field
Martin Bright <martin@boojum.org.uk>
Copyright (C) 2003-4 Martin Bright
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DBIx::XMLServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::XMLServer
CPAN shell
perl -MCPAN -e shell install DBIx::XMLServer
For more information on module installation, please visit the detailed CPAN module installation guide.