public interface DbSqlContext
Modifier and Type | Method and Description |
---|---|
void |
addEncryptedProp(BeanProperty prop)
Add an encrypted property which will require additional binding.
|
void |
addJoin(String type,
String table,
TableJoinColumn[] cols,
String a1,
String a2,
String inheritance)
Add a join to the sql query.
|
DbSqlContext |
append(char s)
Append a char directly to the SQL buffer.
|
DbSqlContext |
append(String s)
Append a string directly to the SQL buffer.
|
void |
appendColumn(String column)
Append a column with the current table alias.
|
void |
appendColumn(String tableAlias,
String column)
Append a column with an explicit table alias.
|
void |
appendFormulaJoin(String sqlFormulaJoin,
boolean forceOuterJoin)
Append a Sql Formula join.
|
void |
appendFormulaSelect(String sqlFormulaSelect)
Append a Sql Formula select.
|
void |
appendRawColumn(String rawcolumnWithTableAlias)
Add a raw column to the sql.
|
String |
getContent()
Return the current context of the sql context.
|
BeanProperty[] |
getEncryptedProps()
Return a list of encrypted properties which require additional binding.
|
String |
getRelativePrefix(String propName) |
String |
getTableAlias(String prefix)
Return a table alias without many where clause joins.
|
String |
getTableAliasManyWhere(String prefix)
Return a table alias that takes into account many where joins.
|
int |
length()
Return the current content length.
|
String |
peekJoin()
Return the current join node.
|
String |
peekTableAlias()
Peek the current table alias.
|
void |
popJoin()
Pop a join node off the stack.
|
void |
popTableAlias()
Pop the current table alias from the stack.
|
void |
pushJoin(String prefix)
Push a join node onto the stack.
|
void |
pushSecondaryTableAlias(String alias) |
void |
pushTableAlias(String tableAlias)
Push the current table alias onto the stack.
|
void addJoin(String type, String table, TableJoinColumn[] cols, String a1, String a2, String inheritance)
void pushSecondaryTableAlias(String alias)
void pushTableAlias(String tableAlias)
void popTableAlias()
void addEncryptedProp(BeanProperty prop)
BeanProperty[] getEncryptedProps()
DbSqlContext append(char s)
DbSqlContext append(String s)
String peekTableAlias()
void appendRawColumn(String rawcolumnWithTableAlias)
void appendColumn(String tableAlias, String column)
void appendColumn(String column)
void appendFormulaSelect(String sqlFormulaSelect)
void appendFormulaJoin(String sqlFormulaJoin, boolean forceOuterJoin)
int length()
String getContent()
String peekJoin()
void pushJoin(String prefix)
void popJoin()
String getTableAlias(String prefix)
String getTableAliasManyWhere(String prefix)
Copyright © 2015. All Rights Reserved.