public final class SortSpecification extends Object implements Cloneable, Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
m_DefaultAlias  | 
protected String | 
m_DefaultClass  | 
protected boolean | 
m_LiterallySpecified  | 
protected String | 
m_OrderByClause  | 
protected boolean | 
m_Resolved  | 
protected Vector | 
m_SortSpecs  | 
| Constructor and Description | 
|---|
SortSpecification()
Default constructor. 
 | 
SortSpecification(String orderBy)
Construct a SortSpecification with a literal order by clause. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addSortQualifier(SortQualifier sortqual)
Add a SortQualifier. 
 | 
void | 
addSortQualifier(String sortAttribute,
                boolean sortOrder)
Add a simple SortQualifier. 
 | 
String | 
getDefaultAlias()
Return the Default alias setting. 
 | 
String | 
getDefaultClass()
Return the Default Class setting. 
 | 
String | 
getOrderByClause(LibrarySessionInterface sess)
Returns the SQL order by clause that corresponds to this
 SortSpecification. 
 | 
SortQualifier[] | 
getSortQualifiers()
Returns the current set of SortQualifers as an array. 
 | 
void | 
resolve(LibrarySessionInterface sess)
Resolve the SortSpecificaton and verify that the setting are legal
 for the specified classes. 
 | 
void | 
setDefaultAlias(String defAlias)
Set the Default Alias. 
 | 
void | 
setDefaultClass(String defClass)
set the Default Class. 
 | 
static void | 
sortByClassId(LibraryObjectDefinition[] sort)  | 
static void | 
sortByClassId(LibraryObjectInterface[] sort)  | 
static void | 
sortById(LibraryObjectInterface[] sort)  | 
static void | 
sortByLongvalue(Long[] sort)  | 
protected Vector m_SortSpecs
protected String m_DefaultClass
protected String m_DefaultAlias
protected String m_OrderByClause
protected boolean m_Resolved
protected boolean m_LiterallySpecified
public SortSpecification()
public SortSpecification(String orderBy)
orderBy - the order by clausepublic void addSortQualifier(String sortAttribute, boolean sortOrder) throws IfsException
sortAttribute - the sort attribute namesortOrder - the corresponding sort order; if true, sort order
                      of ascending (asc) is used.
                      if false, descending (desc) sort order is used.IfsException - if operation fails.public void addSortQualifier(SortQualifier sortqual) throws IfsException
sortqual - the sort qualifierIfsException - if operation fails.public void setDefaultClass(String defClass) throws IfsException
defClass - the Default Class name.IfsException - if operation fails.public String getDefaultClass() throws IfsException
IfsException - if operation fails.public void setDefaultAlias(String defAlias) throws IfsException
defAlias - the alias.IfsException - if operation fails.public String getDefaultAlias() throws IfsException
IfsException - if operation fails.public SortQualifier[] getSortQualifiers() throws IfsException
IfsException - if operation fails.public String getOrderByClause(LibrarySessionInterface sess) throws IfsException
sess - the session contextIfsException - if operation fails.public void resolve(LibrarySessionInterface sess) throws IfsException
sess - the session contextIfsException - if operation fails.public static void sortByLongvalue(Long[] sort)
public static void sortById(LibraryObjectInterface[] sort) throws IfsException
IfsExceptionpublic static void sortByClassId(LibraryObjectInterface[] sort) throws IfsException
IfsExceptionpublic static void sortByClassId(LibraryObjectDefinition[] sort) throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.