Chapter 17 Flashcards

1
Q

What is meta data

A

Data about data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

getColumncount() do what

A

Returns total number of columns in resultset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How we can get JDBC driver name is java

A

getDriverName()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can we manipulate database after closing connection

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is RowSet

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are types of rowset

A
  • Cached rowset
  • JDBC rowset
  • Web rowset
  • Filter rowset
  • Join rowset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is JDBC rowset

A

It is a wrapper on resultset. It has all functionality of rowset but underlying there was resultset.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is type 1 driver

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is type 2 driver

A

Native - API/partly java driver. It is just like type 1 driver with the difference the layer of ODBC driver is removed in it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is type 4 driver

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is type 3 driver

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly