Java Tutorial - Java Script : CHAPTER 8 : Managing Data Using JDBC and Databases

Java Tutorial - Java Script :

CHAPTER 8

Managing Data Using JDBC and Databases


Any application of reasonable complexity needs to have a means of organizing and storing information. A database provides a repository for information, allowing the information to be organized and accessed efficiently. Although there are several types and forms of databases, over the years the relational database has emerged as the workhorse of the software industry. Today, the relational database is the foundation for most enterprise applications. Thus, when we refer to a database in this chapter, we will always be discussing relational databases. For Java to be useful as an enterprise language, Java must be able to access data from relational databases. The JDBC API (Java Database Connectivity application programming interface) was created to provide the ability for Java programs to access relational databases in a uniform and consistent manner. Most modern databases provide Java support via a JDBC driver. A number of relational database products have also been created in the Java language. This chapter looks at open source Java databases and other open source databases that support JDBC connections