org.kuali.rice.krad.keyvalues
Class PersistableBusinessObjectValuesFinder<T extends PersistableBusinessObject>
java.lang.Object
org.kuali.rice.krad.keyvalues.KeyValuesBase
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
businessObjectClass
protected Class<T extends PersistableBusinessObject> 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<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.