Class PgAbstractType

All Implemented Interfaces:
ISearchPath, IStatement, IType, IHashable
Direct Known Subclasses:
PgBaseType, PgCompositeType, PgEnumType, PgRangeType, PgShellType

public abstract class PgAbstractType extends PgAbstractStatement implements IType
Abstract base class for database user-defined types. Provides common functionality for types across different database types including composite types, enums, domains, and other user-defined data types.
  • Method Details

    • getCreationSQL

      public void getCreationSQL(SQLScript script)
      Description copied from interface: IStatement
      Generates the SQL statements needed to create this database object. This is an abstract method that must be implemented by subclasses to provide the specific CREATE SQL for each object type.
      Specified by:
      getCreationSQL in interface IStatement
      Parameters:
      script - the SQL script to append creation statements to
    • appendAlterSQL

      public ObjectState appendAlterSQL(IStatement newCondition, SQLScript script)
      Description copied from interface: IStatement
      Fill script with object changes and return change type
      Specified by:
      appendAlterSQL in interface IStatement
      Parameters:
      newCondition - new object state
      script - script to collect changes
      Returns:
      object change type