-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Find out if the underlying DB supports scrollability
PostPosted: Thu May 12, 2005 5:39 pm 
Newbie

Joined: Thu May 12, 2005 5:30 pm
Posts: 4
How can I find out thru' Hibernate if the underlying Data base ( JDBC driver ) supports scrollability or not. There is a ScrollMode class which has a public method lessThan. But how do I find thru' Hibernate API what the current scroll mode is or what is supported by the underlying JDBC driver? Before invoking the scroll method on the query instance I need to know if I can pass ScrollMode.SCROLL_SENSITIVE or ScrollMode.FORWARD_ONLY as a parameter. Many thanks


Top
 Profile  
 
 Post subject: found the answer
PostPosted: Fri May 13, 2005 1:11 pm 
Newbie

Joined: Thu May 12, 2005 5:30 pm
Posts: 4
use configuration.buildSettings().isScrollableResultSetsEnabled


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.