1SQL::Statement::Term(3)User Contributed Perl DocumentatioSnQL::Statement::Term(3)
2
3
4

NAME

6       SQL::Statement::Term - base class for all terms
7

SYNOPSIS

9         # create a term with an SQL::Statement object as owner
10         my $term = SQL::Statement::Term->new( $owner );
11         # access the value of that term
12         $term->value( $eval );
13

DESCRIPTION

15       SQL::Statement::Term is an abstract base class providing the interface
16       for all terms.
17

INHERITANCE

19         SQL::Statement::Term
20

METHODS

22   new
23       Instantiates new term and stores a weak reference to the owner.
24
25   value
26       Abstract method which will return the value of the term. Must be
27       overridden by derived classes.
28
29   DESTROY
30       Destroys the term and undefines the weak reference to the owner.
31

NAME

33       SQL::Statement::ConstantTerm - term for constant values
34

SYNOPSIS

36         # create a term with an SQL::Statement object as owner
37         my $term = SQL::Statement::ConstantTerm->new( $owner, 'foo' );
38         # access the value of that term - returns 'foo'
39         $term->value( $eval );
40

DESCRIPTION

42       SQL::Statement::ConstantTerm implements a term which will always return
43       the same constant value.
44

INHERITANCE

46         SQL::Statement::ConstantTerm
47         ISA SQL::Statement::Term
48

METHODS

50   new
51       Instantiates new term and stores the constant to deliver and a weak
52       reference to the owner.
53
54   value
55       Returns the specified constant.
56

NAME

58       SQL::Statement::ColumnValue - term for column values
59

SYNOPSIS

61         # create a term with an SQL::Statement object as owner
62         my $term = SQL::Statement::ColumnValue->new( $owner, 'id' );
63         # access the value of that term - returns the value of the column 'id'
64         # of the currently active row in $eval
65         $term->value( $eval );
66

DESCRIPTION

68       SQL::Statement::ColumnValue implements a term which will return the
69       specified column of the active row.
70

INHERITANCE

72         SQL::Statement::ColumnValue
73         ISA SQL::Statement::Term
74

METHODS

76   new
77       Instantiates new term and stores the column name to deliver and a weak
78       reference to the owner.
79
80   value
81       Returns the specified column value.
82
84       Copyright (c) 2009-2020 by Jens Rehsack: rehsackATcpan.org
85
86       All rights reserved.
87
88       You may distribute this module under the terms of either the GNU
89       General Public License or the Artistic License, as specified in the
90       Perl README file.
91
92
93
94perl v5.32.0                      2020-10-22           SQL::Statement::Term(3)
Impressum