org.kuali.rice.krad.keyvalues
Class PersistableBusinessObjectValuesFinder

java.lang.Object
  extended by org.kuali.rice.krad.keyvalues.KeyValuesBase
      extended by org.kuali.rice.krad.keyvalues.PersistableBusinessObjectValuesFinder
Type Parameters:
T - business object type
All Implemented Interfaces:
Serializable, KeyValuesFinder

public class PersistableBusinessObjectValuesFinder
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<?> 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<?> 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<?> 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

setBusinessObjectClass

public void setBusinessObjectClass(Class<?> 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–2014 The Kuali Foundation. All rights reserved.