Class QueryOrder
java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.jdbc.sql.select.QueryPart
com.northconcepts.datapipeline.jdbc.sql.select.QueryOrder
The ORDER BY clause of a
Select; renders nothing when it has no fields.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends the fields in ascending order;nullis ignored.Appends the fields in ascending order.Appends a field in the given order, addingNULLS FIRSTorNULLS LASTunlessnullsFirstis null.clear()voidcollectParameterValues(List<Object> values) Appends the values for this part's?parameters to the list in order; adds nothing by default.voidcollectSqlFragment(CodeWriter writer) Writes this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.getParts()booleanisEmpty()booleanMethods inherited from class com.northconcepts.datapipeline.jdbc.sql.SqlPart
getParameterValues, getSqlFragment, isPretty, printSqlParts, setPretty, toString
-
Constructor Details
-
QueryOrder
public QueryOrder()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
isNotEmpty
public boolean isNotEmpty() -
clear
-
add
Appends the fields in ascending order. -
add
Appends the fields in ascending order;nullis ignored. -
add
-
add
Appends a field in the given order, addingNULLS FIRSTorNULLS LASTunlessnullsFirstis null. -
getParts
-
collectSqlFragment
Description copied from class:SqlPartWrites this part's SQL to the writer; used bySqlPart.getSqlFragment()and by enclosing parts.- Specified by:
collectSqlFragmentin classSqlPart
-
collectParameterValues
Description copied from class:SqlPartAppends the values for this part's?parameters to the list in order; adds nothing by default.- Overrides:
collectParameterValuesin classSqlPart
-