public class Select extends QuerySource
Constructor and Description |
---|
Select(List<String> tables) |
Select(QuerySource... querySources) |
Select(String... tables) |
getNestedAlias, shouldWrapWhenNested
getParameterValues, getSqlFragment, isPretty, printSqlParts, toString
public Select(String... tables)
public Select(QuerySource... querySources)
public Select setPretty(boolean pretty)
setPretty
in class QuerySource
public Select setNestedAlias(String nestedAlias)
setNestedAlias
in class QuerySource
public List<QuerySource> getQuerySources()
public List<String> getTables()
getTables
in class QuerySource
public String getTable()
Returns the first table in the list of tables.
getTables()
instead of this method.getTable
in class QuerySource
public boolean containsTable(String table)
containsTable
in class QuerySource
public QuerySelection getSelection()
public Select setSelection(QuerySelection selection)
@Deprecated public QueryCriteria getCriteria()
getWhere()
public QueryCriteria getWhere()
public Select setWhere(QueryCriteria where)
public Select where(QueryCriteriaPart criteria)
public Select clearWhere()
public QueryGrouping getGrouping()
public Select setGrouping(QueryGrouping grouping)
public QueryCriteria getHaving()
public Select setHaving(QueryCriteria having)
public Select having(QueryCriteriaPart criteria)
public Select clearHaving()
public QueryOrder getOrder()
public Select setOrder(QueryOrder order)
public Select limit(int count)
public Select clearLimit()
public Select page(int page, int pageSize)
public Integer getOffset()
public Integer getCount()
public void collectSqlFragment(CodeWriter writer)
collectSqlFragment
in class SqlPart
protected void collectQuerySourceSqlFragment(CodeWriter writer, QuerySource querySource)
public void collectParameterValues(List<Object> values)
collectParameterValues
in class SqlPart
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.