Database Metadata : DatabaseMetadata « Database « Java Tutorial

  1. Metadata is data about data.
  2. Database metadata is information about a database.
  3. Database metadata provides information about the structure of a database and its tables, views, and stored procedures.

JDBC provides four interfaces that deal with database metadata

  1. java.sql.DatabaseMetaData: about the database as a whole: table names, table indexes, database product name and version, and actions the database supports.
  2. java.sql.ResultSetMetaData: about the types and properties of the columns in a ResultSet object.
  3. java.sql.ParameterMetaData: about the types and properties of the parameters in a PreparedStatement object.
  4. javax.sql.RowSetMetaData: about the columns in a RowSet object.

20.30.1.Database Metadata
20.30.2.Get Table Names from a Database
20.30.3.Get View Names from a Database
20.30.4.Get Table and View Names from a Database
20.30.5.DatabaseMetaData Methods for Database Information
20.30.6.Get Database information from DatabaseMetaData
20.30.7.DatabaseMetaData Methods for Information on the Database's Supported Features
20.30.8.DatabaseMetaData Methods for Information on the Database's Limitations
20.30.9.Display Database Limitation for your connection
20.30.10.DatabaseMetaData Methods for Information on the Database's Contents
20.30.11.Display Database contents for current connection
20.30.12.Get table information from DatabaseMetaData
20.30.13.Get procedure information from DatabaseMetaData
20.30.14.Listing All Non-SQL92 Keywords Used by a Database
20.30.15.Listing the String Functions Supported by a Database: retrieves a list of string functions that a database supports.
20.30.16.Listing the Numeric Functions Supported by a Database
20.30.17.Listing the System Functions Supported by a Database
20.30.18.Listing the Time and Date Functions Supported by a Database
20.30.19.Getting the Maximum Table Name Length allowed in a Database
20.30.20.Listing Available SQL data Types Used by a Database
20.30.21.Get system functions supported by database
20.30.22.Get the max concurrent connection to a database
20.30.23.Get database maximum table name length
20.30.24.Get numeric functions supported by database
20.30.25.If database support batch update
20.30.26.Get data types supported by database
20.30.27.Get date time functions supported by database
20.30.28.Detect if a table exists
20.30.29.Get string functions supported by database