SQL::Statement::TermFactory(3pmUser Contributed Perl DocumentatioSQL::Statement::TermFactory(3pm)
NAME
SQL::Statement::TermFactory - Factory for SQL::Statement::Term instances
SYNOPSIS
my $termFactory = SQL::Statement::TermFactory->new($stmt);
my $whereTerms = $termFactory->buildCondition( $stmt->{where_clause} );
my $col = $termFactory->buildCondition( $stmt->{col_obj}->{$name}->{content} );
DESCRIPTION
This package implements a factory to create type and operation based terms. Those terms
are used to access data from the table(s) - either when evaluating the where clause or
returning column data.
The concept of a factory can be studied in Design Patterns by the Gang of Four. The
concept of using polymorphism instead of conditions is suggested by Martin Fowler in his
book Refactoring.
METHODS
buildCondition
Builds a condition object from a given (part of a) where clause. This method calls itself
recursively for predicates.
AUTHOR AND COPYRIGHT
Copyright (c) 2001,2005 by Jeff Zucker: jzuckerATcpan.org Copyright (c) 2009-2020 by Jens
Rehsack: rehsackATcpan.org
All rights reserved.
You may distribute this module under the terms of either the GNU General Public License or
the Artistic License, as specified in the Perl README file.
perl v5.30.3 2020-10-23 SQL::Statement::TermFactory(3pm)
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2025-11-21 17:58 @216.73.216.164 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)