Class MsProcedure

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

public final class MsProcedure extends AbstractMsFunction
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(AbstractFunction newFunction)
      Description copied from class: AbstractFunction
      Determines whether this function needs to be dropped before creating the new version.
      Specified by:
      needDrop in class AbstractFunction
      Parameters:
      newFunction - the new function version to compare against
      Returns:
      true if the function needs to be dropped and recreated