Your SlideShare is downloading. ×
0
Interface connection
Interface connection
Interface connection
Interface connection
Interface connection
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Interface connection

102

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
102
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Interface Connection
  • 2. public interface Connectionextends Wrapper { }
  • 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

×