SlideShare a Scribd company logo
Interface Connection
public interface Connectionextends Wrapper
{
}
• A connection (session) with a specific database.
SQL statements are executed and results are
returned within the context of a connection.
• A Connection object's database is able to provide
information describing its tables, its supported
SQL grammar, its stored procedures, the
capabilities of this connection, and so on. This
information is obtained with
the getMetaData method.
createStatement()
Statement createStatement() throws SQLException
{
}
• This is used to create a Sql object. An sql object is used to send and
execute the query in backend database.
• Creates a Statement object for sending SQL statements to the database.
SQL statements without parameters are normally executed
using Statement objects.
• If the same SQL statement is executed many times, it may be more
efficient to use a PreparedStatement object.
• Result sets created using the returned Statement object will by default be
type TYPE_FORWARD_ONLY and have a concurrency level
of CONCUR_READ_ONLY. The holdability of the created result sets can be
determined by calling getHoldability().
• Returns:a new default Statement object
Interface connection

More Related Content

PDF
Кирилл Латыш "ERP on Websockets"
PDF
Data Binding in Silverlight
PPT
Pavel_Kravchenko_Mobile Development
PPTX
Influence of schema-less approach on database authorization
PPT
PPT
Overview on NoSQL and MongoDB
KEY
Data Abstraction for Large Web Applications
PPT
Data Access Technologies
Кирилл Латыш "ERP on Websockets"
Data Binding in Silverlight
Pavel_Kravchenko_Mobile Development
Influence of schema-less approach on database authorization
Overview on NoSQL and MongoDB
Data Abstraction for Large Web Applications
Data Access Technologies

What's hot (20)

PPTX
Configuring Data Binding part2 ABTO Software Lecture Korotchyn
PPTX
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
PPTX
Lesson 05 Data Binding in WPF
PPTX
Entity Framework Database and Code First
PPTX
Lesson 09 Resources and Settings in WPF
PPTX
Lesson 06 Styles and Templates in WPF
PPTX
Managing state in asp.net
PPTX
Database connectivity to sql server asp.net
PPT
Data management with ado
PPTX
Interface database metadata
PDF
Mashup iOS - Core data
PPTX
MSSQL SERVER
DOCX
PPTX
iOS training (advanced)
PDF
Handling Lifecycles in a Jetpack way
DOCX
ODI User and Security
PDF
ADO DOT NET
PPTX
Adbms 10 complex object management
PDF
Data Binding and Data Grid View Classes
Configuring Data Binding part2 ABTO Software Lecture Korotchyn
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
Lesson 05 Data Binding in WPF
Entity Framework Database and Code First
Lesson 09 Resources and Settings in WPF
Lesson 06 Styles and Templates in WPF
Managing state in asp.net
Database connectivity to sql server asp.net
Data management with ado
Interface database metadata
Mashup iOS - Core data
MSSQL SERVER
iOS training (advanced)
Handling Lifecycles in a Jetpack way
ODI User and Security
ADO DOT NET
Adbms 10 complex object management
Data Binding and Data Grid View Classes
Ad

Viewers also liked (8)

PPTX
Exceptions
PPTX
Get data
PPT
Class
PPTX
Different waysconnect
PPTX
1 introduction to html
PPT
Class
PPTX
Sessionex1
PPTX
2. attributes
Exceptions
Get data
Class
Different waysconnect
1 introduction to html
Class
Sessionex1
2. attributes
Ad

Similar to Interface connection (20)

PDF
Jdbc 1
PPTX
Database connect
PDF
PPS
Jdbc api
PPTX
jdbcppt.pptx , jdbc ppt jdbc ppt jdbc ppt jdbc ppt jdbc ppt jdbc ppt jdbc ppt
PPT
statement interface
PPTX
Java Database Connectivity by shreyash simu dbce.pptx
PPTX
PDF
JDBC Presentation with JAVA code Examples.pdf
PPTX
Jdbc presentation
PPTX
Java- JDBC- Mazenet Solution
PDF
Lecture17
PPTX
Java DataBase Connectivity API (JDBC API)
PPTX
Core jdbc basics
PPT
Java Database Connectivity
PPTX
Jdbc ppt
PDF
JDBC in Servlets
PPTX
Jdbc 1
Database connect
Jdbc api
jdbcppt.pptx , jdbc ppt jdbc ppt jdbc ppt jdbc ppt jdbc ppt jdbc ppt jdbc ppt
statement interface
Java Database Connectivity by shreyash simu dbce.pptx
JDBC Presentation with JAVA code Examples.pdf
Jdbc presentation
Java- JDBC- Mazenet Solution
Lecture17
Java DataBase Connectivity API (JDBC API)
Core jdbc basics
Java Database Connectivity
Jdbc ppt
JDBC in Servlets

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
Internal
PPTX
3. elements
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
PPTX
Properties
PPTX
Java.sql package
PPTX
Interface callable statement
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Internal
3. elements
Headings
Forms
Views
Views
Views
Starting jdbc
Properties
Java.sql package
Interface callable statement

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Modernizing your data center with Dell and AMD
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
KodekX | Application Modernization Development
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Big Data Technologies - Introduction.pptx
PDF
Machine learning based COVID-19 study performance prediction
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Monthly Chronicles - July 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
Modernizing your data center with Dell and AMD
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Network Security Unit 5.pdf for BCA BBA.
Chapter 3 Spatial Domain Image Processing.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KodekX | Application Modernization Development
Dropbox Q2 2025 Financial Results & Investor Presentation
Big Data Technologies - Introduction.pptx
Machine learning based COVID-19 study performance prediction

Interface connection

  • 3. • A connection (session) with a specific database. SQL statements are executed and results are returned within the context of a connection. • A Connection object's database is able to provide information describing its tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, and so on. This information is obtained with the getMetaData method.
  • 4. createStatement() Statement createStatement() throws SQLException { } • This is used to create a Sql object. An sql object is used to send and execute the query in backend database. • Creates a Statement object for sending SQL statements to the database. SQL statements without parameters are normally executed using Statement objects. • If the same SQL statement is executed many times, it may be more efficient to use a PreparedStatement object. • Result sets created using the returned Statement object will by default be type TYPE_FORWARD_ONLY and have a concurrency level of CONCUR_READ_ONLY. The holdability of the created result sets can be determined by calling getHoldability(). • Returns:a new default Statement object