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:
Last modified
$Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the alias of the selected expression.
    Get the expression object representing the selected expression.
    boolean
    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 Details

    • 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