public abstract class Expression extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias
The expression alias if applicable.
|
protected boolean |
enclosed
True if the expression is to be enclosed in parenthesis.
|
protected List<Join> |
joins
The list of joins, if applicable.
|
protected boolean |
noLock
The SQL Server's no lock keyword.
|
protected String |
ordering
The string that specified the ordering if applicable.
|
protected boolean |
quotes
True if the expression is to be put around quotes.
|
| Constructor and Description |
|---|
Expression() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
alias(String alias)
Alias this expression.
|
Expression |
asc()
Sets ordering to ascendent.
|
Expression |
desc()
Sets ordering to descendent.
|
Expression |
enclose()
Enclose this expression with parenthesis.
|
Expression |
fullOuterJoin(Expression table,
Expression expr)
Sets a full outer join with the current table.
|
Expression |
innerJoin(Expression table,
Expression expr)
Sets an inner join with the current table.
|
boolean |
isAliased() |
boolean |
isEnclosed() |
boolean |
isQuote()
True if this expression is quoted, false otherwise.
|
boolean |
isWithNoLock() |
Expression |
leftOuterJoin(Expression table,
Expression expr)
Sets a left outer join with the current table.
|
Expression |
rightOuterJoin(Expression table,
Expression expr)
Sets a right outer join with the current table.
|
String |
translate(Dialect diaclect,
PdbProperties properties)
Translates this expression according to the dialect.
|
abstract String |
translateDB2(PdbProperties properties)
DB2 SQL translation.
|
abstract String |
translateH2(PdbProperties properties)
PostgreSQL SQL translation.
|
abstract String |
translateMySQL(PdbProperties properties)
MySQL SQL translation.
|
abstract String |
translateOracle(PdbProperties properties)
Oracle SQL translation.
|
abstract String |
translatePostgreSQL(PdbProperties properties)
PostgreSQL SQL translation.
|
abstract String |
translateSQLServer(PdbProperties properties)
SQLServer SQL translation.
|
Expression |
unquote()
Remove quotes for this expression.
|
Expression |
withNoLock()
Sets no lock keyword on SQL Server tables.
|
protected String alias
protected boolean enclosed
protected boolean quotes
protected String ordering
protected boolean noLock
public String translate(Dialect diaclect, PdbProperties properties)
diaclect - The dialect.properties - The configuration.public abstract String translateDB2(PdbProperties properties)
properties - The configuration.public abstract String translateOracle(PdbProperties properties)
properties - The configuration.public abstract String translateMySQL(PdbProperties properties)
properties - The configuration.public abstract String translateSQLServer(PdbProperties properties)
properties - The configuration.public abstract String translatePostgreSQL(PdbProperties properties)
properties - The configuration.public abstract String translateH2(PdbProperties properties)
properties - The configuration.public Expression alias(String alias)
alias - The alias.public Expression unquote()
public Expression enclose()
public Expression asc()
public Expression desc()
public boolean isEnclosed()
public boolean isQuote()
public boolean isAliased()
public Expression innerJoin(Expression table, Expression expr)
table - The table to join.expr - The expressions to join.public Expression leftOuterJoin(Expression table, Expression expr)
table - The table to join.expr - The expressions to join.public Expression rightOuterJoin(Expression table, Expression expr)
table - The table to join.expr - The expressions to join.public Expression fullOuterJoin(Expression table, Expression expr)
table - The table to join.expr - The expressions to join.public Expression withNoLock()
public boolean isWithNoLock()
Copyright © 2013. All Rights Reserved.