Class PartitionPgTable

All Implemented Interfaces:
IHashable, IOptionContainer, IPartitionTable, IRelation, ISearchPath, ISimpleOptionContainer, IStatement, IStatementContainer

public final class PartitionPgTable extends AbstractRegularTable implements IPartitionTable
Partition regular table object for PostgreSQL. Represents a table partition that is part of a larger partitioned table, implementing PostgreSQL's native table partitioning functionality.
Since:
4.1.1
Author:
galiev_mr
  • Constructor Details

    • PartitionPgTable

      public PartitionPgTable(String name, String partitionBounds)
      Creates a new partition table.
      Parameters:
      name - table name
      partitionBounds - partition bounds definition
  • Method Details

    • getPartitionBounds

      public String getPartitionBounds()
      Description copied from interface: IPartitionTable
      Gets the partition bounds specification for this partition.
      Specified by:
      getPartitionBounds in interface IPartitionTable
      Returns:
      the partition bounds as SQL string
    • getParentTable

      public String getParentTable()
      Description copied from interface: IPartitionTable
      Gets the name of the parent table that this partition belongs to.
      Specified by:
      getParentTable in interface IPartitionTable
      Returns:
      the parent table name
    • compare

      public boolean compare(PgStatement obj)
      Description copied from class: PgStatement
      This method does not account for nested child PgStatements. Shallow version of PgStatement.equals(Object)
      Overrides:
      compare in class AbstractRegularTable
    • computeHash

      public void computeHash(Hasher hasher)
      Description copied from interface: IHashable
      Computes the hash of the implementing object using the provided hasher. The implementation should call appropriate put methods on the hasher for all fields that should contribute to the hash value.
      Specified by:
      computeHash in interface IHashable
      Overrides:
      computeHash in class AbstractRegularTable
      Parameters:
      hasher - the hasher instance to use for hash computation
    • appendMoveDataSql

      public void appendMoveDataSql(PgStatement newCondition, SQLScript script, String tblTmpBareName, List<String> identityCols)
      Description copied from class: AbstractTable
      Adds commands to the script for move data from the temporary table to the new table, given the identity columns, and a command to delete the temporary table.
      Overrides:
      appendMoveDataSql in class AbstractTable