DBIx::XMLServer::BooleanField - Boolean field type
This class implements the built-in Boolean field type of DBIx::XMLServer. The where and value methods are overridden from the base class.
$sql_expression = $boolean_field->where($condition);
The condition must either be empty, or be equal to one of the following:
! =1 =y =yes =true =0 =n =no =false .
If the condition is empty, then the SQL expression is
<field> IS NOT NULL .
If the condition is the character '!', then the SQL expression is
<field> IS NULL .
Otherwise, the SQL expression returned is equal to
<field> = 'Y' or <field> = 'N'
accordingly.
The value is either 'true' or 'false', as required by the xsi:boolean type in XML Schema.
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.