Package org.hibernate.query.sql.spi
Class NamedNativeQueryMemento.Builder
- java.lang.Object
-
- org.hibernate.query.named.AbstractNamedQueryMemento.AbstractBuilder<NamedNativeQueryMemento.Builder>
-
- org.hibernate.query.sql.spi.NamedNativeQueryMemento.Builder
-
- Enclosing interface:
- NamedNativeQueryMemento
public static class NamedNativeQueryMemento.Builder extends AbstractNamedQueryMemento.AbstractBuilder<NamedNativeQueryMemento.Builder>
Delegate used in creating named HQL query mementos.- See Also:
NamedNativeQueryDefinition
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
firstResult
protected Integer
maxResults
protected Set<String>
querySpaces
protected String
queryString
protected String
resultSetMappingClassName
protected String
resultSetMappingName
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedNativeQueryMemento
build(SessionFactoryImplementor sessionFactory)
protected NamedNativeQueryMemento.Builder
getThis()
NamedNativeQueryMemento.Builder
setCacheable(boolean cacheable)
NamedNativeQueryMemento.Builder
setFirstResult(Integer firstResult)
NamedNativeQueryMemento.Builder
setMaxResults(Integer maxResults)
NamedNativeQueryMemento.Builder
setQuery(String queryString)
void
setQuerySpaces(Set<String> querySpaces)
void
setResultSetMappingClassName(String resultSetMappingClassName)
void
setResultSetMappingName(String resultSetMappingName)
-
Methods inherited from class org.hibernate.query.named.AbstractNamedQueryMemento.AbstractBuilder
addHint, addQuerySpace, addQuerySpaces, getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getName, getQuerySpaces, getReadOnly, getTimeout, setCacheable, setCacheMode, setCacheRegion, setComment, setFetchSize, setFlushMode, setReadOnly, setReadOnly, setTimeout
-
-
-
-
Constructor Detail
-
Builder
public Builder(String name)
-
-
Method Detail
-
getThis
protected NamedNativeQueryMemento.Builder getThis()
- Specified by:
getThis
in classAbstractNamedQueryMemento.AbstractBuilder<NamedNativeQueryMemento.Builder>
-
setQuery
public NamedNativeQueryMemento.Builder setQuery(String queryString)
-
setCacheable
public NamedNativeQueryMemento.Builder setCacheable(boolean cacheable)
-
setFirstResult
public NamedNativeQueryMemento.Builder setFirstResult(Integer firstResult)
-
setMaxResults
public NamedNativeQueryMemento.Builder setMaxResults(Integer maxResults)
-
setResultSetMappingName
public void setResultSetMappingName(String resultSetMappingName)
-
setResultSetMappingClassName
public void setResultSetMappingClassName(String resultSetMappingClassName)
-
build
public NamedNativeQueryMemento build(SessionFactoryImplementor sessionFactory)
-
-