Skip to main content
Top

2020 | OriginalPaper | Chapter

15. Java and the Database (JDBC)

Author : David Parsons

Published in: Foundational Java

Publisher: Springer International Publishing

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

This chapter explains how to create and populate a database using the MySQL relational database management system (RDBMS). It also demonstrates how a JDBC driver enables Java code to connect to and interact with a relational database using a standard API. Code examples cover the execution of queries to create a ResultSet, and the execution of updates. They also demonstrate how PreparedStatements can be set up that can be efficiently reused for common types of interaction with the database. The level of interaction between Java and the database described in this chapter is at the very simple level of moving data in and out of the database and does not address in detail the much broader issue of object relational mapping. It therefore directs readers interested in further detail of how objects can be made persistent in a relational database to explore the Java Persistence API, which can be used with both SQL and NoSQL databases.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Metadata
Title
Java and the Database (JDBC)
Author
David Parsons
Copyright Year
2020
DOI
https://doi.org/10.1007/978-3-030-54518-5_15

Premium Partner