Chapter 17 Flashcards
What is meta data
Data about data
getColumncount() do what
Returns total number of columns in resultset
How we can get JDBC driver name is java
getDriverName()
Can we manipulate database after closing connection
Yes
What is RowSet
They exist in java standard extension javax. They work in 2 modes. RowSet are like resultset. The difference is that when we manipulate rowset it works with closed connection of database. It works in a way that it makes a copy in memory and do processing on client end. It is very flexible.
What are types of rowset
- Cached rowset
- JDBC rowset
- Web rowset
- Filter rowset
- Join rowset
What is JDBC rowset
It is a wrapper on resultset. It has all functionality of rowset but underlying there was resultset.
What is type 1 driver
JDBC-ODBC bridge. It translate JDBC calls to ODBC. ODBC is from Microsoft and JDBC is from Java. The flow is that JDBC-ODBC bridge talks to ODBC driver. Then ODBC driver talks to vendor DB library. Then vendor DB library talks to database server.
What is type 2 driver
Native - API/partly java driver. It is just like type 1 driver with the difference the layer of ODBC driver is removed in it.
What is type 4 driver
Native - protocol/all-java driver. It is most fastest driver because it communicates directly to database server. It flow is like this: Native protocol pure java driver talks to database server. It is thin driver.
What is type 3 driver
Net - protocol/all-java driver. It is for network. It flow is like this client machine (Net - protocol/all-java driver) talks to server machine and server machine talk to database server with the help of any type 1, 2, 4 driver