JDBC metadata programming is very similar to JDBC programming with one exception: you deal with metadata instead of data. For example, in JDBC programming you are interested in getting employee data and then processing it, but in JDBC metadata programming, you are not interested in getting actual data, but you want to get metadata(data about data, such as the table names in a database).
In JDBC metadata programming, we’re interested in database metadata and result set metadata. For example, for metadata, we want answers to such questions as
In JDBC, several key interfaces comprise the metadata portion:
The remaining chapters will dissect these metadata classes and interfaces and will provide detailed information about using them. Figure shows the creation of metadata interfaces and classes.
JDBC’s metadata classes and interfaces
Database metadata is most often used by tools or developers who write programs that use advanced, nonstandard database features and by programs that dynamically discover database objects such as schemas, catalogs, tables, views, and stored procedures.
Some of the DatabaseMetaData methods return results in the form of a ResultSet object. The question is how should we handle ResultSet objects as return values? Metadata is retrieved from these ResultSet objects using the normal ResultSet.getXXX() methods, such as getString() and getInt(). To make the metadata useful for any kind of clients, I have mapped these ResultSet objects into XML.
JDBC Related Interview Questions
|Core Java Interview Questions||JSP Interview Questions|
|Java Servlets Interview Questions||EJB(Enterprise JavaBeans) Interview Questions|
|JSTL(JSP Standard Tag Library) Interview Questions||JNDI (Java Naming and Directory Interface) Interview Questions|
|Java Bean Utils Interview Questions||AWT (Abstract Window Toolkit) Interview Questions|
What Is Jdbc Programming?
Database Metadata, Part 1
Database Metadata, Part 2
Exploring Driver Property Information
Rowset Metadata A
Web Access To Metadata,part 1
Web Access To Metadata, Part 2
Rdf And Jdbc Metadata
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.