-
- All Implemented Interfaces:
public class Sql
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSql.Select
-
Field Summary
Fields Modifier and Type Field Description private final Stringsql
-
Method Summary
Modifier and Type Method Description abstract StringgetSql()abstract SqlreplaceColumns(Map<String, String> columns)Allows creating an Sql object made from the current one but with replace column names (if any). -
-
Method Detail
-
getSql
abstract String getSql()
-
replaceColumns
abstract Sql replaceColumns(Map<String, String> columns)
Allows creating an Sql object made from the current one but with replace column names (if any).
For example, suppose that we have sql like
select a, b from t where a > 1 order by ainitially and call this method withmapOf("a" to "x"). Resulting sql would beselect x, b from t where x > 1 order by x
-
-
-
-