Interface QueryTranslator
public interface QueryTranslator
This is a translator interface for go over a DSQL
Query structure and easily translate it to a native one.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the final translated query.default OperatorTranslatorReturns an instance of anOperatorTranslatorthat is used to translate the the DSQL operators to the Native Query Language operators.voidvoidvoidtranslateComparison(String operator, Field field, Value<?> value) voidvoidtranslateFields(List<Field> fields) voidvoidtranslateLimit(int limit) voidtranslateOffset(int offset) voidvoidtranslateOrderByFields(List<Field> orderByFields, Direction direction) voidtranslateTypes(EntityType types)
-
Method Details
-
translateFields
-
translateTypes
-
translateOrderByFields
-
translateAnd
void translateAnd() -
translateOR
void translateOR() -
translateComparison
-
translateBeginExpression
void translateBeginExpression() -
translateInitPrecedence
void translateInitPrecedence() -
translateEndPrecedence
void translateEndPrecedence() -
translateLimit
void translateLimit(int limit) -
translateOffset
void translateOffset(int offset) -
operatorTranslator
Returns an instance of anOperatorTranslatorthat is used to translate the the DSQL operators to the Native Query Language operators. -
getTranslation
String getTranslation()Returns the final translated query.- Returns:
- an
Stringwith the query in Native Query Language.
-