Class MsClrProcedure

All Implemented Interfaces:
IHashable, IFunction, ISearchPath, IStatement

public final class MsClrProcedure extends AbstractMsClrFunction
Represents a Microsoft SQL CLR stored procedure. CLR procedures are implemented in managed code and executed within the SQL Server runtime.
  • Constructor Details

    • MsClrProcedure

      public MsClrProcedure(String name, String assembly, String assemblyClass, String assemblyMethod)
      Creates a new Microsoft SQL CLR procedure.
      Parameters:
      name - the procedure name
      assembly - the assembly name containing the implementation
      assemblyClass - the class within the assembly
      assemblyMethod - the method within the class
  • 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
    • getDeclaration

      public String getDeclaration(Argument arg)