Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.query
Class FetchOptions

java.lang.Object
  extended by org.infinispan.query.FetchOptions

public class FetchOptions
extends Object

Author:
Marko Luksa

Nested Class Summary
static class FetchOptions.FetchMode
          Specifies the fetching strategy for query results.
 
Constructor Summary
FetchOptions()
           
 
Method Summary
 FetchOptions fetchMode(FetchOptions.FetchMode fetchMode)
          Set the fetch mode to be used to fetch matching results
 FetchOptions fetchSize(int fetchSize)
          Set the fetch size for batch loading of matches
 FetchOptions.FetchMode getFetchMode()
           
 int getFetchSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchOptions

public FetchOptions()
Method Detail

fetchMode

public FetchOptions fetchMode(FetchOptions.FetchMode fetchMode)
Set the fetch mode to be used to fetch matching results

Parameters:
fetchMode -
Returns:
this to allow method chaining

fetchSize

public FetchOptions fetchSize(int fetchSize)
Set the fetch size for batch loading of matches

Parameters:
fetchSize -
Returns:
this to allow method chaining

getFetchMode

public FetchOptions.FetchMode getFetchMode()
Returns:
the selected fetch mode

getFetchSize

public int getFetchSize()
Returns:
the used fetch size

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.