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 Boolean
cacheable
protected CacheMode
cacheMode
protected String
cacheRegion
protected String
comment
protected Integer
fetchSize
protected FlushMode
flushMode
protected Map<String,Object>
hints
protected String
name
protected Set<String>
querySpaces
protected Boolean
readOnly
protected Integer
timeout
-
Constructor Summary
Constructors Constructor Description AbstractBuilder(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addHint(String name, Object value)
T
addQuerySpace(String space)
T
addQuerySpaces(Set<String> querySpaces)
Boolean
getCacheable()
CacheMode
getCacheMode()
String
getCacheRegion()
String
getComment()
Integer
getFetchSize()
FlushMode
getFlushMode()
String
getName()
Set<String>
getQuerySpaces()
Boolean
getReadOnly()
protected abstract T
getThis()
Integer
getTimeout()
T
setCacheable(Boolean cacheable)
T
setCacheMode(CacheMode cacheMode)
T
setCacheRegion(String cacheRegion)
T
setComment(String comment)
T
setFetchSize(Integer fetchSize)
T
setFlushMode(FlushMode flushMode)
T
setReadOnly(boolean readOnly)
T
setReadOnly(Boolean readOnly)
T
setTimeout(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()
-
-