SlideShare uma empresa Scribd logo
1 de 4
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.

Mais conteúdo relacionado

Mais procurados

Interface connection
Interface connectionInterface connection
Interface connectionmyrajendra
 
2014 Pre-MSc-IS-6 Presentation Layer
2014 Pre-MSc-IS-6 Presentation Layer2014 Pre-MSc-IS-6 Presentation Layer
2014 Pre-MSc-IS-6 Presentation Layerandreasmartin
 
Jan Steemann: Modelling data in a schema free world (Talk held at Froscon, 2...
Jan Steemann: Modelling data in a schema free world  (Talk held at Froscon, 2...Jan Steemann: Modelling data in a schema free world  (Talk held at Froscon, 2...
Jan Steemann: Modelling data in a schema free world (Talk held at Froscon, 2...ArangoDB Database
 
SQL vs MongoDB
SQL vs MongoDBSQL vs MongoDB
SQL vs MongoDBcalltutors
 
Web Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request DataWeb Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request DataAndiNurkholis1
 
What is difference between dbms and rdbms
What is difference between dbms and rdbmsWhat is difference between dbms and rdbms
What is difference between dbms and rdbmsAfrasiyab Haider
 
Appache Cassandra
Appache Cassandra  Appache Cassandra
Appache Cassandra nehabsairam
 
Cassandra-vs-MongoDB
Cassandra-vs-MongoDBCassandra-vs-MongoDB
Cassandra-vs-MongoDBJainul Musani
 
Database Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDAGEOP LTD
 
Dev traning 2016 databases
Dev traning 2016   databasesDev traning 2016   databases
Dev traning 2016 databasesSacheen Dhanjie
 
Overview on NoSQL and MongoDB
Overview on NoSQL and MongoDBOverview on NoSQL and MongoDB
Overview on NoSQL and MongoDBharithakannan
 
Web Programming - 9 Create, Read, Update and Delete
Web Programming - 9 Create, Read, Update and DeleteWeb Programming - 9 Create, Read, Update and Delete
Web Programming - 9 Create, Read, Update and DeleteAndiNurkholis1
 
Drupal as a data server
Drupal as a data serverDrupal as a data server
Drupal as a data serverJay Friendly
 
Databind in asp.net
Databind in asp.netDatabind in asp.net
Databind in asp.netSireesh K
 

Mais procurados (20)

Interface connection
Interface connectionInterface connection
Interface connection
 
2014 Pre-MSc-IS-6 Presentation Layer
2014 Pre-MSc-IS-6 Presentation Layer2014 Pre-MSc-IS-6 Presentation Layer
2014 Pre-MSc-IS-6 Presentation Layer
 
MongoDB-SESION01
MongoDB-SESION01MongoDB-SESION01
MongoDB-SESION01
 
My sql basic
My sql basicMy sql basic
My sql basic
 
Jan Steemann: Modelling data in a schema free world (Talk held at Froscon, 2...
Jan Steemann: Modelling data in a schema free world  (Talk held at Froscon, 2...Jan Steemann: Modelling data in a schema free world  (Talk held at Froscon, 2...
Jan Steemann: Modelling data in a schema free world (Talk held at Froscon, 2...
 
SQL vs MongoDB
SQL vs MongoDBSQL vs MongoDB
SQL vs MongoDB
 
My sql vs sql
My sql vs sqlMy sql vs sql
My sql vs sql
 
Web Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request DataWeb Programming - 5 Passing and Request Data
Web Programming - 5 Passing and Request Data
 
What is difference between dbms and rdbms
What is difference between dbms and rdbmsWhat is difference between dbms and rdbms
What is difference between dbms and rdbms
 
Appache Cassandra
Appache Cassandra  Appache Cassandra
Appache Cassandra
 
Jdbc 3
Jdbc 3Jdbc 3
Jdbc 3
 
Cassandra-vs-MongoDB
Cassandra-vs-MongoDBCassandra-vs-MongoDB
Cassandra-vs-MongoDB
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
Database Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance Analysis
 
Dev traning 2016 databases
Dev traning 2016   databasesDev traning 2016   databases
Dev traning 2016 databases
 
Overview on NoSQL and MongoDB
Overview on NoSQL and MongoDBOverview on NoSQL and MongoDB
Overview on NoSQL and MongoDB
 
Web Programming - 9 Create, Read, Update and Delete
Web Programming - 9 Create, Read, Update and DeleteWeb Programming - 9 Create, Read, Update and Delete
Web Programming - 9 Create, Read, Update and Delete
 
Drupal as a data server
Drupal as a data serverDrupal as a data server
Drupal as a data server
 
Databind in asp.net
Databind in asp.netDatabind in asp.net
Databind in asp.net
 
MongoDB-SESSION02
MongoDB-SESSION02MongoDB-SESSION02
MongoDB-SESSION02
 

Semelhante a Interface database metadata

Semelhante a Interface database metadata (20)

Jdbc
JdbcJdbc
Jdbc
 
Jdbc
JdbcJdbc
Jdbc
 
Jdbc
JdbcJdbc
Jdbc
 
Introduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC Drivers
 
Java database connectivity
Java database connectivityJava database connectivity
Java database connectivity
 
Java database connectivity
Java database connectivityJava database connectivity
Java database connectivity
 
1. java database connectivity (jdbc)
1. java database connectivity (jdbc)1. java database connectivity (jdbc)
1. java database connectivity (jdbc)
 
Core jdbc basics
Core jdbc basicsCore jdbc basics
Core jdbc basics
 
Unit 5.pdf
Unit 5.pdfUnit 5.pdf
Unit 5.pdf
 
Jdbc connectivity
Jdbc connectivityJdbc connectivity
Jdbc connectivity
 
Jdbc complete
Jdbc completeJdbc complete
Jdbc complete
 
JDBC java for learning java for learn.ppt
JDBC java for learning java for learn.pptJDBC java for learning java for learn.ppt
JDBC java for learning java for learn.ppt
 
Spring jdbc dao
Spring jdbc daoSpring jdbc dao
Spring jdbc dao
 
Jdbc
JdbcJdbc
Jdbc
 
Jdbc
JdbcJdbc
Jdbc
 
Assignment#10
Assignment#10Assignment#10
Assignment#10
 
java 4 Part 1 computer science.pptx
java 4 Part 1 computer science.pptxjava 4 Part 1 computer science.pptx
java 4 Part 1 computer science.pptx
 
Final Database Connectivity in JAVA.ppt
Final Database Connectivity in JAVA.pptFinal Database Connectivity in JAVA.ppt
Final Database Connectivity in JAVA.ppt
 
Midao JDBC presentation
Midao JDBC presentationMidao JDBC presentation
Midao JDBC presentation
 
4-INTERDUCATION TO JDBC-2019.ppt
4-INTERDUCATION TO JDBC-2019.ppt4-INTERDUCATION TO JDBC-2019.ppt
4-INTERDUCATION TO JDBC-2019.ppt
 

Mais de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
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.