Class MsFunction

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

public final class MsFunction extends AbstractMsFunction
Represents a Microsoft SQL user-defined function. Supports scalar, table-valued, and other function types.
  • Constructor Details

    • MsFunction

      public MsFunction(String name)
      Creates a new Microsoft SQL function.
      Parameters:
      name - the function 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
    • 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 AbstractMsFunction
      Parameters:
      hasher - the hasher instance to use for hash computation
    • setFuncType

      public void setFuncType(FuncTypes funcType)