Win a copy of Transfer Learning for Natural Language Processing (MEAP) 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

What is JDBC?

 
Author
Posts: 119
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!
 
Sheriff
Posts: 7602
521
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 Foreman
Posts: 95
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: 119
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: 119
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!
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic