org.hibernate.sql
Class SelectFragment

java.lang.Object
  extended by org.hibernate.sql.SelectFragment

public class SelectFragment
extends Object

A fragment of an SQL SELECT clause

Author:
Gavin King

Constructor Summary
SelectFragment()
           
 
Method Summary
 SelectFragment addColumn(String columnName)
           
 SelectFragment addColumn(String tableAlias, String columnName)
           
 SelectFragment addColumn(String tableAlias, String columnName, String columnAlias)
           
 SelectFragment addColumns(String[] columnNames)
           
 SelectFragment addColumns(String tableAlias, String[] columnNames)
           
 SelectFragment addColumns(String tableAlias, String[] columnNames, String[] columnAliases)
           
 SelectFragment addFormula(String tableAlias, String formula, String formulaAlias)
           
 SelectFragment addFormulas(String tableAlias, String[] formulas, String[] formulaAliases)
           
 SelectFragment setExtraSelectList(CaseFragment caseFragment, String fragmentAlias)
           
 SelectFragment setExtraSelectList(String extraSelectList)
           
 SelectFragment setSuffix(String suffix)
           
 SelectFragment setUsedAliases(String[] aliases)
           
 String toFragmentString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectFragment

public SelectFragment()
Method Detail

setUsedAliases

public SelectFragment setUsedAliases(String[] aliases)

setExtraSelectList

public SelectFragment setExtraSelectList(String extraSelectList)

setExtraSelectList

public SelectFragment setExtraSelectList(CaseFragment caseFragment,
                                         String fragmentAlias)

setSuffix

public SelectFragment setSuffix(String suffix)

addColumn

public SelectFragment addColumn(String columnName)

addColumns

public SelectFragment addColumns(String[] columnNames)

addColumn

public SelectFragment addColumn(String tableAlias,
                                String columnName)

addColumn

public SelectFragment addColumn(String tableAlias,
                                String columnName,
                                String columnAlias)

addColumns

public SelectFragment addColumns(String tableAlias,
                                 String[] columnNames)

addColumns

public SelectFragment addColumns(String tableAlias,
                                 String[] columnNames,
                                 String[] columnAliases)

addFormulas

public SelectFragment addFormulas(String tableAlias,
                                  String[] formulas,
                                  String[] formulaAliases)

addFormula

public SelectFragment addFormula(String tableAlias,
                                 String formula,
                                 String formulaAlias)

toFragmentString

public String toFragmentString()