Package org.hibernate.boot.query
Class NamedNativeQueryDefinitionBuilder
- java.lang.Object
-
- org.hibernate.boot.query.AbstractNamedQueryBuilder<NamedNativeQueryDefinitionBuilder>
-
- org.hibernate.boot.query.NamedNativeQueryDefinitionBuilder
-
public class NamedNativeQueryDefinitionBuilder extends AbstractNamedQueryBuilder<NamedNativeQueryDefinitionBuilder>
-
-
Constructor Summary
Constructors Constructor Description NamedNativeQueryDefinitionBuilder(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameterTypeHint(String name, String type)
NamedNativeQueryDefinitionBuilder
addSynchronizedQuerySpace(String space)
NamedNativeQueryDefinition
build()
Map<String,String>
getParameterTypes()
Set<String>
getQuerySpaces()
String
getResultSetMappingClassName()
String
getResultSetMappingName()
String
getSqlString()
protected NamedNativeQueryDefinitionBuilder
getThis()
NamedNativeQueryDefinitionBuilder
setFirstResult(Integer firstResult)
NamedNativeQueryDefinitionBuilder
setMaxResults(Integer maxResults)
NamedNativeQueryDefinitionBuilder
setQuerySpaces(Set<String> spaces)
NamedNativeQueryDefinitionBuilder
setResultSetMappingClassName(String resultSetMappingClassName)
NamedNativeQueryDefinitionBuilder
setResultSetMappingName(String resultSetMappingName)
NamedNativeQueryDefinitionBuilder
setSqlString(String sqlString)
-
Methods inherited from class org.hibernate.boot.query.AbstractNamedQueryBuilder
addHint, addHints, getCacheable, getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getHints, getLockOptions, getName, getReadOnly, getTimeout, setCacheable, setCacheMode, setCacheRegion, setComment, setFetchSize, setFlushMode, setLockOptions, setReadOnly, setTimeout
-
-
-
-
Constructor Detail
-
NamedNativeQueryDefinitionBuilder
public NamedNativeQueryDefinitionBuilder(String name)
-
-
Method Detail
-
setSqlString
public NamedNativeQueryDefinitionBuilder setSqlString(String sqlString)
-
setFirstResult
public NamedNativeQueryDefinitionBuilder setFirstResult(Integer firstResult)
-
setMaxResults
public NamedNativeQueryDefinitionBuilder setMaxResults(Integer maxResults)
-
build
public NamedNativeQueryDefinition build()
-
getThis
protected NamedNativeQueryDefinitionBuilder getThis()
- Specified by:
getThis
in classAbstractNamedQueryBuilder<NamedNativeQueryDefinitionBuilder>
-
getSqlString
public String getSqlString()
-
getResultSetMappingName
public String getResultSetMappingName()
-
getResultSetMappingClassName
public String getResultSetMappingClassName()
-
addSynchronizedQuerySpace
public NamedNativeQueryDefinitionBuilder addSynchronizedQuerySpace(String space)
-
setQuerySpaces
public NamedNativeQueryDefinitionBuilder setQuerySpaces(Set<String> spaces)
-
setResultSetMappingName
public NamedNativeQueryDefinitionBuilder setResultSetMappingName(String resultSetMappingName)
-
setResultSetMappingClassName
public NamedNativeQueryDefinitionBuilder setResultSetMappingClassName(String resultSetMappingClassName)
-
-