Package org.hibernate.query.named
Class AbstractNamedQueryMemento.AbstractBuilder<T extends AbstractNamedQueryMemento.AbstractBuilder>
- java.lang.Object
-
- org.hibernate.query.named.AbstractNamedQueryMemento.AbstractBuilder<T>
-
- Direct Known Subclasses:
NamedNativeQueryMemento.Builder
- Enclosing class:
- AbstractNamedQueryMemento
public abstract static class AbstractNamedQueryMemento.AbstractBuilder<T extends AbstractNamedQueryMemento.AbstractBuilder> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleancacheableprotected CacheModecacheModeprotected StringcacheRegionprotected Stringcommentprotected IntegerfetchSizeprotected FlushModeflushModeprotected Map<String,Object>hintsprotected Stringnameprotected Set<String>querySpacesprotected BooleanreadOnlyprotected Integertimeout
-
Constructor Summary
Constructors Constructor Description AbstractBuilder(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddHint(String name, Object value)TaddQuerySpace(String space)TaddQuerySpaces(Set<String> querySpaces)BooleangetCacheable()CacheModegetCacheMode()StringgetCacheRegion()StringgetComment()IntegergetFetchSize()FlushModegetFlushMode()StringgetName()Set<String>getQuerySpaces()BooleangetReadOnly()protected abstract TgetThis()IntegergetTimeout()TsetCacheable(Boolean cacheable)TsetCacheMode(CacheMode cacheMode)TsetCacheRegion(String cacheRegion)TsetComment(String comment)TsetFetchSize(Integer fetchSize)TsetFlushMode(FlushMode flushMode)TsetReadOnly(boolean readOnly)TsetReadOnly(Boolean readOnly)TsetTimeout(Integer timeout)
-
-
-
Field Detail
-
name
protected final String name
-
cacheable
protected Boolean cacheable
-
cacheRegion
protected String cacheRegion
-
cacheMode
protected CacheMode cacheMode
-
flushMode
protected FlushMode flushMode
-
readOnly
protected Boolean readOnly
-
timeout
protected Integer timeout
-
fetchSize
protected Integer fetchSize
-
comment
protected String comment
-
-
Constructor Detail
-
AbstractBuilder
public AbstractBuilder(String name)
-
-
Method Detail
-
getName
public String getName()
-
getThis
protected abstract T getThis()
-
setReadOnly
public T setReadOnly(boolean readOnly)
-
getCacheable
public Boolean getCacheable()
-
getCacheRegion
public String getCacheRegion()
-
getCacheMode
public CacheMode getCacheMode()
-
getFlushMode
public FlushMode getFlushMode()
-
getReadOnly
public Boolean getReadOnly()
-
getTimeout
public Integer getTimeout()
-
getFetchSize
public Integer getFetchSize()
-
getComment
public String getComment()
-
-