SQL::Statement::TermFactory - Factory for SQL::Statement::Term instances


  my $termFactory = SQL::Statement::TermFactory->new($stmt);
  my $whereTerms = $termFactory->buildCondition( $stmt->{where_clause} );
  my $col = $termFactory->buildCondition( $stmt->{col_obj}->{$name}->{content} );


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 polymophism instead of conditions is suggested by Martin Fowler in his book Refactoring.


Copyright (c) 2001,2005 by Jeff Zucker: Copyright (c) 2008,2009 by Jens Rehsack:

Portions Copyright (C) 1998 by Jochen Wiedmann:

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.