Topic 3 Flashcards
JDBC
Java Database Connectivity, accesses data as rows and columns
Data access
the process of retrieving and manipulating data from a data source
Examples of data sources
relational database servers, text files, spreadsheets and mainframes
Database catalogue
refers tot he database system tables
System tables
used to store information about the database, tables you created and the structure
Metadata
describes the content of the database
What is data?
Information
What is a relational database?
a database that is organized into tables, which consists of rows and columns
What is a database?
an organized collection of data
What are the two ways to access a relational database from Java?
JDBC and JPA
JPA
Java Persistence API, accesses data through Java objects using a concept called object-relational mapping(ORM)
Driver
knows how to get a connection to their database
connection
knows how to communicate with the database
statement
knows how to run the SQL, an object used to submit a query to a database
resultset
knows what was returned by a SELECT query