Top Description Inners Methods
org.hibernate.boot.query

public Interface NamedHqlQueryDefinition

extends NamedQueryDefinition
Known Direct Implementers
org.hibernate.boot.internal.NamedHqlQueryDefinitionImpl
Imports
java.util.HashMap, .Map, org.hibernate.boot.internal.NamedHqlQueryDefinitionImpl, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.query.sqm.spi.NamedSqmQueryMemento

Boot-time descriptor of a named HQL query, as defined in annotations or xml
Authors
Steve Ebersole, Gavin King
See Also
jakarta.persistence.NamedQuery, org.hibernate.annotations.NamedQuery

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public String
public NamedSqmQueryMemento
resolve(SessionFactoryImplementor factory)

Redeclares org.hibernate.boot.query.NamedQueryDefinition.resolve.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Resolve the mapping definition into its run-time memento form
Inherited from org.hibernate.boot.query.NamedQueryDefinition:
getRegistrationName

Method Detail

getHqlStringback to summary
public String getHqlString()
resolveback to summary
public NamedSqmQueryMemento resolve(SessionFactoryImplementor factory)

Redeclares org.hibernate.boot.query.NamedQueryDefinition.resolve.

Doc from org.hibernate.boot.query.NamedQueryDefinition.resolve.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Resolve the mapping definition into its run-time memento form

Annotations
@Override
org.hibernate.boot.query back to summary

public Class NamedHqlQueryDefinition.Builder

extends AbstractNamedQueryBuilder<NamedHqlQueryDefinition.Builder>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Integer
private String
private Integer
private Map<String, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public NamedHqlQueryDefinitionImpl
public String
protected NamedHqlQueryDefinition.Builder
public NamedHqlQueryDefinition.Builder
setFirstResult(Integer firstResult)

public NamedHqlQueryDefinition.Builder
setHqlString(String hqlString)

public NamedHqlQueryDefinition.Builder
setMaxResults(Integer maxResults)

Inherited from org.hibernate.boot.query.AbstractNamedQueryBuilder:
addHintaddHintsgetCacheablegetCacheModegetCacheRegiongetCommentgetFetchSizegetFlushModegetHintsgetLockOptionsgetNamegetReadOnlygetTimeoutsetCacheablesetCacheModesetCacheRegionsetCommentsetFetchSizesetFlushModesetLockOptionssetReadOnlysetTimeout

Field Detail

firstResultback to summary
private Integer firstResult
hqlStringback to summary
private String hqlString
maxResultsback to summary
private Integer maxResults
parameterTypesback to summary
private Map<String, String> parameterTypes

Constructor Detail

Builderback to summary
public Builder(String name)

Method Detail

addParameterTypeHintback to summary
public void addParameterTypeHint(String name, String type)
buildback to summary
public NamedHqlQueryDefinitionImpl build()
getHqlStringback to summary
public String getHqlString()
getThisback to summary
protected NamedHqlQueryDefinition.Builder getThis()

Implements abstract org.hibernate.boot.query.AbstractNamedQueryBuilder.getThis.

Annotations
@Override
setFirstResultback to summary
public NamedHqlQueryDefinition.Builder setFirstResult(Integer firstResult)
setHqlStringback to summary
public NamedHqlQueryDefinition.Builder setHqlString(String hqlString)
setMaxResultsback to summary
public NamedHqlQueryDefinition.Builder setMaxResults(Integer maxResults)