Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.bicontext
Interface BIComparator

All Superinterfaces:
java.util.Comparator, java.io.Serializable
All Known Implementing Classes:
BISearchResultsComparator

public interface BIComparator
extends java.util.Comparator, java.io.Serializable

BIComparator interface. Adds four methods to Comparator: set/getLocale, set/getErrorHandler. Locale information allows comparisons to be lenguage-dependent.


Method Summary
 ErrorHandler getErrorHandler()
          Returns and ErrorHandler object.
 java.util.Locale getLocale()
          Returns Locale that detemines the language used for comparisons.
 void setErrorHandler(ErrorHandler eh)
          Sets an ErrorHandler object.
 void setLocale(java.util.Locale l)
          Sets Locale to detemine the language used for comparisons.

 

Methods inherited from interface java.util.Comparator
compare, equals

 

Method Detail

setLocale

public void setLocale(java.util.Locale l)
Sets Locale to detemine the language used for comparisons. This method has to be explicitly called when creating a BIComparator instance to ensure that sorting is performed in the correct Locale.
Parameters:
l - a Locale object.

getLocale

public java.util.Locale getLocale()
Returns Locale that detemines the language used for comparisons.
Returns:
a Locale object.

setErrorHandler

public void setErrorHandler(ErrorHandler eh)
Sets an ErrorHandler object.
Parameters:
eh - ErrorHandler

getErrorHandler

public ErrorHandler getErrorHandler()
Returns and ErrorHandler object.
Returns:
ErrorHandler

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.