FileDocCategorySizeDatePackage
NamedQueryDefinition.javaAPI DocHibernate 3.2.52357Fri Aug 19 18:40:24 BST 2005org.hibernate.engine

NamedQueryDefinition

public class NamedQueryDefinition extends Object implements Serializable
Definition of a named query, defined in the mapping metadata.
author
Gavin King

Fields Summary
private final String
query
private final boolean
cacheable
private final String
cacheRegion
private final Integer
timeout
private final Integer
fetchSize
private final org.hibernate.FlushMode
flushMode
private final Map
parameterTypes
private org.hibernate.CacheMode
cacheMode
private boolean
readOnly
private String
comment
Constructors Summary
public NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, org.hibernate.FlushMode flushMode, Map parameterTypes)

		this(
				query,
				cacheable,
				cacheRegion,
				timeout,
				fetchSize,
				flushMode,
				null,
				false,
				null,
				parameterTypes
		);
	
public NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, org.hibernate.FlushMode flushMode, org.hibernate.CacheMode cacheMode, boolean readOnly, String comment, Map parameterTypes)

		this.query = query;
		this.cacheable = cacheable;
		this.cacheRegion = cacheRegion;
		this.timeout = timeout;
		this.fetchSize = fetchSize;
		this.flushMode = flushMode;
		this.parameterTypes = parameterTypes;
		this.cacheMode = cacheMode;
		this.readOnly = readOnly;
		this.comment = comment;
	
Methods Summary
public org.hibernate.CacheModegetCacheMode()

		return cacheMode;
	
public java.lang.StringgetCacheRegion()

		return cacheRegion;
	
public java.lang.StringgetComment()

		return comment;
	
public java.lang.IntegergetFetchSize()

		return fetchSize;
	
public org.hibernate.FlushModegetFlushMode()

		return flushMode;
	
public java.util.MapgetParameterTypes()

		return parameterTypes;
	
public java.lang.StringgetQuery()

		return query;
	
public java.lang.StringgetQueryString()

		return query;
	
public java.lang.IntegergetTimeout()

		return timeout;
	
public booleanisCacheable()

		return cacheable;
	
public booleanisReadOnly()

		return readOnly;
	
public java.lang.StringtoString()

		return getClass().getName() + '(" + query + ')";