Class RuleExpressionDef

All Implemented Interfaces:
Serializable, Cloneable, org.apache.ojb.broker.PersistenceBrokerAware, org.eclipse.persistence.descriptors.changetracking.ChangeTracker, org.eclipse.persistence.internal.descriptors.PersistenceEntity, org.eclipse.persistence.internal.descriptors.PersistenceObject, org.eclipse.persistence.internal.weaving.PersistenceWeaved, org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking, org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups, org.eclipse.persistence.internal.weaving.PersistenceWeavedRest, org.eclipse.persistence.queries.FetchGroupTracker, 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:
  • Constructor Details

    • RuleExpressionDef

      public RuleExpressionDef()
  • Method Details

    • getId

      public String getId()
      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:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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