org.kuali.rice.kew.rule
Class RuleTemplateOptionBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.kew.rule.RuleTemplateOptionBo
All Implemented Interfaces:
Serializable, Identifiable, Versioned, ModelObjectBasic, RuleTemplateOptionContract, BusinessObject

@Entity
public class RuleTemplateOptionBo
extends BusinessObjectBase
implements RuleTemplateOptionContract

Defines default values and other preset information for a RuleBaseValues which is based off of the associated RuleTemplateBo.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
RuleBaseValues, RuleTemplateBo, Serialized Form

Constructor Summary
RuleTemplateOptionBo()
           
RuleTemplateOptionBo(String key, String value)
           
 
Method Summary
 void beforeInsert()
           
 String getCode()
           
 String getId()
          The unique identifier for an object.
 RuleTemplateBo getRuleTemplate()
           
 String getRuleTemplateId()
           
 String getValue()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void refresh()
          Invoked to refresh business objects related to the parent based on their key field values
 void setCode(String code)
           
 void setId(String id)
           
 void setRuleTemplate(RuleTemplateBo ruleTemplate)
           
 void setRuleTemplateId(String ruleTemplateId)
           
 void setValue(String value)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleTemplateOptionBo

public RuleTemplateOptionBo()

RuleTemplateOptionBo

public RuleTemplateOptionBo(String key,
                            String value)
Method Detail

beforeInsert

public void beforeInsert()

getCode

public String getCode()
Specified by:
getCode in interface RuleTemplateOptionContract

setCode

public void setCode(String code)

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

setVersionNumber

public void setVersionNumber(Long versionNumber)

getRuleTemplate

public RuleTemplateBo getRuleTemplate()

setRuleTemplate

public void setRuleTemplate(RuleTemplateBo ruleTemplate)

getRuleTemplateId

public String getRuleTemplateId()
Specified by:
getRuleTemplateId in interface RuleTemplateOptionContract

setRuleTemplateId

public void setRuleTemplateId(String ruleTemplateId)

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String id)

getValue

public String getValue()
Specified by:
getValue in interface RuleTemplateOptionContract

setValue

public void setValue(String value)

refresh

public void refresh()
Description copied from interface: BusinessObject
Invoked to refresh business objects related to the parent based on their key field values

During processing (for example accepting user input) the field values that participate in relationships can become out of sync with the related business objects (for example: suppose our business object has a property name bookId with a related object of type Book that contains the id property. If the user changes the value for the bookId property, our id property on the related book and the associated information is still pointing to the previous book id). This method is invoked to indicate the related objects should be refreshed based on their related keys. For @{link PersistableBusinessObject} implementations, most refreshes can be handled by the ORM tool

Specified by:
refresh in interface BusinessObject


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