/** * Example license header for Java files * * http://www.andromda.org/ */ // // Attention: Generated code! Do not modify by hand! // Generated by: HibernateSearchConfiguration.vsl in andromda-spring-cartridge. // package org.andromda.spring; /** * Contains configuration parameters for a CriteriaSearch. * * @author Stefan Reichert * @author Peter Friese */ public class CriteriaSearchConfiguration { /** * Constructs a new CriteriaSearchConfiguration instance with all fields set to * either null or false. */ public CriteriaSearchConfiguration() { this.forceEagerLoading = false; this.firstResult = null; this.fetchSize = null; this.maximumResultSize = null; } /** * If a parameter refers to a childEntity and forceEagerLoading is * true, the childEntity is always loaded. If forceEagerLoading is * false, the loading depends on the persister-configuration of the parentEntity. */ private boolean forceEagerLoading; /** * Returns whether or not eager loading is enabled. * * @return true if eager loading is enabled, false otherwise */ public boolean isForceEagerLoading() { return forceEagerLoading; } /** * Sets whether or not eager loading is to be enabled. * * @param forceEagerLoading true if eager loading is to be enabled, false otherwise */ public void setForceEagerLoading(boolean forceEagerLoading) { this.forceEagerLoading = forceEagerLoading; } /** * The first result to retrieve. */ private java.lang.Integer firstResult; /** * Gets the first result to retrieve. * * @return the first result to retrieve */ public java.lang.Integer getFirstResult() { return this.firstResult; } /** * Sets the first result to retrieve. * * @param firstResult the first result to retrieve */ public void setFirstResult(java.lang.Integer firstResult) { this.firstResult = firstResult; } /** * The fetch size. */ private java.lang.Integer fetchSize; /** * Gets the fetch size. * * @return the fetch size */ public java.lang.Integer getFetchSize() { return this.fetchSize; } /** * Sets the fetch size. * * @param fetchSize the fetch size */ public void setFetchSize(java.lang.Integer fetchSize) { this.fetchSize = fetchSize; } /** * If maximumResultSize is not null it limits the maximum size of * the resultList. */ private java.lang.Integer maximumResultSize; /** * Gets the maximum size of the search result. * * @return the maximum size of the search result. */ public java.lang.Integer getMaximumResultSize() { return this.maximumResultSize; } /** * Sets the maxmimum size of the result. * * @param maximumResultSize A number indicating how many results will be returned. */ public void setMaximumResultSize(java.lang.Integer maximumResultSize) { this.maximumResultSize = maximumResultSize; } }