SlideShare a Scribd company logo
Interface DatabaseMetaData
• public interface DatabaseMetaDataextends
Wrapper
•

•
•
•

•
•
•
•
•

The java.sql.DatabaseMetaData is an interface implemented by the JDBC driver
provider.
The DatabaseMetaData object encapsulates all the information related to the database
and driver.
We know that different DBMS often support different features and data types and
implement those features in different ways.
The DatabaseMetaData object is useful for the following operations while creating a
generic application, such as Hibernate, with maximum portability and frameworks:
1. to use the functionalities of DBMS in combination with JDBC Driver. For example, the
DatabaseMetaData.supportsCorrelatedSubquries() method is used to find whether it is
possible to use a correlated subquery or not.
2. to get the database details, such as DB vendor name, product name, and version.
3. to find the support for optional JDBC features from a JDBC driver. For example, the
DatabaseMetaData.supportsBatchUpdates() method is used to find whether it is
possible to use batch updates or not.
4. to find the approach used with JDBC driver to implement the advanced JDBC options.
We use the Connection.getMetaData() method to get the DatabaseMetaData object.
ownDeleteAreVisible()
• Used to find whether the deletion is visible as replaced with an empty row
in the ResultSet object of the given type.
• It returns false if the ResultSet object still contains the deleted row, if the
deletion is not visible as a change to the ResultSet object of the given
type.

More Related Content

DOCX
Android project (1)
PPTX
OVERVIEW OF MONGODB | CREATING USER IN MONGODB & ASSIGNING ROLES
KEY
Data Abstraction for Large Web Applications
PPTX
Database and types of database
PDF
My sql vs mongo
PPTX
Mongodb vs mysql
PDF
Analysis on NoSQL: MongoDB Tool
PPTX
Using schemas in parsing xml part 1
Android project (1)
OVERVIEW OF MONGODB | CREATING USER IN MONGODB & ASSIGNING ROLES
Data Abstraction for Large Web Applications
Database and types of database
My sql vs mongo
Mongodb vs mysql
Analysis on NoSQL: MongoDB Tool
Using schemas in parsing xml part 1

What's hot (20)

PPTX
Interface connection
PDF
2014 Pre-MSc-IS-6 Presentation Layer
PPTX
MongoDB-SESION01
PPT
My sql basic
PDF
Jan Steemann: Modelling data in a schema free world (Talk held at Froscon, 2...
PPTX
SQL vs MongoDB
PPTX
My sql vs sql
PDF
Web Programming - 5 Passing and Request Data
DOCX
What is difference between dbms and rdbms
PPTX
Appache Cassandra
PDF
Jdbc 3
PPTX
Cassandra-vs-MongoDB
PPTX
NOSQL vs SQL
PPTX
Database Fundamental Concepts- Series 1 - Performance Analysis
PPTX
Dev traning 2016 databases
PPT
Overview on NoSQL and MongoDB
PDF
Web Programming - 9 Create, Read, Update and Delete
PPTX
Drupal as a data server
PPTX
Databind in asp.net
PPTX
MongoDB-SESSION02
Interface connection
2014 Pre-MSc-IS-6 Presentation Layer
MongoDB-SESION01
My sql basic
Jan Steemann: Modelling data in a schema free world (Talk held at Froscon, 2...
SQL vs MongoDB
My sql vs sql
Web Programming - 5 Passing and Request Data
What is difference between dbms and rdbms
Appache Cassandra
Jdbc 3
Cassandra-vs-MongoDB
NOSQL vs SQL
Database Fundamental Concepts- Series 1 - Performance Analysis
Dev traning 2016 databases
Overview on NoSQL and MongoDB
Web Programming - 9 Create, Read, Update and Delete
Drupal as a data server
Databind in asp.net
MongoDB-SESSION02
Ad

Similar to Interface database metadata (20)

PPT
Final Database Connectivity in JAVA.ppt
PPTX
Java Database Connectivity (JDBC)
PPT
Jdbc connectivity
PPTX
PPTX
Core jdbc basics
PDF
Unit 5.pdf
PPT
JDBC DriversPros and Cons of Each Driver
PDF
Jdbc 1
PPT
JDBC.ppt
PPT
DOC
jdbc document
PPTX
JAVA DATABASE CONNECTIVITY(JDBC CONNECTIVITY).pptx
PPT
Java Database Connectivity
PPT
jdbc_presentation.ppt
PPT
open data base connectivity and java database connectivity
PDF
Module4_Annotations_JDBC.pdf
PPTX
java 4 Part 1 computer science.pptx
PPTX
Jdjdbcbc Jdjdbcbc JdjdbcJdjdbcbc Jdjdbcbc Jdjdbcbcbc JdJdbcbc
Final Database Connectivity in JAVA.ppt
Java Database Connectivity (JDBC)
Jdbc connectivity
Core jdbc basics
Unit 5.pdf
JDBC DriversPros and Cons of Each Driver
Jdbc 1
JDBC.ppt
jdbc document
JAVA DATABASE CONNECTIVITY(JDBC CONNECTIVITY).pptx
Java Database Connectivity
jdbc_presentation.ppt
open data base connectivity and java database connectivity
Module4_Annotations_JDBC.pdf
java 4 Part 1 computer science.pptx
Jdjdbcbc Jdjdbcbc JdjdbcJdjdbcbc Jdjdbcbc Jdjdbcbcbc JdJdbcbc
Ad

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Interface database metadata

  • 2. • public interface DatabaseMetaDataextends Wrapper
  • 3. • • • • • • • • • The java.sql.DatabaseMetaData is an interface implemented by the JDBC driver provider. The DatabaseMetaData object encapsulates all the information related to the database and driver. We know that different DBMS often support different features and data types and implement those features in different ways. The DatabaseMetaData object is useful for the following operations while creating a generic application, such as Hibernate, with maximum portability and frameworks: 1. to use the functionalities of DBMS in combination with JDBC Driver. For example, the DatabaseMetaData.supportsCorrelatedSubquries() method is used to find whether it is possible to use a correlated subquery or not. 2. to get the database details, such as DB vendor name, product name, and version. 3. to find the support for optional JDBC features from a JDBC driver. For example, the DatabaseMetaData.supportsBatchUpdates() method is used to find whether it is possible to use batch updates or not. 4. to find the approach used with JDBC driver to implement the advanced JDBC options. We use the Connection.getMetaData() method to get the DatabaseMetaData object.
  • 4. ownDeleteAreVisible() • Used to find whether the deletion is visible as replaced with an empty row in the ResultSet object of the given type. • It returns false if the ResultSet object still contains the deleted row, if the deletion is not visible as a change to the ResultSet object of the given type.