SQLType (Java Platform SE 8 )
Keywords: java.sql.SQLType interface
Date: 2026-08-19

compact2, compact3
java.sql

## Interface SQLType

- All Known Implementing Classes:
    JDBCType

      public interface SQLType

  An object that is used to identify a generic SQL type, called a JDBC type or a vendor specific data type.
  Since:
    1.8

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getName()` Returns the `SQLType` name that represents a SQL data type.
    `String` | `getVendor()` Returns the name of the vendor that supports this data type.
    `Integer` | `getVendorTypeNumber()` Returns the vendor specific type number for the data type.

- - ### Method Detail

    - #### getName

          String getName()

      Returns the `SQLType` name that represents a SQL data type.
      Returns:
        The name of this `SQLType`.

    - #### getVendor

          String getVendor()

      Returns the name of the vendor that supports this data type. The value returned typically is the package name for this vendor.
      Returns:
        The name of the vendor for this data type

    - #### getVendorTypeNumber

          Integer getVendorTypeNumber()

      Returns the vendor specific type number for the data type.
      Returns:
        An Integer representing the vendor specific data type

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.