org.hibernate.engine
Class NamedQueryDefinition

java.lang.Object
  extended byorg.hibernate.engine.NamedQueryDefinition
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NamedSQLQueryDefinition

public class NamedQueryDefinition
extends Object
implements Serializable

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

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
NamedQueryDefinition(String query, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode)
           
 
Method Summary
 String getCacheRegion()
           
 Integer getFetchSize()
           
 FlushMode getFlushMode()
           
 String getQueryString()
           
 Integer getTimeout()
           
 boolean isCacheable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedQueryDefinition

public NamedQueryDefinition(String query,
                            boolean cacheable,
                            String cacheRegion,
                            Integer timeout,
                            Integer fetchSize,
                            FlushMode flushMode)
Method Detail

getQueryString

public String getQueryString()

isCacheable

public boolean isCacheable()

getCacheRegion

public String getCacheRegion()

getFetchSize

public Integer getFetchSize()

getTimeout

public Integer getTimeout()

getFlushMode

public FlushMode getFlushMode()

toString

public String toString()