org.kuali.rice.krad.keyvalues
Class PersistableBusinessObjectValuesFinder
java.lang.Object
org.kuali.rice.krad.keyvalues.KeyValuesBase
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
businessObjectClass
protected Class<?> businessObjectClass
keyAttributeName
protected String keyAttributeName
labelAttributeName
protected String labelAttributeName
includeKeyInDescription
protected boolean includeKeyInDescription
includeBlankRow
protected boolean includeBlankRow
PersistableBusinessObjectValuesFinder
public PersistableBusinessObjectValuesFinder()
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.