The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

EntityModel::Query::Base - base class for EntityModel::Query-derived components

VERSION

version 0.102

SYNOPSIS

See Entitymodel::Query.

DESCRIPTION

See Entitymodel::Query.

register

Register a parse handler for the given key(s).

Called from subclass ->import methods to hook into the configuration parser:

 EntityModel::Query->new(
        x => [ ],
        y => [ ]
 )

will call the registered parse_x and parse_y methods to handle the two directives, unless those methods are already available on the class.

can_parse

If this class supports the parse_X method, or the given configuration key was registered by one of the subclasses, returns the appropriate parse handler.

Returns undef if no handler was available.

inlineSQL

normaliseInlineSQL

Merge adjacent plaintext sections in an inline SQL expression.

This would for example convert the following:

 'select', ' ', Entity::Field, ' ', 'from', ' ', Entity::Table

into:

 'select ', Entity::Field, ' from ', Entity::Table

decantValue

Extract a value.

decantQuotedValue

Extract a quoted value suitable for use in direct SQL strings.

The plain-string form of SQL query is only intended for debugging and tracing; regular queries should always use the prepared statement form provided by sqlAndParameters.

sqlString

sqlAndParameters

asString

INHERITED METHODS

EntityModel::BaseClass

clone, dump, new, sap

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.