O'Reilly logo

Database Programming with JDBC & Java, Second Edition by George Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

DatabaseMetaData

Synopsis

Interface Name: java.sql.DatabaseMetaData

Superclass: None

Immediate Subclasses: None

Interfaces Implemented: None

Availability: 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. DatabaseMetaData will throw a SQLException for databases that do not support a particular kind of meta-data.

DatabaseMetaData methods take string patterns as arguments in which 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required