About Question enthuware.ocpjp.v7.2.1344 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1344 :

Post by The_Nick »

Hi,
From your explanation quoted by the javadoc:


" between the values 'Alpha' and 'Bravo' both values inclusive"

Why should it be both value inclusive? even in the tutorial it says that they are inclusive however if a programmer wants to implement predicate using > instead of >= can, and in that case the range would be exclusive.

Is it to be taken only as a suggestion?

Thanks in advance.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1344 :

Post by admin »

Yes, this is only for the example given in the API description http://docs.oracle.com/javase/7/docs/ap ... owSet.html

Will update the explanation to make it clear.

HTH,
Paul.

hamada.yamasaki
Posts: 17
Joined: Fri Oct 11, 2013 10:31 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1344 :

Post by hamada.yamasaki »

A FilteredRowSet cannot be scrolled in both directions. Explanation : All RowSets are scrollable.
The explanation is partially true because if we create JdbcRowSet using ResultSet which was not updatable or scrollable then neither would JdbcRowSet be. Please see http://docs.oracle.com/javase/tutorial/ ... owset.html
Section Passing ResultSet Objects.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1344 :

Post by admin »

hamada.yamasaki wrote:
A FilteredRowSet cannot be scrolled in both directions. Explanation : All RowSets are scrollable.
The explanation is partially true because if we create JdbcRowSet using ResultSet which was not updatable or scrollable then neither would JdbcRowSet be. Please see http://docs.oracle.com/javase/tutorial/ ... owset.html
Section Passing ResultSet Objects.
The second line in the link that you've mentioned says, "One of the main uses of a JdbcRowSet object is to make a ResultSet object scrollable and updatable when it does not otherwise have those capabilities."

As per http://docs.oracle.com/javase/7/docs/ap ... owSet.html
Another advantage of a JdbcRowSet object is that it can be used to make a ResultSet object scrollable and updatable. All RowSet objects are by default scrollable and updatable. If the driver and database being used do not support scrolling and/or updating of result sets, an application can populate a JdbcRowSet object with the data of a ResultSet object and then operate on the JdbcRowSet object as if it were the ResultSet object.
-Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests