|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IQueryRewriter
A query rewriter can be used for rewriting (part of) a query's string representation. This is usefull for databases that deviate from the SQL 99 compliant syntax which is delievered by the query and it's query item's toString() methods.
AbstractQueryRewriter,
JdbcDataContext| Method Summary | |
|---|---|
String |
escapeQuotes(String item)
Escapes the quotes within a String literal of a query item. |
ColumnType |
getColumnType(int jdbcType,
String nativeType,
Integer columnSize)
Gets the column type for a specific JDBC type (as defined in Types), native type name and column size. |
boolean |
isFirstRowSupported()
Gets whether this query rewriter is able to write the "First row" query property to the query string. |
boolean |
isMaxRowsSupported()
Gets whether this query rewriter is able to write the "Max rows" query property to the query string. |
String |
rewriteColumnType(ColumnType columnType)
Rewrites the name of a column type, as it is written in CREATE TABLE statements. |
String |
rewriteFilterItem(FilterItem whereItem)
|
String |
rewriteFromItem(FromItem item)
|
String |
rewriteQuery(Query query)
|
| Method Detail |
|---|
String rewriteFromItem(FromItem item)
String rewriteQuery(Query query)
String rewriteFilterItem(FilterItem whereItem)
boolean isMaxRowsSupported()
boolean isFirstRowSupported()
String escapeQuotes(String item)
String rewriteColumnType(ColumnType columnType)
columnType -
ColumnType getColumnType(int jdbcType,
String nativeType,
Integer columnSize)
Types), native type name and column size.
jdbcType - nativeType - columnSize -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||