Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Query Hints - Multiple Formats?(Recommended Practise: Which query hint format should be used?)
Query Hints - Multiple Formats? [message #802139] Sun, 19 February 2012 13:26 Go to next message
Marvin Toll is currently offline Marvin TollFriend
Messages: 34
Registered: July 2009
query.setHint(QueryHints.CACHE_USAGE, CacheUsage.CheckCacheOnly);
query.setHint(CacheUsage.CheckCacheOnly, HintValues.TRUE);

Which of these is preferred? [I believe they perform the same function.]

Marvin Toll
CTO, Pattern Enabled Development
Re: Query Hints - Multiple Formats? [message #804384 is a reply to message #802139] Wed, 22 February 2012 15:11 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

query.setHint(CacheUsage.CheckCacheOnly, HintValues.TRUE);

Is not a valid hint, so will do nothing.

James : Wiki : Book : Blog : Twitter
Previous Topic:Find - returns detached or cached?
Next Topic:NPE in remote session
Goto Forum:

Current Time: Sat Mar 17 04:40:28 GMT 2018

Powered by FUDForum. Page generated in 0.02436 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software