Interface ISimpleOptionContainer

All Superinterfaces:
IOptionContainer, IStatement
All Known Implementing Classes:
AbstractIndex, AbstractPgView, AbstractRegularTable, ChIndex, MaterializedPgView, MsIndex, MsTable, PartitionGpTable, PartitionPgTable, PgColumn, PgFtsDictionary, PgIndex, PgView, SimplePgTable, TypedPgTable

public interface ISimpleOptionContainer extends IOptionContainer
Interface for database objects that support simple option management with ALTER statements. Provides default implementation for comparing and updating options using SET and RESET syntax.
  • Method Details

    • compareOptions

      default void compareOptions(IOptionContainer newContainer, SQLScript script)
      Description copied from interface: IOptionContainer
      Compares options between this container and a new container, generating SQL to update differences.
      Specified by:
      compareOptions in interface IOptionContainer
      Parameters:
      newContainer - the new container to compare against
      script - the script to append changes to
    • appendOptions

      default void appendOptions(IOptionContainer newContainer, StringBuilder setOptions, StringBuilder resetOptions, SQLScript script)
      Appends SQL options to set and reset option builders for ALTER statements.
      Parameters:
      newContainer - the new option container to compare against
      setOptions - builder for SET option clauses
      resetOptions - builder for RESET option clauses
      script - the SQL script context for generating statements