|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.bicontext.BISearchResultsComparator
Implementation of BIComparator interface. This class is used when comparting (sorting) BISearchResult objects.
| Constructor Summary | |
BISearchResultsComparator(java.lang.String[] keys, boolean sepFolders)Constructor | |
BISearchResultsComparator(java.lang.String[] keys, boolean[] keyOrderings, boolean sepFolders)Constructor | |
BISearchResultsComparator(java.lang.String[] keys, boolean keyOrderings, boolean sepFolders)Constructor | |
| Method Summary | |
int |
compare(java.lang.Object o1, java.lang.Object o2)Compares two instances of BISearchResult based on their attributes and sorting order. |
ErrorHandler |
getErrorHandler()Returns ErrorHandler. |
java.util.Locale |
getLocale()Returns Locale |
void |
setErrorHandler(ErrorHandler eh)Sets ErrorHandler. |
void |
setKeysAscendingOrdering(boolean ordering)Sets ordering on sorting keys. |
void |
setKeysAscendingOrdering(boolean[] ordering)Sets ordering on sorting keys. |
void |
setLocale(java.util.Locale l)Sets Locale |
void |
setSeparatedFoldersOnSort(boolean sepFolders)Indicates whether folders should be clustered during sorting. |
void |
setSortingOptions(java.lang.String[] keys)Sets keys (attributes) on which to base object comparisons. |
void |
setSortingOptions(java.lang.String[] keys, boolean ascendingOrder)Sets keys (attributes) on which to base object comparisons. |
void |
setSortingOptions(java.lang.String[] keys, boolean[] orderKeys)Sets keys (attributes) on which to base object comparisons. |
void |
setSortKeys(java.lang.String[] keys)Sets sorting keys to be used for comparison of objects. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public BISearchResultsComparator(java.lang.String[] keys,
boolean sepFolders)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys.sepFolders - true if folders should be separated (clustered) in the returned results false if not. see setSortingOptions methods
public BISearchResultsComparator(java.lang.String[] keys,
boolean keyOrderings,
boolean sepFolders)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys.keyOrderings - true if desired comparison order is ascending fasle if descending.sepFolders - true if folders should be separated (clustered) in the returned results false if not. see setSortingOptions methods
public BISearchResultsComparator(java.lang.String[] keys,
boolean[] keyOrderings,
boolean sepFolders)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys.keyOrderings - an array of orderings (true if ascending and fasle if descending) for each key in keyOrderings. The number of elements in this array should match the number of elements in keyOrderings array.sepFolders - true if folders should be separated (clustered) in the returned results false if not. see setSortingOptions methods| Method Detail |
public void setSortingOptions(java.lang.String[] keys)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys.
public void setSortingOptions(java.lang.String[] keys,
boolean ascendingOrder)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys.keyOrderings - true if desired comparison order is ascending fasle if descending.
public void setSortingOptions(java.lang.String[] keys,
boolean[] orderKeys)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys.orderKeys - an array of orderings (true if ascending and fasle if descending) for each key in keyOrderings. The number of elements in this array should match the number of elements in keyOrderings array.
public int compare(java.lang.Object o1,
java.lang.Object o2)
BISearchResult based on their attributes and sorting order.compare in interface java.util.Comparatoro1 - the first object to compareo2 - the second object to comparetrue (ascending) or last if false (descending). Null attribute values come after non-null values in ascending order. Ascending order is assumed for all missing sorting order keys.public void setSortKeys(java.lang.String[] keys)
keys - an array of String objects that represent sorting keys. Comparison of two object will be performed based on these keys (attributes).public void setKeysAscendingOrdering(boolean ordering)
ordering - true if desired comparison order is ascending fasle if descending.public void setKeysAscendingOrdering(boolean[] ordering)
ordering - an array of orderings (true if ascending and fasle if descending) for each key in keyOrderings. The number of elements in this array should match the number of elements in keyOrderings array.public void setSeparatedFoldersOnSort(boolean sepFolders)
sepFolders - true if folders should be separated, false otherwise.public void setLocale(java.util.Locale l)
LocalesetLocale in interface BIComparatorl - Locale object according to which comparisons will be performedpublic java.util.Locale getLocale()
LocalegetLocale in interface BIComparatorLocale object according to which comparisons are performedpublic void setErrorHandler(ErrorHandler eh)
ErrorHandler.setErrorHandler in interface BIComparatoreh - ErrorHandler objectpublic ErrorHandler getErrorHandler()
ErrorHandler.getErrorHandler in interface BIComparatorErrorHandler object
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||