2.17.2: 2011-06-17

net.sf.basedb.core.query
Interface Select

All Superinterfaces:
QueryElement
All Known Implementing Classes:
ExpressionSelect

public interface Select
extends QueryElement

A selection query element. This is a query element that can appear in the SELECT part of a Query. Typically a selection consists of the name of a property or column and an alias. For example:

SELECT item.name AS name ...
The Selects factory class contains some methods for creating selection elements.

Version:
2.0
Author:
Nicklas
See Also:
Selects
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Method Summary
 String getAlias()
          Get the alias of the selected expression.
 Expression getExpression()
          Get the expression object representing the selected expression.
 boolean useInDistinctCount()
          If this expression should be use in count distinct queries or not.
 
Methods inherited from interface net.sf.basedb.core.query.QueryElement
getChildren, toQl
 

Method Detail

getAlias

String getAlias()
Get the alias of the selected expression.

Returns:
The alias, or null if no alias has been specified

getExpression

Expression getExpression()
Get the expression object representing the selected expression.

Returns:
An expression object

useInDistinctCount

boolean useInDistinctCount()
If this expression should be use in count distinct queries or not.
SELECT COUNT(DISTINCT expression)

Returns:
TRUE or FALSE

2.17.2: 2011-06-17