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 |
addLimitForHandlingRowCount(String select,
boolean doRemoveOtherConstraints,
int limitedRowCount)
add LIMIT for select in order to control row count
|
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 transformpublic static String addLimitForHandlingRowCount(String select, boolean doRemoveOtherConstraints, int limitedRowCount)
select - specifies SELECT sqldoRemoveOtherConstraints - specified whether to remove other constraintslimitedRowCount - specifies the limitCopyright © 2016–2025. All rights reserved.