Class Select
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.Select
-
public class Select extends Object
Representation of a select statement built bySelectAdapter.build()
-
-
Constructor Summary
Constructors Constructor Description Select()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(String source, String name)
void
addColumns(String... columns)
Add the list of simple columnsvoid
addFrom(Select sub, Alias alias)
void
addGroupBy(String... expressions)
void
addHavingPredicate(String predicate)
void
addOrderBy(String... expressions)
void
addTable(String tableName, Alias alias)
void
addTable(String schemaName, String tableName)
void
addTable(String schemaName, String tableName, Alias alias)
void
addWhere(String predicate)
static Alias
alias(String aliasStr)
Factory function for creating anAlias
from a stringstatic Predicate
predicate(String boolExpr)
static SelectAdapter
select(String... columns)
Factory to create a new instance of the builder needed to create this statementString
toString()
-
-
-
Method Detail
-
select
public static SelectAdapter select(String... columns)
Factory to create a new instance of the builder needed to create this statement- Returns:
-
alias
public static Alias alias(String aliasStr)
Factory function for creating anAlias
from a string- Parameters:
aliasStr
-- Returns:
-
addColumns
public void addColumns(String... columns)
Add the list of simple columns- Parameters:
columns
-
-
addWhere
public void addWhere(String predicate)
-
addGroupBy
public void addGroupBy(String... expressions)
-
addOrderBy
public void addOrderBy(String... expressions)
-
addHavingPredicate
public void addHavingPredicate(String predicate)
- Parameters:
predicate
-
-
-