Interface IFunction

All Superinterfaces:
ISearchPath, IStatement
All Known Implementing Classes:
MetaFunction, MsAbstractClrFunction, MsAbstractCommonFunction, MsAbstractFunction, MsClrFunction, MsClrProcedure, MsFunction, MsProcedure, PgAbstractFunction, PgAggregate, PgFunction, PgProcedure

public interface IFunction extends ISearchPath
Interface for database functions, procedures, and aggregates. Provides access to function arguments, return types, and return columns.
  • Method Details

    • getReturns

      String getReturns()
      Gets the return type of this function.
      Returns:
      the return type, or null if not applicable
    • getReturnsColumns

      Map<String,String> getReturnsColumns()
      Gets the return columns for table-valued functions.
      Returns:
      a map of column names to their types
    • getArguments

      List<IArgument> getArguments()
      Gets the list of function arguments.
      Returns:
      the list of arguments
    • setReturns

      void setReturns(String returns)
      Sets the return type of this function.
      Parameters:
      returns - the return type to set
    • needDrop

      boolean needDrop(IFunction newFunction)
      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