Class AbstractMsFunction

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

public abstract class AbstractMsFunction extends AbstractFunction implements SourceStatement
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: SourceStatement
      Gets the first part of the source statement (before CREATE/ALTER).
      Specified by:
      getFirstPart in interface SourceStatement
      Returns:
      the first part of the source
    • setFirstPart

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

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

      public void setSecondPart(String secondPart)
      Description copied from interface: SourceStatement
      Sets the second part of the source statement.
      Specified by:
      setSecondPart in interface SourceStatement
      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 AbstractFunction
      Parameters:
      hasher - the hasher instance to use for hash computation
    • shallowCopy

      public AbstractFunction shallowCopy()
      Description copied from class: PgStatement
      Copies all object properties into a new object and leaves all its children empty.
      Overrides:
      shallowCopy in class AbstractFunction
      Returns:
      shallow copy of a DB object.
    • getDbType

      public DatabaseType getDbType()
      Overrides:
      getDbType in class PgStatement