Package org.compiere.db.partition
Class RangePartitionInterval
java.lang.Object
org.compiere.db.partition.RangePartitionInterval
Range interval for a partition column
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Year and month interval -
Constructor Summary
ConstructorDescriptionRangePartitionInterval
(String columnName, String name, Object from, Object to) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RangePartitionInterval>
createInterval
(MTable table, RangePartitionColumn rangePartitionColumn, String trxName) getFrom()
getInterval
(MColumn partitionKeyColumn) Get year and month interval from AD_Column.RangePartitionInterval.
Throw exception if pattern is invalid.getName()
getTo()
static String
validateIntervalPattern
(MColumn column) Validate range partition interval pattern
-
Constructor Details
-
RangePartitionInterval
- Parameters:
name
-from
-to
-
-
-
Method Details
-
getColumnName
- Returns:
- column name
-
getName
- Returns:
- interval name
-
getFrom
- Returns:
- interval from value
-
getTo
- Returns:
- interval to value
-
validateIntervalPattern
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
Get year and month interval from AD_Column.RangePartitionInterval.
Throw exception if pattern is invalid.- Parameters:
partitionKeyColumn
-- Returns:
- year and month interval
-