java.lang.Object
com.aoapps.dbc.meta.DatabaseMetaData
A friendly wrapper around database meta data.
- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorDescriptionDatabaseMetaData
(Connection conn) Creates a new meta data wrapper.DatabaseMetaData
(DatabaseMetaData metaData) Creates a new meta data wrapper. -
Method Summary
Modifier and TypeMethodDescriptiongetCatalog
(String name) Gets the catalog of the provided name.getCatalogOptional
(String name) Gets the catalog of the provided name.Gets all catalogs for this database keyed by unique name.static Collator
Gets the collator used for result ordering.toString()
-
Constructor Details
-
DatabaseMetaData
Creates a new meta data wrapper. Results are cached, so for a fresh view of meta data, create a new instance.- Throws:
SQLException
-
DatabaseMetaData
Creates a new meta data wrapper. Results are cached, so for a fresh view of meta data, create a new instance.
-
-
Method Details
-
getCollator
Gets the collator used for result ordering. -
toString
-
getMetaData
-
getCatalogs
Gets all catalogs for this database keyed by unique name.- Throws:
SQLException
- See Also:
-
getCatalogOptional
Gets the catalog of the provided name.- Throws:
SQLException
-
getCatalog
Gets the catalog of the provided name.- Throws:
NoRowException
- if the catalog doesn't existSQLException
-