planetj.possiblevalues
Class DistinctPV

java.lang.Object
  |
  +--planetj.possiblevalues.DistinctPV
All Implemented Interfaces:
IPossibleValueGetter
Direct Known Subclasses:
DistinctCachePV

public class DistinctPV
extends Object
implements IPossibleValueGetter

Gets all distinct column values from the DB


Constructor Summary
DistinctPV()
           
 
Method Summary
 RowCollection getPossibleValues(Field pField)
          It is recommended that your possible value class use the DataEngine.getRows() methods to return a RowCollection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistinctPV

public DistinctPV()
Method Detail

getPossibleValues

public RowCollection getPossibleValues(Field pField)
                                throws CMException
It is recommended that your possible value class use the DataEngine.getRows() methods to return a RowCollection. If the RowCollection returns 1 column, that column will be used for the value and display value. If the RowCollection returns 2 columns, it is assumed the 2nd column will be the display value.

Specified by:
getPossibleValues in interface IPossibleValueGetter
Returns:
RowCollection
CMException