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

public class PgView extends PgAbstractView
PostgreSQL view implementation. Views are virtual tables defined by queries that provide a way to present data from one or more tables in a customized format without storing the data physically.
  • Constructor Details

    • PgView

      public PgView(String name)
      Creates a new PostgreSQL view.
      Parameters:
      name - view name
  • Method Details

    • addColumnDefaultValue

      public void addColumnDefaultValue(String columnName, String defaultValue)
      Adds/replaces column default value specification.
      Parameters:
      columnName - column name
      defaultValue - default value expression
    • removeColumnDefaultValue

      public void removeColumnDefaultValue(String columnName)
      Removes column default value specification.
      Parameters:
      columnName - column name to remove default from
    • 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 PgAbstractView
      Parameters:
      hasher - the hasher instance to use for hash computation
    • compare

      public boolean compare(IStatement obj)
      Description copied from class: AbstractStatement
      This method does not account for nested child PgStatements. Shallow version of AbstractStatement.equals(Object)
      Specified by:
      compare in interface IStatement
      Overrides:
      compare in class PgAbstractView