getMetaData()

Syntax:

DatabaseMetaData getMetaData() throws SQLException

Description:

Retrieves a DatabaseMetaData object that contains metadata about the database to which this Connection object represents a connection. The metadata includes information about the database's tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, and so on.

Returns:

Type: DatabaseMetaData 

a DatabaseMetaData object for this Connection object

Throws:

SQLException - if a database access error occurs

Reference:

For more information, reference JDBC documentation for: Connection.getMetaData()