Class OrderingTranslator
java.lang.Object
org.apache.cayenne.access.translator.select.QueryAssemblerHelper
org.apache.cayenne.access.translator.select.OrderingTranslator
public class OrderingTranslator extends QueryAssemblerHelper
Translates query ordering to SQL.
- 
Field SummaryFields Modifier and Type Field Description protected List<String>orderByColumnListFields inherited from class org.apache.cayenne.access.translator.select.QueryAssemblerHelperout, queryAssembler, strategy
- 
Constructor SummaryConstructors Constructor Description OrderingTranslator(QueryAssembler queryAssembler)
- 
Method SummaryModifier and Type Method Description protected voidappendFunction(Expression exp)protected voiddoAppendPart()Translates query Ordering list to SQL ORDER BY clause.List<String>getOrderByColumnList()Returns the column expressions (not Expressions) used in the order by clause.Methods inherited from class org.apache.cayenne.access.translator.select.QueryAssemblerHelperappendDbPath, appendLikeEscapeCharacter, appendLiteral, appendLiteralDirect, appendObjPath, appendPart, getDbEntity, getObjEntity, paramsDbType, processColumn, processColumnWithQuoteSqlIdentifiers, processRelTermination, processRelTermination, setForceJoinForRelations
- 
Field Details- 
orderByColumnList
 
- 
- 
Constructor Details- 
OrderingTranslator
 
- 
- 
Method Details- 
doAppendPartprotected void doAppendPart()Translates query Ordering list to SQL ORDER BY clause. Ordering list is obtained fromqueryAssembler's query object. In a process of building of ORDER BY clause,queryAssembleris notified when a join needs to be added.- Specified by:
- doAppendPartin class- QueryAssemblerHelper
- Since:
- 3.0
 
- 
appendFunction
- 
getOrderByColumnListReturns the column expressions (not Expressions) used in the order by clause. E.g., in the case of an case-insensitive order by, an element of the list would beUPPER(<column reference>)
 
-