Class DdlTypeRegistry

    • Constructor Detail

    • Method Detail

      • addDescriptor

        public void addDescriptor​(DdlType ddlType)
      • addDescriptor

        public void addDescriptor​(int sqlTypeCode,
                                  DdlType ddlType)
      • addDescriptorIfAbsent

        public void addDescriptorIfAbsent​(DdlType ddlType)
      • addDescriptorIfAbsent

        public void addDescriptorIfAbsent​(int sqlTypeCode,
                                          DdlType ddlType)
      • getSqlTypeCode

        public Integer getSqlTypeCode​(String rawTypeName)
        Returns the SqlTypes type code for the given DDL raw type name, or null if it is unknown.
      • getTypeName

        public String getTypeName​(int typeCode,
                                  Dialect dialect)
      • getTypeName

        public String getTypeName​(int typeCode,
                                  Size size)
      • getTypeName

        public String getTypeName​(int typeCode,
                                  Long size,
                                  Integer precision,
                                  Integer scale)
        Get the SQL type name for the specified JDBC type code and size, filling in the placemarkers $l, $p, and $s with the given length, precision, and scale.
        Parameters:
        typeCode - the JDBC type code
        size - the SQL length, if any
        precision - the SQL precision, if any
        scale - the SQL scale, if any
        Returns:
        the associated name with smallest capacity >= size, if available and the default type name otherwise
      • isTypeNameRegistered

        public boolean isTypeNameRegistered​(String typeName)
        Whether or not the given type name has been registered for this dialect (including both hibernate type names and custom-registered type names).
        Parameters:
        typeName - the type name.
        Returns:
        true if the given string has been registered either as a hibernate type or as a custom-registered one