Class RangePartitionInterval

java.lang.Object
org.compiere.db.partition.RangePartitionInterval

public class RangePartitionInterval extends Object
Range interval for a partition column
  • Constructor Details

    • RangePartitionInterval

      public RangePartitionInterval(String columnName, String name, Object from, Object to)
      Parameters:
      name -
      from -
      to -
  • Method Details

    • getColumnName

      public String getColumnName()
      Returns:
      column name
    • getName

      public String getName()
      Returns:
      interval name
    • getFrom

      public Object getFrom()
      Returns:
      interval from value
    • getTo

      public Object getTo()
      Returns:
      interval to value
    • validateIntervalPattern

      public static String validateIntervalPattern(MColumn column)
      Validate range partition interval pattern
      Parameters:
      column -
      Returns:
      String error-code - null if not error
    • createInterval

      public static List<RangePartitionInterval> createInterval(MTable table, RangePartitionColumn rangePartitionColumn, String trxName)
      Parameters:
      table -
      rangePartitionColumn -
      trxName -
      Returns:
      RangePartitionInterval
    • getInterval

      public static RangePartitionInterval.Interval getInterval(MColumn partitionKeyColumn)
      Get year and month interval from AD_Column.RangePartitionInterval.
      Throw exception if pattern is invalid.
      Parameters:
      partitionKeyColumn -
      Returns:
      year and month interval