Class PgAbstractForeignTable

All Implemented Interfaces:
IForeignTable, IOptionContainer, IRelation, ISearchPath, IStatement, IStatementContainer, ITable, PgForeignOptionContainer, IHashable
Direct Known Subclasses:
PgPartitionForeignTable, PgSimpleForeignTable

public abstract class PgAbstractForeignTable extends PgAbstractTable implements IForeignTable, PgForeignOptionContainer
Base implementation of foreign table for PostgreSQL database. Foreign tables are used to access data that exists outside the database, typically in other databases or external data sources through foreign data wrappers.
Since:
4.1.1
Author:
galiev_mr
  • Method Details

    • getTypeName

      public String getTypeName()
      Description copied from interface: IStatement
      Gets the type name of this statement for SQL generation.
      Specified by:
      getTypeName in interface IStatement
      Returns:
      the type name
    • appendOptions

      public void appendOptions(StringBuilder sqlOption)
      Description copied from interface: PgForeignOptionContainer
      Appends SQL OPTIONS clause to StringBuilder.
      Specified by:
      appendOptions in interface PgForeignOptionContainer
      Parameters:
      sqlOption - the StringBuilder to append to
    • getAlterHeader

      public String getAlterHeader()
      Description copied from interface: PgForeignOptionContainer
      Returns the ALTER statement header for this object.
      Specified by:
      getAlterHeader in interface PgForeignOptionContainer
      Returns:
      ALTER statement prefix (e.g., "ALTER FOREIGN TABLE table_name")
    • appendMoveDataSql

      public void appendMoveDataSql(IStatement newCondition, SQLScript script, String tblTmpBareName, List<String> identityCols)
      Description copied from interface: ITable
      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.
      Specified by:
      appendMoveDataSql in interface ITable
      Overrides:
      appendMoveDataSql in class PgAbstractTable
    • 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 PgAbstractTable
      Parameters:
      hasher - the hasher instance to use for hash computation