public class NamedQueryDefinitionBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
cacheable |
protected CacheMode |
cacheMode |
protected String |
cacheRegion |
protected String |
comment |
protected Integer |
fetchSize |
protected Integer |
firstResult |
protected FlushMode |
flushMode |
protected LockOptions |
lockOptions |
protected Integer |
maxResults |
protected String |
name |
protected Map |
parameterTypes |
protected String |
query |
protected boolean |
readOnly |
protected Integer |
timeout |
Constructor and Description |
---|
NamedQueryDefinitionBuilder() |
NamedQueryDefinitionBuilder(String name) |
protected String name
protected String query
protected boolean cacheable
protected String cacheRegion
protected Integer timeout
protected Integer fetchSize
protected FlushMode flushMode
protected CacheMode cacheMode
protected boolean readOnly
protected String comment
protected Map parameterTypes
protected LockOptions lockOptions
protected Integer firstResult
protected Integer maxResults
public NamedQueryDefinitionBuilder()
public NamedQueryDefinitionBuilder(String name)
public NamedQueryDefinitionBuilder setName(String name)
public NamedQueryDefinitionBuilder setQuery(String query)
public NamedQueryDefinitionBuilder setCacheable(boolean cacheable)
public NamedQueryDefinitionBuilder setCacheRegion(String cacheRegion)
public NamedQueryDefinitionBuilder setTimeout(Integer timeout)
public NamedQueryDefinitionBuilder setFetchSize(Integer fetchSize)
public NamedQueryDefinitionBuilder setFlushMode(FlushMode flushMode)
public NamedQueryDefinitionBuilder setCacheMode(CacheMode cacheMode)
public NamedQueryDefinitionBuilder setReadOnly(boolean readOnly)
public NamedQueryDefinitionBuilder setComment(String comment)
public NamedQueryDefinitionBuilder addParameterType(String name, String typeName)
public NamedQueryDefinitionBuilder setParameterTypes(Map parameterTypes)
public NamedQueryDefinitionBuilder setLockOptions(LockOptions lockOptions)
public NamedQueryDefinitionBuilder setFirstResult(Integer firstResult)
public NamedQueryDefinitionBuilder setMaxResults(Integer maxResults)
public NamedQueryDefinition createNamedQueryDefinition()
Copyright © 2017 JBoss by Red Hat. All rights reserved.