Class PgProcedure

All Implemented Interfaces:
IFunction, ISearchPath, IStatement, IHashable

public class PgProcedure extends PgAbstractFunction
PostgreSQL stored procedure implementation. Procedures are similar to functions but can manage transactions and don't return values directly (though they can have OUT parameters).
  • Constructor Details

    • PgProcedure

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

    • getStatementType

      public DbObjType getStatementType()
      Description copied from interface: IStatement
      Gets the type of this database object.
      Returns:
      the database object type
    • getReturns

      public String getReturns()
      Description copied from interface: IFunction
      Gets the return type of this function.
      Returns:
      the return type, or null if not applicable
    • setReturns

      public void setReturns(String returns)
      Description copied from interface: IFunction
      Sets the return type of this function.
      Parameters:
      returns - the return type to set
    • 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 PgAbstractFunction
      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 PgAbstractFunction