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

@Transactional
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
private  Class<T> businessObjectClass
           
private  boolean includeBlankRow
           
private  boolean includeKeyInDescription
           
private  String keyAttributeName
           
private  String labelAttributeName
           
private static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
PersistableBusinessObjectValuesFinder()
           
 
Method Summary
 Class<T> getBusinessObjectClass()
           
 String getKeyAttributeName()
           
 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.
 String getLabelAttributeName()
           
 boolean isIncludeBlankRow()
           
 boolean isIncludeKeyInDescription()
           
 void setBusinessObjectClass(Class<T> businessObjectClass)
           
 void setIncludeBlankRow(boolean includeBlankRow)
           
 void setIncludeKeyInDescription(boolean includeKeyInDescription)
           
 void setKeyAttributeName(String keyAttributeName)
           
 void setLabelAttributeName(String labelAttributeName)
           
 
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, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

businessObjectClass

private Class<T extends PersistableBusinessObject> businessObjectClass

keyAttributeName

private String keyAttributeName

labelAttributeName

private String labelAttributeName

includeKeyInDescription

private boolean includeKeyInDescription

includeBlankRow

private 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()

getBusinessObjectClass

public Class<T> getBusinessObjectClass()
Returns:
the dataObjectClass

setBusinessObjectClass

public void setBusinessObjectClass(Class<T> businessObjectClass)
Parameters:
businessObjectClass - the dataObjectClass to set

isIncludeKeyInDescription

public boolean isIncludeKeyInDescription()
Returns:
the includeKeyInDescription

setIncludeKeyInDescription

public void setIncludeKeyInDescription(boolean includeKeyInDescription)
Parameters:
includeKeyInDescription - the includeKeyInDescription to set

getKeyAttributeName

public String getKeyAttributeName()
Returns:
the keyAttributeName

setKeyAttributeName

public void setKeyAttributeName(String keyAttributeName)
Parameters:
keyAttributeName - the keyAttributeName to set

getLabelAttributeName

public String getLabelAttributeName()
Returns:
the labelAttributeName

setLabelAttributeName

public void setLabelAttributeName(String labelAttributeName)
Parameters:
labelAttributeName - the labelAttributeName to set

isIncludeBlankRow

public boolean isIncludeBlankRow()
Returns:
the includeBlankRow

setIncludeBlankRow

public void setIncludeBlankRow(boolean includeBlankRow)
Parameters:
includeBlankRow - the includeBlankRow to set


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.