org.kuali.rice.kew.rule
Class RuleExpressionDef

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kew.rule.RuleExpressionDef
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, RuleExpressionContract, BusinessObject, PersistableBusinessObject

@Entity
public class RuleExpressionDef
extends PersistableBusinessObjectBase
implements RuleExpressionContract

BO for rule expressions

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

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
RuleExpressionDef()
           
 
Method Summary
 boolean equals(Object obj)
          Returns whether the object is an equivalent rule expression, i.e.
static RuleExpressionDef from(RuleExpression im)
          Converts a immutable object to its mutable counterpart
 String getExpression()
           
 String getId()
          The unique identifier for an object.
 String getType()
           
 void setExpression(String expression)
           
 void setId(String id)
           
 void setType(String type)
           
static RuleExpression to(RuleExpressionDef bo)
          Converts a mutable bo to its immutable counterpart
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

RuleExpressionDef

public RuleExpressionDef()
Method Detail

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)
Parameters:
id - the id to set

getType

public String getType()
Specified by:
getType in interface RuleExpressionContract
Returns:
the type

setType

public void setType(String type)
Parameters:
type - the type to set

getExpression

public String getExpression()
Specified by:
getExpression in interface RuleExpressionContract
Returns:
the expression

setExpression

public void setExpression(String expression)
Parameters:
expression - the expression to set

equals

public boolean equals(Object obj)
Returns whether the object is an equivalent rule expression, i.e. the type and expression are the same. This is necessary for rule duplicate detection.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

to

public static RuleExpression to(RuleExpressionDef bo)
Converts a mutable bo to its immutable counterpart

Parameters:
bo - the mutable business object
Returns:
the immutable object

from

public static RuleExpressionDef from(RuleExpression im)
Converts a immutable object to its mutable counterpart

Parameters:
im - immutable object
Returns:
the mutable bo


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