JDBC ResultSet Methods Flashcards

1
Q

Sets the cursor just before the first row in the ResultSet

A

void beforeFirst()

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

Sets the cursor just after the last row in the ResultSet

A

void afterLast()

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

Sets the cursor to the requested row number absolutely.

A

boolean absolute(int rowNumber)

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

Sets the cursor to the requested row relatively.

A

boolean relative(int rowNumber)

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

Sets the cursor to the next row of the ResultSet

A

boolean next()

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

Sets the cursor to the previous row of the ResultSet

A

boolean previous()

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

Methods that return value from a column number.

A

XXX getXXX(int columNumber) where XXX is an object like a String or Double.

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

Methods that return a value from a column name.

A

XXX getXXX(String columnName) where XXX is an object like a String or Double.

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

Methods that update a value to a column number.

A

void updateXXX(int columnNumber, XXX x) where XXX is an object like a String or Double.

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

Methods that update a value to a column name.

A

void updateXXX(String columnName, XXX x) where XXX is an object like a String or Double.

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

Executes a query on a statement object to store in a result set.

A

executeQuery()

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

The column index in a result set starts at…

A

1

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

Modifier of result set that only allows the cursor to move forward.

A

TYPE_FORWARD_ONLY

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

Modifier of result set that lets the cursor move forward, backward, or to any location in the resultset. Changes to the underlying database are not updated to the open resultset.

A

TYPE_SCROLL_INSENSITIEVE

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

Modifier of result set that lets the cursor move forward, backward, or to any location in the resultset. Changes to the underlying database are updated to the open resultset. This is not supported by most databases as it is very difficult to implement.

A

TYPE_SCROLL_SENSITIVE

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

Modifier of result set that causes it to be read only.

A

CONCUR_READ_ONLY

17
Q

Modifier of result set that allows it to be modified.

A

CONCUR_UPDATABLE