|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.naming.ldap.SortKey
public class SortKey
A sort key and its associated sort parameters. This class implements a sort key which is used by the LDAPv3 Control for server-side sorting of search results as defined in RFC 2891.
SortControl
Constructor Summary | |
---|---|
SortKey(String attrID)
Creates the default sort key for an attribute. |
|
SortKey(String attrID,
boolean ascendingOrder,
String matchingRuleID)
Creates a sort key for an attribute. |
Method Summary | |
---|---|
String |
getAttributeID()
Retrieves the attribute ID of the sort key. |
String |
getMatchingRuleID()
Retrieves the matching rule ID used to order the attribute values. |
boolean |
isAscending()
Determines the sort order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortKey(String attrID)
attrID
- The non-null ID of the attribute to be used as a sort
key.public SortKey(String attrID, boolean ascendingOrder, String matchingRuleID)
attrID
- The non-null ID of the attribute to be used as
a sort key.ascendingOrder
- If true then entries are arranged in ascending
order. Otherwise there are arranged in
descending order.matchingRuleID
- The possibly null ID of the matching rule to
use to order the attribute values. If not
specified then the ordering matching rule
defined for the sort key attribute is used.Method Detail |
---|
public String getAttributeID()
public boolean isAscending()
public String getMatchingRuleID()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.