org.jooq
Interface SortField<T>

Type Parameters:
T - The field type
All Superinterfaces:
Adapter, Attachable, Comparable<NamedQueryPart>, NamedQueryPart, NamedTypeProviderQueryPart<T>, QueryPart, Serializable

public interface SortField<T>
extends NamedTypeProviderQueryPart<T>

A wrapper for a Field and a SortField

Author:
Lukas Eder
See Also:
Field.asc(), Field.desc()

Method Summary
 SortOrder getOrder()
          Get the underlying sort order of this sort field
 SortField<T> nullsFirst()
          Add a NULLS FIRST clause to this sort field
 SortField<T> nullsLast()
          Add a NULLS LAST clause to this sort field
 
Methods inherited from interface org.jooq.NamedTypeProviderQueryPart
getDataType, getDataType, getType
 
Methods inherited from interface org.jooq.NamedQueryPart
getName
 
Methods inherited from interface org.jooq.QueryPart
attach
 
Methods inherited from interface org.jooq.Adapter
internalAPI
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getOrder

SortOrder getOrder()
Get the underlying sort order of this sort field


nullsFirst

SortField<T> nullsFirst()
Add a NULLS FIRST clause to this sort field


nullsLast

SortField<T> nullsLast()
Add a NULLS LAST clause to this sort field



Copyright © 2012. All Rights Reserved.