Class MsAbstractFunction

All Implemented Interfaces:
IFunction, ISearchPath, IStatement, MsSourceStatement, IHashable
Direct Known Subclasses:
MsFunction, MsProcedure

public abstract class MsAbstractFunction extends MsAbstractCommonFunction implements MsSourceStatement
Abstract base class for Microsoft SQL functions. Provides common functionality for Microsoft SQL function implementations.
  • Method Details

    • getFirstPart

      public String getFirstPart()
      Description copied from interface: MsSourceStatement
      Gets the first part of the source statement (before CREATE/ALTER).
      Specified by:
      getFirstPart in interface MsSourceStatement
      Returns:
      the first part of the source
    • setFirstPart

      public void setFirstPart(String firstPart)
      Description copied from interface: MsSourceStatement
      Sets the first part of the source statement.
      Specified by:
      setFirstPart in interface MsSourceStatement
      Parameters:
      firstPart - the first part to set
    • getSecondPart

      public String getSecondPart()
      Description copied from interface: MsSourceStatement
      Gets the second part of the source statement (after the object name).
      Specified by:
      getSecondPart in interface MsSourceStatement
      Returns:
      the second part of the source
    • setSecondPart

      public void setSecondPart(String secondPart)
      Description copied from interface: MsSourceStatement
      Sets the second part of the source statement.
      Specified by:
      setSecondPart in interface MsSourceStatement
      Parameters:
      secondPart - the second part to set
    • setAnsiNulls

      public void setAnsiNulls(boolean ansiNulls)
    • isAnsiNulls

      public boolean isAnsiNulls()
    • setQuotedIdentified

      public void setQuotedIdentified(boolean quotedIdentified)
    • isQuotedIdentified

      public boolean isQuotedIdentified()
    • 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 MsAbstractCommonFunction
      Parameters:
      hasher - the hasher instance to use for hash computation