public class SelectTransformer extends Object
| Constructor and Description |
|---|
SelectTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addFieldsToSelect(String select)
The constraints in the WHERE clause might reference
fields that are not retrieved in the SELECT.
|
static String |
removeConstraints(String select) |
static String |
removeOperations(String select)
For example, when we have "select count(*)" we are not interested
in the count, but the actual involved fields, so we want to
transform it into "select *" by removing the count() operation.
|
public static String addFieldsToSelect(String select)
select - the string containing the SQL SELECT commandpublic static String removeOperations(String select)
select - SQL command to transformCopyright © 2016–2024. All rights reserved.