NAME
Fey::Literal::Number - Represents a literal number in a SQL statement
SYNOPSIS
my $number = Fey::Literal::Number->new($number)
DESCRIPTION
This class represents a literal number in a SQL statement, either an integer or float.
INHERITANCE
This module is a subclass of Fey::Literal
.
METHODS
This class provides the following methods:
Fey::Literal::Number->new($number)
This method creates a new Fey::Literal::Number
object representing the number passed to the constructor.
$number->number()
Returns the number as passed to the constructor.
$number->sql()
$number->sql_with_alias()
$number->sql_or_alias()
Returns the appropriate SQL snippet.
ROLES
This class does the Fey::Role::Selectable
and Fey::Role::Comparable
roles.
AUTHOR
Dave Rolsky, <autarch@urth.org>
BUGS
See Fey for details on how to report bugs.
COPYRIGHT & LICENSE
Copyright 2006-2008 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.