{
    "mode": "perldoc",
    "parameter": "SQL::Statement::TermFactory",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/SQL%3A%3AStatement%3A%3ATermFactory/json",
    "generated": "2026-06-13T16:11:26Z",
    "synopsis": "my $termFactory = SQL::Statement::TermFactory->new($stmt);\nmy $whereTerms = $termFactory->buildCondition( $stmt->{whereclause} );\nmy $col = $termFactory->buildCondition( $stmt->{colobj}->{$name}->{content} );",
    "sections": {
        "NAME": {
            "content": "SQL::Statement::TermFactory - Factory for SQL::Statement::Term instances\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $termFactory = SQL::Statement::TermFactory->new($stmt);\nmy $whereTerms = $termFactory->buildCondition( $stmt->{whereclause} );\nmy $col = $termFactory->buildCondition( $stmt->{colobj}->{$name}->{content} );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This package implements a factory to create type and operation based terms. Those terms are used\nto access data from the table(s) - either when evaluating the where clause or returning column\ndata.\n\nThe concept of a factory can be studied in *Design Patterns* by the Gang of Four. The concept of\nusing polymorphism instead of conditions is suggested by Martin Fowler in his book\n*Refactoring*.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "buildCondition\nBuilds a condition object from a given (part of a) where clause. This method calls itself\nrecursively for *predicates*.\n",
            "subsections": []
        },
        "AUTHOR AND COPYRIGHT": {
            "content": "Copyright (c) 2001,2005 by Jeff Zucker: jzuckerATcpan.org Copyright (c) 2009-2020 by Jens\nRehsack: rehsackATcpan.org\n\nAll rights reserved.\n\nYou may distribute this module under the terms of either the GNU General Public License or the\nArtistic License, as specified in the Perl README file.\n",
            "subsections": []
        }
    },
    "summary": "SQL::Statement::TermFactory - Factory for SQL::Statement::Term instances",
    "flags": [],
    "examples": [],
    "see_also": []
}