Top Description Fields Constructors Methods
org.hibernate.engine

public Class NamedQueryDefinition

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.hibernate.engine.NamedSQLQueryDefinition
Imports
java.io.Serializable, java.util.Map, org.hibernate.CacheMode, .FlushMode

Definition of a named query, defined in the mapping metadata.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final boolean
private CacheMode
private final String
private String
private final Integer
private final FlushMode
private final Map<K, V>
private final String
private boolean
private final Integer

Constructor Summary

AccessConstructor and Description
public
NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode, Map<K, V> parameterTypes)

public
NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, String comment, Map<K, V> parameterTypes)

Method Summary

Modifier and TypeMethod and Description
public CacheMode
public String
public String
public Integer
public FlushMode
public Map<K, V>
public String
public String
public Integer
public boolean
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cacheableback to summary
private final boolean cacheable
cacheModeback to summary
private CacheMode cacheMode
cacheRegionback to summary
private final String cacheRegion
commentback to summary
private String comment
fetchSizeback to summary
private final Integer fetchSize
flushModeback to summary
private final FlushMode flushMode
parameterTypesback to summary
private final Map<K, V> parameterTypes
queryback to summary
private final String query
readOnlyback to summary
private boolean readOnly
timeoutback to summary
private final Integer timeout

Constructor Detail

NamedQueryDefinitionback to summary
public NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode, Map<K, V> parameterTypes)
NamedQueryDefinitionback to summary
public NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, String comment, Map<K, V> parameterTypes)

Method Detail

getCacheModeback to summary
public CacheMode getCacheMode()
getCacheRegionback to summary
public String getCacheRegion()
getCommentback to summary
public String getComment()
getFetchSizeback to summary
public Integer getFetchSize()
getFlushModeback to summary
public FlushMode getFlushMode()
getParameterTypesback to summary
public Map<K, V> getParameterTypes()
getQueryback to summary
public String getQuery()
getQueryStringback to summary
public String getQueryString()
getTimeoutback to summary
public Integer getTimeout()
isCacheableback to summary
public boolean isCacheable()
isReadOnlyback to summary
public boolean isReadOnly()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.