Class MsClrProcedure

All Implemented Interfaces:
IFunction, ISearchPath, IStatement, IHashable

public class MsClrProcedure extends MsAbstractClrFunction
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
    • getDeclaration

      public String getDeclaration(Argument arg)
    • 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