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