Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

hasNext() returns false ,but the value of getEstimatedRowCount() is 1

404001Apr 5 2006 — edited Apr 6 2006
ENV:
JDeveloper 10.1.3.0.4.3673
MySql 5.0


BaseTabImageStyleViewImpl voMaster = this.getBaseTabImageStyleView1();
ViewCriteria vc = voMaster.getViewCriteria();
if(vc==null){
vc = voMaster.createViewCriteria();
}else{
vc.clear();
}
ViewCriteriaRow vcr = vc.createViewCriteriaRow();
vcr.setAttribute("Id",id);
vc.addElement(vcr);
vc.setCriteriaMode(vc.CRITERIA_MODE_QUERY);
voMaster.applyViewCriteria(vc);
voMaster.executeQuery();
long len = voMaster.getEstimatedRowCount();
System.out.println(len);
voMaster.reset();
String parentId = null;
if(voMaster.hasNext()){
...
}



thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2006
Added on Apr 5 2006
10 comments
499 views