public final class P2JIndexComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
ABBREVIATED
Flag indicating abbreviated status (Progress semantic)
|
private static int |
CHARACTER
Flag indicating component represents character data
|
private static int |
DESCENDING
Flag indicating descending (non-default) sort direction
|
private int |
flags
Property flags
|
private static int |
IGNORE_CASE
Flag indicating component ignores case (character data only)
|
private java.lang.String |
name
Name of index field or column
|
Constructor and Description |
---|
P2JIndexComponent(P2JIndexComponent component)
Copy constructor.
|
P2JIndexComponent(java.lang.String name,
boolean descending,
boolean isChar,
boolean ignoreCase,
boolean abbreviated)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test for equivalence;
o is considered equivalent if it
a Component instance with the same name, sort
direction, and abbreviation support as this component instance. |
java.lang.String |
getName()
Get index component's name.
|
int |
hashCode()
Hash code implementation which is consistent with this class'
implementation of
equals(java.lang.Object) . |
boolean |
isAbbreviated()
Indicate if index component supports Progress semantic of using
abbreviated data for a sort or selection match.
|
boolean |
isCharType()
Indicate if index component represents a character field.
|
boolean |
isDescending()
Indicate if index component uses descending (non-default) sort
direction.
|
boolean |
isIgnoreCase()
Indicate if index component represents a character field and ignores
case in data comparisons.
|
private static final int DESCENDING
private static final int CHARACTER
private static final int IGNORE_CASE
private static final int ABBREVIATED
private final java.lang.String name
private final int flags
public P2JIndexComponent(java.lang.String name, boolean descending, boolean isChar, boolean ignoreCase, boolean abbreviated)
name
- Field or column name.descending
- true
if component has non-default, descending
sort direction; false
if ascending.isChar
- true
if this component represents a character
field.ignoreCase
- true
if this component represents a character
field AND case is ignored when sorting index, else
false
.abbreviated
- true
if index component supports the Progress
semantic of using abbreviated data for a sort or selection
match. Valid only if this is the last component of the
index (not enforced here).public P2JIndexComponent(P2JIndexComponent component)
component
- Instance to copy.public java.lang.String getName()
public boolean isDescending()
true
if sort direction is descending, else
false
if ascending.public boolean isCharType()
true
if case is ignored; else false
.public boolean isIgnoreCase()
true
if case is ignored; else false
.public boolean isAbbreviated()
true
if abbreviated match is supported, else
false
.public boolean equals(java.lang.Object o)
o
is considered equivalent if it
a Component
instance with the same name, sort
direction, and abbreviation support as this component instance.equals
in class java.lang.Object
o
- An object instance, presumably a Component
object, to test for equivalence with this object.true
if o
is equivalent to this
instance, else false
.public int hashCode()
equals(java.lang.Object)
.hashCode
in class java.lang.Object