org.kuali.rice.krad.keyvalues
Class PersistableBusinessObjectValuesFinder<T extends PersistableBusinessObject>

java.lang.Object
  extended by org.kuali.rice.krad.keyvalues.KeyValuesBase
      extended by org.kuali.rice.krad.keyvalues.PersistableBusinessObjectValuesFinder<T>
All Implemented Interfaces:
Serializable, KeyValuesFinder

public class PersistableBusinessObjectValuesFinder<T extends PersistableBusinessObject>
extends KeyValuesBase

This class is a Generic ValuesFinder that builds the list of KeyValuePairs it returns in getKeyValues() based on a BO along with a keyAttributeName and labelAttributeName that are specified.

See Also:
Serialized Form

Field Summary
protected  Class<T> businessObjectClass
           
protected  boolean includeBlankRow
           
protected  boolean includeKeyInDescription
           
protected  String keyAttributeName
           
protected  String labelAttributeName
           
 
Constructor Summary
PersistableBusinessObjectValuesFinder()
           
 
Method Summary
 List<KeyValue> getKeyValues()
          Build the list of KeyValues using the key (keyAttributeName) and label (labelAttributeName) of the list of all business objects found for the BO class specified.
 void setBusinessObjectClass(Class<T> businessObjectClass)
           
 void setIncludeBlankRow(boolean includeBlankRow)
           
 void setIncludeKeyInDescription(boolean includeKeyInDescription)
           
 void setKeyAttributeName(String keyAttributeName)
           
 void setLabelAttributeName(String labelAttributeName)
           
 String toString()
           
 
Methods inherited from class org.kuali.rice.krad.keyvalues.KeyValuesBase
clearInternalCache, getKeyLabel, getKeyLabelMap, getKeyValues, getOptionLabels, getOptionValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

businessObjectClass

protected Class<T extends PersistableBusinessObject> businessObjectClass

keyAttributeName

protected String keyAttributeName

labelAttributeName

protected String labelAttributeName

includeKeyInDescription

protected boolean includeKeyInDescription

includeBlankRow

protected boolean includeBlankRow
Constructor Detail

PersistableBusinessObjectValuesFinder

public PersistableBusinessObjectValuesFinder()
Method Detail

getKeyValues

public List<KeyValue> getKeyValues()
Build the list of KeyValues using the key (keyAttributeName) and label (labelAttributeName) of the list of all business objects found for the BO class specified.

Returns:
List of KeyValue objects
See Also:
org.kuali.keyvalues.KeyValuesFinder#getKeyValues()

setBusinessObjectClass

public void setBusinessObjectClass(Class<T> businessObjectClass)

setIncludeKeyInDescription

public void setIncludeKeyInDescription(boolean includeKeyInDescription)

setKeyAttributeName

public void setKeyAttributeName(String keyAttributeName)

setLabelAttributeName

public void setLabelAttributeName(String labelAttributeName)

setIncludeBlankRow

public void setIncludeBlankRow(boolean includeBlankRow)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.