|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.dataservices.PossibleFilterValue
public class PossibleFilterValue
Specifies an object that wrappers a pair of formatted and unformatted data items that are retrieved within the context of getPossibleFilterValues(). This type of object is returned to the consumer who can then obtain the desired data whether it be formatted or unformatted data. *
Usage example: // iqService is an IntelligentQueryMetadataServiceInterface. IQDataServicesInterface iqDataServ = IQDataServicesFactory.newService(iqService); try { List possibleValues = iqDataServ.getPossibleFilterValues(dataItem); Iterator it = possibleValues.iterator(); PossibleFilterValue value = null; while (it.hasNext()) { value = (PossibleFilterValue)it.next(); System.out.println("Formatted: " + value.getFormatted()); // Make a call to get the JDBC result type int type = value.getJDBCType(); System.out.println("Unformatted: " + value.getUnformatted()); // Save unformatted data into a Java variable // In this case we know the data is Date type. Date myDate = (Date)value.getUnformatted(); // Do more stuff... } } catch (DataServicesException e) { // handle exception }
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getFormatted()
Returns a String representation of the formatted data value. |
int |
getJDBCType()
Returns the JDBC column type for the data value. |
MLSValueInterface |
getMlsValue()
|
java.lang.Object |
getUnformatted()
Returns an object containing the unformatted data value. |
int |
hashCode()
|
void |
setMlsValue(MLSValueInterface mlsValue)
|
Method Detail |
---|
public java.lang.String getFormatted() throws DataServicesException
DataServicesException
- - thrown if there is an error retreiving the data.public java.lang.Object getUnformatted() throws DataServicesException
DataServicesException
- - thrown if there is an error retreiving the data.public int getJDBCType()
public MLSValueInterface getMlsValue()
public void setMlsValue(MLSValueInterface mlsValue)
mlsValue
- The mlsValue to set.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |