Updated on 2024-06-03 GMT+08:00

java.sql.ResultSetMetaData

This section describes java.sql.ResultSetMetaData, which provides details about ResultSet object information.

Table 1 Support status for java.sql.ResultSetMetaData

Method Name

Return Type

JDBC4 Is Supported or Not

getCatalogName(int column)

String

Yes

getColumnClassName(int column)

String

Yes

getColumnCount()

int

Yes

getColumnDisplaySize(int column)

int

Yes

getColumnLabel(int column)

String

Yes

getColumnName(int column)

String

Yes

getColumnType(int column)

int

Yes

getColumnTypeName(int column)

String

Yes

getPrecision(int column)

int

Yes

getScale(int column)

int

Yes

getSchemaName(int column)

String

Yes

getTableName(int column)

String

Yes

isAutoIncrement(int column)

Boolean

Yes

isCaseSensitive(int column)

Boolean

Yes

isCurrency(int column)

Boolean

Yes

isDefinitelyWritable(int column)

Boolean

Yes

isNullable(int column)

int

Yes

isReadOnly(int column)

Boolean

Yes

isSearchable(int column)

Boolean

Yes

isSigned(int column)

Boolean

Yes

isWritable(int column)

Boolean

Yes

When uppercaseAttributeName is set to true, the following APIs convert the query result to uppercase letters. The conversion range is 26 English letters.
  • public String getColumnName(int column)
  • public String getColumnLabel(int column)