|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netscape.ldap.LDAPSortKey
Represents sorting instructions for a particular attribute.
Field Summary | |
static int |
REVERSE
|
Constructor Summary | |
LDAPSortKey(java.lang.String keyDescription)
Constructs a new LDAPSortKey object that will
sort based on the specified instructions. |
|
LDAPSortKey(java.lang.String key,
boolean reverse)
Constructs a new LDAPSortKey object that will
sort based on the specified attribute and sort order. |
|
LDAPSortKey(java.lang.String key,
boolean reverse,
java.lang.String matchRule)
Constructs a new LDAPSortKey object that will
sort based on the specified attribute, sort order, and matching
rule. |
Method Summary | |
java.lang.String |
getKey()
Returns the attribute by which to sort. |
java.lang.String |
getMatchRule()
Returns the object ID (OID) of the matching rule used for sorting. |
boolean |
getReverse()
Returns true if sorting is to be done in descending order. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int REVERSE
Constructor Detail |
public LDAPSortKey(java.lang.String keyDescription)
LDAPSortKey
object that will
sort based on the specified instructions.keyDescription
- a single attribute specification by which to sort
If preceded by a hyphen ("-"), the attribute is sorted in reverse order.
You can also specify the object ID (OID) of a matching rule after
a colon (":"). For example:
"cn"
(sort by the cn
attribute)
"-cn"
(sort by the cn
attribute in
reverse order)
"-cn:1.2.3.4"
(sort by the cn
attribute in reverse order and use the matching rule identified
by the OID 1.2.3.4)
LDAPSortControl
,
LDAPVirtualListControl
public LDAPSortKey(java.lang.String key, boolean reverse)
LDAPSortKey
object that will
sort based on the specified attribute and sort order.key
- a single attribute by which to sort. For example:
"cn"
(sort by the cn
attribute)
"givenname"
(sort by the givenname
attribute)
reverse
- if true
, the sorting is done in
descending orderLDAPSortControl
,
LDAPVirtualListControl
public LDAPSortKey(java.lang.String key, boolean reverse, java.lang.String matchRule)
LDAPSortKey
object that will
sort based on the specified attribute, sort order, and matching
rule.key
- a single attribute by which to sort. For example:
"cn"
(sort by the cn
attribute)
"givenname"
(sort by the givenname
attribute)
reverse
- if true
, the sorting is done in
descending ordermatchRule
- object ID (OID) of the matching rule for
the attribute (for example, 1.2.3.4
)LDAPSortControl
,
LDAPVirtualListControl
Method Detail |
public java.lang.String getKey()
public boolean getReverse()
true
if sorting is to be done in descending order.true
if sorting is to be done in descending order.public java.lang.String getMatchRule()
null
is returned.null
if the sorting instructions specify no matching rule.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |