Page 1 of 1
About Question enthuware.ocpjp.v7.2.1344 :
Posted: Thu Sep 19, 2013 3:49 am
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.
Re: About Question enthuware.ocpjp.v7.2.1344 :
Posted: Thu Sep 19, 2013 8:24 am
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.
Re: About Question enthuware.ocpjp.v7.2.1344 :
Posted: Thu Sep 04, 2014 4:59 pm
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.
Re: About Question enthuware.ocpjp.v7.2.1344 :
Posted: Thu Sep 04, 2014 7:34 pm
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.