public class Query extends Expression
| Constructor and Description |
|---|
Query()
Creates a new instance of
Query. |
| Modifier and Type | Method and Description |
|---|---|
Query |
andWhere(Expression where)
The where clause.
|
Query |
distinct()
Sets to distinct this query.
|
Query |
from(Collection<? extends Expression> fromColumns)
The from clause.
|
Query |
from(Expression... fromColumns)
The from clause.
|
Query |
groupby(Collection<? extends Expression> groupbyColumns)
The group by clause.
|
Query |
groupby(Expression... groupbyColumns)
The group by clause.
|
Query |
having(Expression having)
The having clause.
|
Query |
limit(Integer limit)
The limit clause.
|
Query |
offset(Integer offset)
The offset clause.
|
Query |
orderby(Collection<? extends Expression> orderbyColumns)
The order by clause.
|
Query |
orderby(Expression... orderbyColumns)
The order by clause.
|
Query |
select(Collection<? extends Expression> selectColumns)
The select clause.
|
Query |
select(Expression... selectColumns)
The select clause.
|
String |
translateDB2(PdbProperties properties)
DB2 SQL translation.
|
String |
translateH2(PdbProperties properties)
PostgreSQL SQL translation.
|
String |
translateMySQL(PdbProperties properties)
MySQL SQL translation.
|
String |
translateOracle(PdbProperties properties)
Oracle SQL translation.
|
String |
translatePostgreSQL(PdbProperties properties)
PostgreSQL SQL translation.
|
String |
translateSQLServer(PdbProperties properties)
SQLServer SQL translation.
|
Query |
where(Expression where)
The where clause.
|
alias, asc, desc, enclose, fullOuterJoin, innerJoin, isAliased, isEnclosed, isQuote, isWithNoLock, leftOuterJoin, rightOuterJoin, translate, unquote, withNoLockpublic Query()
Query.public Query distinct()
public Query select(Expression... selectColumns)
selectColumns - The objects.public Query select(Collection<? extends Expression> selectColumns)
selectColumns - The collection of select columns.public Query from(Expression... fromColumns)
fromColumns - The objects.public Query from(Collection<? extends Expression> fromColumns)
fromColumns - The from columns.public Query andWhere(Expression where)
and expression between old and new clauses.
Example:
query.where(eq(column("col1"),k(1)).andWhere(eq(column("col2"),k(2))
will be translated to
( "col1" = 1 ) AND ( "col2" = 2 )
where - The object.public Query where(Expression where)
where clauses previously defined.where - The object.public Query groupby(Expression... groupbyColumns)
groupbyColumns - The objects.public Query groupby(Collection<? extends Expression> groupbyColumns)
groupbyColumns - The group by columns.public Query having(Expression having)
having - The object.public Query orderby(Expression... orderbyColumns)
orderbyColumns - The objects.public Query orderby(Collection<? extends Expression> orderbyColumns)
orderbyColumns - The order by columns.public Query limit(Integer limit)
limit - The number of rows that the query returns.public Query offset(Integer offset)
offset - The start positionpublic String translateDB2(PdbProperties properties)
ExpressiontranslateDB2 in class Expressionproperties - The configuration.public String translateOracle(PdbProperties properties)
ExpressiontranslateOracle in class Expressionproperties - The configuration.public String translateMySQL(PdbProperties properties)
ExpressiontranslateMySQL in class Expressionproperties - The configuration.public String translateSQLServer(PdbProperties properties)
ExpressiontranslateSQLServer in class Expressionproperties - The configuration.public String translatePostgreSQL(PdbProperties properties)
ExpressiontranslatePostgreSQL in class Expressionproperties - The configuration.public String translateH2(PdbProperties properties)
ExpressiontranslateH2 in class Expressionproperties - The configuration.Copyright © 2013. All Rights Reserved.