getSQLStateType Method (SQLServerDatabaseMetaData)

Indicates whether the SQLSTATE that is returned by the SQLException.getSQLState method is X/Open (now known as Open Group) SQL CLI, SQL99 (JDBC 3.0), or SQL:2003 (JDBC 4.0).

Syntax

public int getSQLStateType()

Return Value

An int that indicates the type of SQLSTATE, which can be one of the following values:

  • For Java Runtime Environment version 5.0: If the xopenStates connection property is set to true, this method returns DatabaseMetaData.sqlStateXOpen. Otherwise, DatabaseMetaData.sqlStateSQL99.

  • For Java Runtime Environment version 6.0: If the xopenStates connection property is set to true, this method returns DatabaseMetaData.sqlStateXOpen. Otherwise, DatabaseMetaData.sqlStateSQL.

Exceptions

SQLServerException

Remarks

This getSQLStateType method is specified by the getSQLStateType method in the java.sql.DatabaseMetaData interface.

See Also

Reference

SQLServerDatabaseMetaData Class

Concepts

SQLServerDatabaseMetaData Methods

SQLServerDatabaseMetaData Members