Class MsType

All Implemented Interfaces:
IHashable, ISearchPath, IStatement, IStatementContainer

public final class MsType extends AbstractType implements IStatementContainer
Represents a Microsoft SQL user-defined type that can be an alias type, assembly type, or table type. Each type has specific properties and behaviors.
  • Constructor Details

    • MsType

      public MsType(String name)
      Creates a new Microsoft SQL user-defined type.
      Parameters:
      name - the type name
  • Method Details

    • compare

      public boolean compare(PgStatement obj)
      Description copied from class: PgStatement
      This method does not account for nested child PgStatements. Shallow version of PgStatement.equals(Object)
      Overrides:
      compare in class AbstractType
    • 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
      Parameters:
      hasher - the hasher instance to use for hash computation
    • setBaseType

      public void setBaseType(String baseType)
    • setNotNull

      public void setNotNull(boolean isNotNull)
    • setAssemblyName

      public void setAssemblyName(String assemblyName)
    • setAssemblyClass

      public void setAssemblyClass(String assemblyClass)
    • setMemoryOptimized

      public void setMemoryOptimized(boolean isMemoryOptimized)
    • addChild

      public void addChild(IStatement stmt)
      Description copied from interface: IStatementContainer
      Adds a child statement to this container.
      Specified by:
      addChild in interface IStatementContainer
      Parameters:
      stmt - the child statement to add
    • getChild

      public PgStatement getChild(String name, DbObjType type)
      Description copied from interface: IStatementContainer
      Gets a child statement by name and type.
      Specified by:
      getChild in interface IStatementContainer
      Parameters:
      name - the name of the child to find
      type - the type of the child to find
      Returns:
      the child statement, or null if not found
    • getDbType

      public DatabaseType getDbType()
      Overrides:
      getDbType in class PgStatement