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


Manual Reference Pages  -  DBIX::SQLENGINE::CRITERIA::COMPARISON (3)

.ds Aq ’

NAME

DBIx::SQLEngine::Criteria::Comparison - Superclass for comparisons

CONTENTS

SYNOPSIS



  my $crit = DBIx::SQLEngine::Criteria::ComparisonSubclass->new( $key, $value );



DESCRIPTION

DBIx::SQLEngine::Criteria::Comparison objects provide a structured representation of certain simple kinds of SQL criteria clauses, those of the form column_or_expression comparison_operator comparison_value.

Each Criteria::Comparison object is implemented in the form of blessed arrayref, with two items in the array. The first is the column name (or SQL expression) to be compared against, and the second is the comparison value. The type of comparison operator to use is indicated by which subclass of Criteria::Comparison the object is blessed into.

The comparison value is assumed by default to be a literal string or numeric value, and uses parameter substitution to avoid having to deal with quoting. If you actually want to compare against another column or expression, pass a reference to the column name or expression string. For example, to select records where first_name = last_name, you could use:



  DBIx::SQLEngine::Criteria::Equality->(first_name, \last_name);



REFERENCE

    Constructor

new ( $key, $value ) : $Comparison Constructor.

    Content Access

expr () : $fieldname
expr ( $fieldname ) Accessor.
compv () : $comparsion_value
compv ( $comparsion_value ) Accessor.

    Evaluation

sql_comparator () : $operator Returns operator associated with this criteria, such as = or like.
sql_where () : $sql_where_expression Generates SQL criteria expression.

Automatically converts = NULL to IS NULL.

SEE ALSO

See DBIx::SQLEngine::Criteria and DBIx::SQLEngine::Criteria::Comparison for more information on using these objects.

See DBIx::SQLEngine for the overall interface and developer documentation.

See DBIx::SQLEngine::Docs::ReadMe for general information about this distribution, including installation and license information.

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


perl v5.20.3 SQLENGINE::CRITERIA::COMPARISON (3) 2004-04-20

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