Implement iterate with org.eclipse.persistence.queries.Cursor #346

Closed
filippor opened this Issue Feb 14, 2013 · 2 comments

Projects

None yet

2 participants

@filippor

for EclipseLink implement iterate using org.eclipse.persistence.queries.Cursor

import org.eclipse.persistence.jpa.JpaQuery;
import org.eclipse.persistence.queries.Cursor;

if (query instanceof JpaQuery) {
    JpaQuery<T> jQuery = (JpaQuery<T>) query;
    jQuery.setHint(QueryHints.RESULT_SET_TYPE, ResultSetType.ForwardOnly).setHint(QueryHints.SCROLLABLE_CURSOR, true);
    final Cursor cursor = jQuery.getResultCursor();
}
@timowest timowest was assigned Feb 25, 2013
@timowest
Member

Iteration is now optimized for EclipseLink and Hibernate. Optimized versions for OpenJPA and Batoo are still missing.

@timowest timowest added a commit that referenced this issue Feb 28, 2013
@timowest timowest #346 Add EclipseLink dependency 77b2f59
@timowest
Member

Released in 3.0.0

@timowest timowest closed this Mar 21, 2013
@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment