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.
About Question enthuware.ocpjp.v7.2.1344 :
Moderator: admin
-
- Posts: 132
- Joined: Thu May 16, 2013 9:23 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1344 :
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.
Will update the explanation to make it clear.
HTH,
Paul.
-
- Posts: 17
- Joined: Fri Oct 11, 2013 10:31 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1344 :
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.htmlA FilteredRowSet cannot be scrolled in both directions. Explanation : All RowSets are scrollable.
Section Passing ResultSet Objects.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1344 :
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."hamada.yamasaki wrote: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.htmlA FilteredRowSet cannot be scrolled in both directions. Explanation : All RowSets are scrollable.
Section Passing ResultSet Objects.
As per http://docs.oracle.com/javase/7/docs/ap ... owSet.html
-Paul.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.
Who is online
Users browsing this forum: No registered users and 9 guests