Package org.hibernate.engine.spi
Class NamedQueryDefinitionBuilder
- java.lang.Object
-
- org.hibernate.engine.spi.NamedQueryDefinitionBuilder
-
- Direct Known Subclasses:
NamedSQLQueryDefinitionBuilder
public class NamedQueryDefinitionBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancacheableprotected CacheModecacheModeprotected StringcacheRegionprotected Stringcommentprotected IntegerfetchSizeprotected IntegerfirstResultprotected FlushModeflushModeprotected LockOptionslockOptionsprotected IntegermaxResultsprotected Stringnameprotected MapparameterTypesprotected BooleanpassDistinctThroughprotected Stringqueryprotected booleanreadOnlyprotected Integertimeout
-
Constructor Summary
Constructors Constructor Description NamedQueryDefinitionBuilder()NamedQueryDefinitionBuilder(String name)
-
Method Summary
-
-
-
Field Detail
-
name
protected String name
-
query
protected String query
-
cacheable
protected boolean cacheable
-
cacheRegion
protected String cacheRegion
-
timeout
protected Integer timeout
-
fetchSize
protected Integer fetchSize
-
flushMode
protected FlushMode flushMode
-
cacheMode
protected CacheMode cacheMode
-
readOnly
protected boolean readOnly
-
comment
protected String comment
-
parameterTypes
protected Map parameterTypes
-
lockOptions
protected LockOptions lockOptions
-
firstResult
protected Integer firstResult
-
maxResults
protected Integer maxResults
-
passDistinctThrough
protected Boolean passDistinctThrough
-
-
Constructor Detail
-
NamedQueryDefinitionBuilder
public NamedQueryDefinitionBuilder()
-
NamedQueryDefinitionBuilder
public NamedQueryDefinitionBuilder(String name)
-
-
Method Detail
-
setName
public NamedQueryDefinitionBuilder setName(String name)
-
setQuery
public NamedQueryDefinitionBuilder setQuery(String query)
-
setCacheable
public NamedQueryDefinitionBuilder setCacheable(boolean cacheable)
-
setCacheRegion
public NamedQueryDefinitionBuilder setCacheRegion(String cacheRegion)
-
setTimeout
public NamedQueryDefinitionBuilder setTimeout(Integer timeout)
-
setFetchSize
public NamedQueryDefinitionBuilder setFetchSize(Integer fetchSize)
-
setFlushMode
public NamedQueryDefinitionBuilder setFlushMode(FlushMode flushMode)
-
setCacheMode
public NamedQueryDefinitionBuilder setCacheMode(CacheMode cacheMode)
-
setReadOnly
public NamedQueryDefinitionBuilder setReadOnly(boolean readOnly)
-
setComment
public NamedQueryDefinitionBuilder setComment(String comment)
-
addParameterType
public NamedQueryDefinitionBuilder addParameterType(String name, String typeName)
-
setParameterTypes
public NamedQueryDefinitionBuilder setParameterTypes(Map parameterTypes)
-
setLockOptions
public NamedQueryDefinitionBuilder setLockOptions(LockOptions lockOptions)
-
setFirstResult
public NamedQueryDefinitionBuilder setFirstResult(Integer firstResult)
-
setMaxResults
public NamedQueryDefinitionBuilder setMaxResults(Integer maxResults)
-
setPassDistinctThrough
public NamedQueryDefinitionBuilder setPassDistinctThrough(Boolean passDistinctThrough)
-
createNamedQueryDefinition
public NamedQueryDefinition createNamedQueryDefinition()
-
-