Name

DatabaseMetaData

Synopsis

Class Name: java.sql.DatabaseMetaData
Superclass: None
Immediate Subclasses: None
Interfaces Implemented: None
Availability: New as of JDK 1.1

Description

This class provides a lot of information about the database to which a Connection object is connected. In many cases, it returns this information in the form of JDBC ResultSet objects. For databases that do not support a particular kind of metadata, DatabaseMetaData will throw an SQLException.

DatabaseMetaData methods take string patterns as arguments where specific tokens within the String are interpreted to have a certain meaning. % matches any substring of or more characters and _ matches any one character. You can pass null to methods in place of string pattern arguments; this means that the argument’s criteria should be dropped from the search.

Class Summary

public interface DatabaseMetaData { static public final int bestRowTemporary; static public final int bestRowTransaction; static public final int bestRowSession; static public final int bestRowUnknown; static public final int bestRowNotPseudo; static public final int bestRowPseudo; static public final int columnNoNulls; static public final int columnNullable; static public final int columnNullableUnknown; static public final int importedKeyCascade; static public final int importedKeyRestrict; static public final int importedKeySetNull; static public final int importedKeyNoAction; static public final int importedKeySetDefault; static public final int ...

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.