fr.ifremer.allegro
Class CriteriaSearchConfiguration

java.lang.Object
  extended by fr.ifremer.allegro.CriteriaSearchConfiguration

public class CriteriaSearchConfiguration
extends java.lang.Object

Contains configuration parameters for a CriteriaSearch.

Author:
Stefan Reichert, Peter Friese

Constructor Summary
CriteriaSearchConfiguration()
          Constructs a new CriteriaSearchConfiguration instance with all fields set to either null or false.
 
Method Summary
 java.lang.Integer getFetchSize()
          Gets the fetch size.
 java.lang.Integer getFirstResult()
          Gets the first result to retrieve.
 java.lang.Integer getMaximumResultSize()
          Gets the maximum size of the search result.
 boolean isForceEagerLoading()
          Returns whether or not eager loading is enabled.
 void setFetchSize(java.lang.Integer fetchSize)
          Sets the fetch size.
 void setFirstResult(java.lang.Integer firstResult)
          Sets the first result to retrieve.
 void setForceEagerLoading(boolean forceEagerLoading)
          Sets whether or not eager loading is to be enabled.
 void setMaximumResultSize(java.lang.Integer maximumResultSize)
          Sets the maxmimum size of the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriteriaSearchConfiguration

public CriteriaSearchConfiguration()
Constructs a new CriteriaSearchConfiguration instance with all fields set to either null or false.

Method Detail

isForceEagerLoading

public boolean isForceEagerLoading()
Returns whether or not eager loading is enabled.

Returns:
true if eager loading is enabled, false otherwise

setForceEagerLoading

public void setForceEagerLoading(boolean forceEagerLoading)
Sets whether or not eager loading is to be enabled.

Parameters:
forceEagerLoading - true if eager loading is to be enabled, false otherwise

getFirstResult

public java.lang.Integer getFirstResult()
Gets the first result to retrieve.

Returns:
the first result to retrieve

setFirstResult

public void setFirstResult(java.lang.Integer firstResult)
Sets the first result to retrieve.

Parameters:
firstResult - the first result to retrieve

getFetchSize

public java.lang.Integer getFetchSize()
Gets the fetch size.

Returns:
the fetch size

setFetchSize

public void setFetchSize(java.lang.Integer fetchSize)
Sets the fetch size.

Parameters:
fetchSize - the fetch size

getMaximumResultSize

public java.lang.Integer getMaximumResultSize()
Gets the maximum size of the search result.

Returns:
the maximum size of the search result.

setMaximumResultSize

public void setMaximumResultSize(java.lang.Integer maximumResultSize)
Sets the maxmimum size of the result.

Parameters:
maximumResultSize - A number indicating how many results will be returned.


Copyright © 2008-2010 IFREMER. All Rights Reserved.