Class Rule

java.lang.Object
com.pervasive.datarush.schema.Rule

public class Rule extends Object
Defines a rule that can be used to determine if a particular record discriminator value fits the definition of a record type. A schema may contain multiple rules, usually one per record type defined. If a schema only contains one record type, it will most likely not have any rules.
  • Constructor Details

    • Rule

      public Rule()
      Default constructor.
  • Method Details

    • matches

      public boolean matches(String discValue)
      Execute this rule against the given discriminator value. Return true if the value matches the rule. Otherwise, return false.
      Parameters:
      discValue - discriminator value
      Returns:
      true for a match; false otherwise
    • getCaseSensitive

      public String getCaseSensitive()
      Return case sensitive property.
      Returns:
      case sensitive property
    • setCasesensitive

      public void setCasesensitive(String casesensitive)
      Set the case sensitive property. Setting case sensitive to true causes all discriminator comparisons to be case sensitive.
      Parameters:
      casesensitive - case sensitive property.
    • getLowValue

      public String getLowValue()
      Return the low end of the value range.
      Returns:
      low end of value range
    • setLowvalue

      public void setLowvalue(String lowvalue)
      Set the low end of the value range.
      Parameters:
      lowvalue - low end of value range
    • getHighValue

      public String getHighValue()
      Return the high end of the value range.
      Returns:
      high end of value range
    • setHighvalue

      public void setHighvalue(String highvalue)
      Set the high end of the value range.
      Parameters:
      highvalue - high end of value range
    • getName

      public String getName()
      Get the rule name.
      Returns:
      rule name
    • setName

      public void setName(String name)
      Set the rule name.
      Parameters:
      name - rule name
    • getOperator

      public String getOperator()
      Get the rule operator.
      Returns:
      rule operator
    • setOperator

      public void setOperator(String operator)
      Set the rule operator.
      Parameters:
      operator - rule operator
    • getRecordName

      public String getRecordName()
      Get the record name this rule matches.
      Returns:
      record name
    • setRecordname

      public void setRecordname(String recordname)
      Set the record name this rule matches.
      Parameters:
      recordname - record name