Top Inners Fields Constructors Methods
org.hibernate.query.named

public abstract Class AbstractNamedQueryMemento

extends Object
implements NamedQueryMemento
Class Inheritance
All Implemented Interfaces
org.hibernate.query.named.NamedQueryMemento
Known Direct Subclasses
org.hibernate.query.sql.internal.NamedNativeQueryMementoImpl, org.hibernate.procedure.internal.NamedCallableQueryMementoImpl, org.hibernate.query.criteria.internal.NamedCriteriaQueryMementoImpl, org.hibernate.query.hql.internal.NamedHqlQueryMementoImpl
Imports
java.util.HashMap, .HashSet, .Map, .Set, org.hibernate.CacheMode, .FlushMode

Authors
Steve Ebersole, Gavin King

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class

Field Summary

Modifier and TypeField and Description
private final Boolean
private final CacheMode
private final String
private final String
private final Integer
private final FlushMode
private final Map<String, Object>
private final String
private final Boolean
private final Integer

Constructor Summary

AccessConstructor and Description
protected
AbstractNamedQueryMemento(String name, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, Integer timeout, Integer fetchSize, String comment, Map<String, Object> hints)

Method Summary

Modifier and TypeMethod and Description
public Boolean
public CacheMode
public String
public String
public Integer
public FlushMode
public Map<String, Object>
public Boolean
public String
getRegistrationName()

Implements org.hibernate.query.named.NamedQueryMemento.getRegistrationName.

The name under which the query is registered
public Integer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheableback to summary
private final Boolean cacheable
cacheModeback to summary
private final CacheMode cacheMode
cacheRegionback to summary
private final String cacheRegion
commentback to summary
private final String comment
fetchSizeback to summary
private final Integer fetchSize
flushModeback to summary
private final FlushMode flushMode
hintsback to summary
private final Map<String, Object> hints
nameback to summary
private final String name
readOnlyback to summary
private final Boolean readOnly
timeoutback to summary
private final Integer timeout

Constructor Detail

AbstractNamedQueryMementoback to summary
protected AbstractNamedQueryMemento(String name, Boolean cacheable, String cacheRegion, CacheMode cacheMode, FlushMode flushMode, Boolean readOnly, Integer timeout, Integer fetchSize, String comment, Map<String, Object> hints)

Method Detail

getCacheableback to summary
public Boolean getCacheable()

Implements org.hibernate.query.named.NamedQueryMemento.getCacheable.

Annotations
@Override
getCacheModeback to summary
public CacheMode getCacheMode()

Implements org.hibernate.query.named.NamedQueryMemento.getCacheMode.

Annotations
@Override
getCacheRegionback to summary
public String getCacheRegion()

Implements org.hibernate.query.named.NamedQueryMemento.getCacheRegion.

Annotations
@Override
getCommentback to summary
public String getComment()

Implements org.hibernate.query.named.NamedQueryMemento.getComment.

Annotations
@Override
getFetchSizeback to summary
public Integer getFetchSize()

Implements org.hibernate.query.named.NamedQueryMemento.getFetchSize.

Annotations
@Override
getFlushModeback to summary
public FlushMode getFlushMode()

Implements org.hibernate.query.named.NamedQueryMemento.getFlushMode.

Annotations
@Override
getHintsback to summary
public Map<String, Object> getHints()

Implements org.hibernate.query.named.NamedQueryMemento.getHints.

Annotations
@Override
getReadOnlyback to summary
public Boolean getReadOnly()

Implements org.hibernate.query.named.NamedQueryMemento.getReadOnly.

Annotations
@Override
getRegistrationNameback to summary
public String getRegistrationName()

Implements org.hibernate.query.named.NamedQueryMemento.getRegistrationName.

Doc from org.hibernate.query.named.NamedQueryMemento.getRegistrationName.

The name under which the query is registered

Annotations
@Override
getTimeoutback to summary
public Integer getTimeout()

Implements org.hibernate.query.named.NamedQueryMemento.getTimeout.

Annotations
@Override
org.hibernate.query.named back to summary

public abstract Class AbstractNamedQueryMemento.AbstractBuilder<T extends AbstractNamedQueryMemento.AbstractBuilder>

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.query.named.AbstractNamedQueryMemento.AbstractBuilder
Known Direct Subclasses
org.hibernate.query.sql.spi.NamedNativeQueryMemento.Builder

Field Summary

Modifier and TypeField and Description
protected Boolean
protected CacheMode
protected String
protected String
protected Integer
protected FlushMode
protected Map<String, Object>
protected final String
protected Set<String>
protected Boolean
protected Integer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addHint(String name, Object value)

public T
public T
addQuerySpaces(Set<String> querySpaces)

public Boolean
public CacheMode
public String
public String
public Integer
public FlushMode
public String
public Set<String>
public Boolean
protected abstract T
public Integer
public T
setCacheable(Boolean cacheable)

public T
public T
setCacheRegion(String cacheRegion)

public T
setComment(String comment)

public T
setFetchSize(Integer fetchSize)

public T
public T
setReadOnly(Boolean readOnly)

public T
setReadOnly(boolean readOnly)

public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheableback to summary
protected Boolean cacheable
cacheModeback to summary
protected CacheMode cacheMode
cacheRegionback to summary
protected String cacheRegion
commentback to summary
protected String comment
fetchSizeback to summary
protected Integer fetchSize
flushModeback to summary
protected FlushMode flushMode
hintsback to summary
protected Map<String, Object> hints
nameback to summary
protected final String name
querySpacesback to summary
protected Set<String> querySpaces
readOnlyback to summary
protected Boolean readOnly
timeoutback to summary
protected Integer timeout

Constructor Detail

AbstractBuilderback to summary
public AbstractBuilder(String name)

Method Detail

addHintback to summary
public void addHint(String name, Object value)
addQuerySpaceback to summary
public T addQuerySpace(String space)
addQuerySpacesback to summary
public T addQuerySpaces(Set<String> querySpaces)
getCacheableback to summary
public Boolean getCacheable()
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()
getNameback to summary
public String getName()
getQuerySpacesback to summary
public Set<String> getQuerySpaces()
getReadOnlyback to summary
public Boolean getReadOnly()
getThisback to summary
protected abstract T getThis()
getTimeoutback to summary
public Integer getTimeout()
setCacheableback to summary
public T setCacheable(Boolean cacheable)
setCacheModeback to summary
public T setCacheMode(CacheMode cacheMode)
setCacheRegionback to summary
public T setCacheRegion(String cacheRegion)
setCommentback to summary
public T setComment(String comment)
setFetchSizeback to summary
public T setFetchSize(Integer fetchSize)
setFlushModeback to summary
public T setFlushMode(FlushMode flushMode)
setReadOnlyback to summary
public T setReadOnly(Boolean readOnly)
setReadOnlyback to summary
public T setReadOnly(boolean readOnly)
setTimeoutback to summary
public T setTimeout(Integer timeout)