org.hibernate.engine
Class NamedQueryDefinition

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

public class NamedQueryDefinition
extends java.lang.Object
implements java.io.Serializable

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

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
NamedQueryDefinition(java.lang.String query, boolean cacheable, java.lang.String cacheRegion, java.lang.Integer timeout, java.lang.Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, java.lang.String comment, java.util.Map parameterTypes)
           
NamedQueryDefinition(java.lang.String query, boolean cacheable, java.lang.String cacheRegion, java.lang.Integer timeout, java.lang.Integer fetchSize, FlushMode flushMode, java.util.Map parameterTypes)
           
 
Method Summary
 CacheMode getCacheMode()
           
 java.lang.String getCacheRegion()
           
 java.lang.String getComment()
           
 java.lang.Integer getFetchSize()
           
 FlushMode getFlushMode()
           
 java.util.Map getParameterTypes()
           
 java.lang.String getQuery()
           
 java.lang.String getQueryString()
           
 java.lang.Integer getTimeout()
           
 boolean isCacheable()
           
 boolean isReadOnly()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedQueryDefinition

public NamedQueryDefinition(java.lang.String query,
                            boolean cacheable,
                            java.lang.String cacheRegion,
                            java.lang.Integer timeout,
                            java.lang.Integer fetchSize,
                            FlushMode flushMode,
                            java.util.Map parameterTypes)

NamedQueryDefinition

public NamedQueryDefinition(java.lang.String query,
                            boolean cacheable,
                            java.lang.String cacheRegion,
                            java.lang.Integer timeout,
                            java.lang.Integer fetchSize,
                            FlushMode flushMode,
                            CacheMode cacheMode,
                            boolean readOnly,
                            java.lang.String comment,
                            java.util.Map parameterTypes)
Method Detail

getQueryString

public java.lang.String getQueryString()

isCacheable

public boolean isCacheable()

getCacheRegion

public java.lang.String getCacheRegion()

getFetchSize

public java.lang.Integer getFetchSize()

getTimeout

public java.lang.Integer getTimeout()

getFlushMode

public FlushMode getFlushMode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParameterTypes

public java.util.Map getParameterTypes()

getQuery

public java.lang.String getQuery()

getCacheMode

public CacheMode getCacheMode()

isReadOnly

public boolean isReadOnly()

getComment

public java.lang.String getComment()


Copyright © 2008 Hibernate.org. All Rights Reserved.