Package org.compiere.db.partition
Interface ITablePartitionService
public interface ITablePartitionService
Interface to support partition table
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPartitionAndMigrateData(MTable table, String trxName, ProcessInfo processInfo) Add new partition for new data and migrate data to new partition (if needed by DB)booleancreatePartitionedTable(MTable table, String trxName, ProcessInfo processInfo) Make existing table a partition tablevoiddetachPartition(MTable table, X_AD_TablePartition partition, String trxName, ProcessInfo processInfo) Detach an attached table partitionbooleanisPartitionedTable(MTable table, String trxName) Is table already a partitioned table in DBisValidConfiguration(MColumn column) Validate partition configuration for column objectisValidConfiguration(MTable table) Validate partition configuration for table objectvoidreattachPartition(MTable table, X_AD_TablePartition partition, String trxName, ProcessInfo processInfo) Re-attach a detached table partitionbooleanrunPostPartitionProcess(MTable table, String trxName, ProcessInfo processInfo) Run post partition process (if needed)
-
Method Details
-
isPartitionedTable
Is table already a partitioned table in DB- Parameters:
table-trxName-- Returns:
- true if table have been partition in DB
-
createPartitionedTable
Make existing table a partition table- Parameters:
table-trxName-processInfo-- Returns:
- true if success
-
addPartitionAndMigrateData
Add new partition for new data and migrate data to new partition (if needed by DB)- Parameters:
table-trxName-processInfo-- Returns:
- true if success
-
runPostPartitionProcess
Run post partition process (if needed)- Parameters:
table-trxName-processInfo-- Returns:
- true if success
-
isValidConfiguration
Validate partition configuration for table object- Parameters:
table-- Returns:
- String error-code - null if not error
-
isValidConfiguration
Validate partition configuration for column object- Parameters:
column-- Returns:
- String error-code - null if not error
-
detachPartition
void detachPartition(MTable table, X_AD_TablePartition partition, String trxName, ProcessInfo processInfo) Detach an attached table partition- Parameters:
table-partition-trxName-processInfo-
-
reattachPartition
void reattachPartition(MTable table, X_AD_TablePartition partition, String trxName, ProcessInfo processInfo) Re-attach a detached table partition- Parameters:
table-partition-trxName-processInfo-
-