Class MsProcedure

All Implemented Interfaces:
IFunction, ISearchPath, IStatement, MsSourceStatement, IHashable

public class MsProcedure extends MsAbstractFunction
Represents a Microsoft SQL stored procedure. Supports execution of SQL statements and business logic within the database.
  • Constructor Details

    • MsProcedure

      public MsProcedure(String name)
      Creates a new Microsoft SQL stored procedure.
      Parameters:
      name - the 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
    • needDrop

      public boolean needDrop(IFunction newFunction)
      Description copied from interface: IFunction
      Determines whether this function needs to be dropped before creating the new version.
      Parameters:
      newFunction - the new function version to compare against
      Returns:
      true if the function needs to be dropped and recreated
    • 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 MsAbstractCommonFunction