Class MTablePartition

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_TablePartition, I_Persistent, Evaluatee

public class MTablePartition extends X_AD_TablePartition
See Also:
  • Constructor Details

    • MTablePartition

      public MTablePartition(Properties ctx, int AD_TablePartition_ID, String trxName)
      Parameters:
      ctx -
      AD_TablePartition_ID -
      trxName -
    • MTablePartition

      public MTablePartition(Properties ctx, int AD_TablePartition_ID, String trxName, String[] virtualColumns)
      Parameters:
      ctx -
      AD_TablePartition_ID -
      trxName -
      virtualColumns -
    • MTablePartition

      public MTablePartition(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MTablePartition

      public MTablePartition(Properties ctx, String AD_TablePartition_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx -
      AD_TablePartition_UU -
      trxName -
    • MTablePartition

      public MTablePartition(Properties ctx, String AD_TablePartition_UU, String trxName, String[] virtualColumns)
      UUID based Constructor
      Parameters:
      ctx -
      AD_TablePartition_UU -
      trxName -
      virtualColumns -
  • Method Details

    • partitionExists

      public static boolean partitionExists(Properties ctx, String tableName, String partitionName, String trxName)
      Check if the given table partition exists for the table
      Parameters:
      tableName -
      partitionName -
      Returns:
      true if partition already exists
    • partitionExists

      public static boolean partitionExists(Properties ctx, int tableId, String partitionName, String trxName)
      Check if the given table partition exists for the table
      Parameters:
      tableId -
      partitionName -
      Returns:
      true if partition already exists
    • getPartitionKeyColumns

      public static String[] getPartitionKeyColumns(Properties ctx, String tableName, String trxName)
      Get list of partition key columns for the given table
      Parameters:
      ctx -
      tableName -
      trxName -
      Returns:
      array of column names
    • getPartitionKeyColumns

      public static String[] getPartitionKeyColumns(Properties ctx, int tableId, String trxName)
      Get list of partition key columns for the given table
      Parameters:
      ctx -
      tableId -
      trxName -
      Returns:
      array of column names