{
    "content": [
        {
            "type": "text",
            "text": "# SQL::Statement::TermFactory (perldoc)\n\n## NAME\n\nSQL::Statement::TermFactory - Factory for SQL::Statement::Term instances\n\n## SYNOPSIS\n\nmy $termFactory = SQL::Statement::TermFactory->new($stmt);\nmy $whereTerms = $termFactory->buildCondition( $stmt->{whereclause} );\nmy $col = $termFactory->buildCondition( $stmt->{colobj}->{$name}->{content} );\n\n## DESCRIPTION\n\nThis 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\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **AUTHOR AND COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "SQL::Statement::TermFactory",
        "section": "",
        "mode": "perldoc",
        "summary": "SQL::Statement::TermFactory - Factory for SQL::Statement::Term instances",
        "synopsis": "my $termFactory = SQL::Statement::TermFactory->new($stmt);\nmy $whereTerms = $termFactory->buildCondition( $stmt->{whereclause} );\nmy $col = $termFactory->buildCondition( $stmt->{colobj}->{$name}->{content} );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR AND COPYRIGHT",
                "lines": 8,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}