SQLFunction Class Reference
[Dynamic query builder]

Reference for calling built-in database functions. More...

Inheritance diagram for SQLFunction:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($name)
 getAlias ()
 getName ()
 setAlias ($alias)
 
Returns:
SQLFunction

 setAggregateAll ()
 
Returns:
SQLFunction

 setAggregateDistinct ()
 
Returns:
SQLFunction

 toMapped (StorableDAO $dao, JoinCapableQuery $query)
 
Returns:
SQLFunction

 toDialectString (Dialect $dialect)

Static Public Member Functions

static create ($name)
 
Returns:
SQLFunction


Public Attributes

const AGGREGATE_ALL = 1
const AGGREGATE_DISTINCT = 2

Private Attributes

 $name = null
 $alias = null
 $aggregate = null
 $args = array()


Detailed Description

Reference for calling built-in database functions.

Definition at line 18 of file SQLFunction.class.php.


Constructor & Destructor Documentation

SQLFunction::__construct ( name  ) 

Definition at line 44 of file SQLFunction.class.php.

References $args, and $name.


Member Function Documentation

static SQLFunction::create ( name  )  [static]

Returns:
SQLFunction

Definition at line 34 of file SQLFunction.class.php.

References $args, and $name.

Referenced by CountProjection::getFunction(), TransparentDaoWorker::getQueryResult(), NullDaoWorker::getQueryResult(), CommonDaoWorker::getQueryResult(), UnifiedContainerWorker::makeCountQuery(), AggregateProjection::process(), EqualsLowerExpression::toDialectString(), and toMapped().

SQLFunction::getAlias (  ) 

Implements Aliased.

Definition at line 60 of file SQLFunction.class.php.

SQLFunction::getName (  ) 

Definition at line 65 of file SQLFunction.class.php.

SQLFunction::setAlias ( alias  ) 

Returns:
SQLFunction

Definition at line 73 of file SQLFunction.class.php.

References $alias.

SQLFunction::setAggregateAll (  ) 

Returns:
SQLFunction

Definition at line 83 of file SQLFunction.class.php.

SQLFunction::setAggregateDistinct (  ) 

Returns:
SQLFunction

Definition at line 93 of file SQLFunction.class.php.

SQLFunction::toMapped ( StorableDAO dao,
JoinCapableQuery query 
)

Returns:
SQLFunction

Implements MappableObject.

Definition at line 103 of file SQLFunction.class.php.

References create(), and ProtoDAO::guessAtom().

Here is the call graph for this function:

SQLFunction::toDialectString ( Dialect dialect  ) 

Implements DialectString.

Definition at line 123 of file SQLFunction.class.php.

References $args, $out, Dialect::fieldToString(), Assert::isTrue(), Dialect::quoteValue(), and Dialect::toCasted().

Here is the call graph for this function:


Member Data Documentation

const SQLFunction::AGGREGATE_ALL = 1

Definition at line 22 of file SQLFunction.class.php.

const SQLFunction::AGGREGATE_DISTINCT = 2

Definition at line 23 of file SQLFunction.class.php.

SQLFunction::$name = null [private]

Definition at line 25 of file SQLFunction.class.php.

Referenced by __construct(), and create().

SQLFunction::$alias = null [private]

Definition at line 26 of file SQLFunction.class.php.

Referenced by setAlias().

SQLFunction::$aggregate = null [private]

Definition at line 27 of file SQLFunction.class.php.

SQLFunction::$args = array() [private]

Definition at line 29 of file SQLFunction.class.php.

Referenced by __construct(), create(), and toDialectString().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:30 2007 for onPHP by  doxygen 1.5.4