Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

What is JDBC?

 
Author
Posts: 130
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Coderanchers,

Time for another light read:

What is JDBC?

1. Drivers
2. Connections/Queries/ResultSets
3. Connection Pooling

https://www.marcobehler.com/guides/jdbc

Enjoy!
 
Marshal
Posts: 7778
536
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for posting your entries in the right forum. Well deserved cow for that.
 
Ranch Hand
Posts: 127
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solid article.

+ doesn't use Class.forName()
+ uses PreparedStatement
+ shows usage of DataSource and connection pooling
+ also makes use of tey-with-resources to cleanly return the connection to the pool

- doesn't mentioned MariaDB
- no exaple for DELETE but rather only "same as insert and update"

Overall length is ok for a blog post to just give a jumpstart. Should be read by anyone planing some book or wiki or tutorial about jdbc.
 
Marco Behler
Author
Posts: 130
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bob Winter

Thanks! I'll try and weave in your two points in the next revision of the article.

Meanwhile, you might be interested to know that I'm indeed writing a short workbook on JDBC. Let me know what you think!

https://www.marcobehler.com/books/2-jdbc-workbook
 
Marco Behler
Author
Posts: 130
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bob Winter wrote:Solid article.

+ doesn't use Class.forName()
+ uses PreparedStatement
+ shows usage of DataSource and connection pooling
+ also makes use of tey-with-resources to cleanly return the connection to the pool

- doesn't mentioned MariaDB
- no exaple for DELETE but rather only "same as insert and update"

Overall length is ok for a blog post to just give a jumpstart. Should be read by anyone planing some book or wiki or tutorial about jdbc.




Hi Bob, just a quick update. I added the MariaDB driver and the delete example.

Thanks again for the feedback!
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic