Top Description Inners Fields Constructors Methods
org.hibernate.procedure.internal

public Class Util

extends Object
Class Inheritance
Imports
java.util.Map, .Set, org.hibernate.LockMode, org.hibernate.engine.ResultSetMappingDefinition, org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn, .NativeSQLQueryRootReturn, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.loader.custom.sql.SQLQueryReturnProcessor, org.hibernate.persister.entity.EntityPersister, org.hibernate.procedure.UnknownSqlResultSetMappingException, org.jboss.logging.Logger

Utilities used to implement procedure call support.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Util.ResultClassesResolutionContext

Context for resolving result-class definitions

public static interface
Util.ResultSetMappingResolutionContext

Context for resolving result-set-mapping definitions

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private
Util()

Method Summary

Modifier and TypeMethod and Description
public static NativeSQLQueryReturn[]

Returns:

The copy
copy
(NativeSQLQueryReturn[]
The returns to copy
queryReturns
)

Makes a copy of the given query return array.

public static Set<String>

Returns:

The copy
copy
(Set<String>
The query spaces
synchronizedQuerySpaces
)

Make a (shallow) copy of query spaces to be synchronized

public static Map<String, Object>

Returns:

The copy
copy
(Map<String, Object>
The JPA query hints to copy
hints
)

Make a (shallow) copy of the JPA query hints map

public static void
resolveResultClasses(Util.ResultClassesResolutionContext
The context for the resolution. See ResultSetMappingResolutionContext
context
,
Class<T>...
The Classes to which the results should be mapped
resultClasses
)

Resolve the given result classes

public static void
resolveResultSetMappings(Util.ResultSetMappingResolutionContext
The context for the resolution. See ResultSetMappingResolutionContext
context
,
String...
The names of the result-set-mappings to resolve
resultSetMappingNames
)

Resolve the given result set mapping names

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

Utilback to summary
private Util()

Method Detail

copyback to summary
public static NativeSQLQueryReturn[] copy(NativeSQLQueryReturn[] queryReturns)

Makes a copy of the given query return array.

Parameters
queryReturns:NativeSQLQueryReturn[]

The returns to copy

Returns:NativeSQLQueryReturn[]

The copy

copyback to summary
public static Set<String> copy(Set<String> synchronizedQuerySpaces)

Make a (shallow) copy of query spaces to be synchronized

Parameters
synchronizedQuerySpaces:Set<String>

The query spaces

Returns:Set<String>

The copy

copyback to summary
public static Map<String, Object> copy(Map<String, Object> hints)

Make a (shallow) copy of the JPA query hints map

Parameters
hints:Map<String, Object>

The JPA query hints to copy

Returns:Map<String, Object>

The copy

resolveResultClassesback to summary
public static void resolveResultClasses(Util.ResultClassesResolutionContext context, Class<T>... resultClasses)

Resolve the given result classes

Parameters
context:Util.ResultClassesResolutionContext

The context for the resolution. See ResultSetMappingResolutionContext

resultClasses:Class<T>[]

The Classes to which the results should be mapped

resolveResultSetMappingsback to summary
public static void resolveResultSetMappings(Util.ResultSetMappingResolutionContext context, String... resultSetMappingNames)

Resolve the given result set mapping names

Parameters
context:Util.ResultSetMappingResolutionContext

The context for the resolution. See ResultSetMappingResolutionContext

resultSetMappingNames:String[]

The names of the result-set-mappings to resolve

org.hibernate.procedure.internal back to summary

public Interface Util.ResultClassesResolutionContext


Context for resolving result-class definitions

Method Summary

Modifier and TypeMethod and Description
public void
addQueryReturns(NativeSQLQueryReturn...
The query returns
queryReturns
)

Callback to add query returns indicated by the result set mapping(s)

public void
addQuerySpaces(String...
The query spaces
querySpaces
)

Callback to add query spaces indicated by the result set mapping(s)

public SessionFactoryImplementor

Returns:

SessionFactory
getSessionFactory
()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Access to the SessionFactory

Method Detail

addQueryReturnsback to summary
public void addQueryReturns(NativeSQLQueryReturn... queryReturns)

Callback to add query returns indicated by the result set mapping(s)

Parameters
queryReturns:NativeSQLQueryReturn[]

The query returns

addQuerySpacesback to summary
public void addQuerySpaces(String... querySpaces)

Callback to add query spaces indicated by the result set mapping(s)

Parameters
querySpaces:String[]

The query spaces

getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Deprecated

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

Access to the SessionFactory

Returns:SessionFactoryImplementor

SessionFactory

org.hibernate.procedure.internal back to summary

public Interface Util.ResultSetMappingResolutionContext


Context for resolving result-set-mapping definitions

Method Summary

Modifier and TypeMethod and Description
public void
addQueryReturns(NativeSQLQueryReturn...
The query returns
queryReturns
)

Callback to add query returns indicated by the result set mapping(s)

public void
addQuerySpaces(String...
The query spaces
querySpaces
)

Callback to add query spaces indicated by the result set mapping(s)

public ResultSetMappingDefinition

Returns:

The ResultSetMappingDefinition
findResultSetMapping
(String
The name of the ResultSetMappingDefinition to locate
name
)

Locate a ResultSetMappingDefinition by name

public SessionFactoryImplementor

Returns:

SessionFactory
getSessionFactory
()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Access to the SessionFactory

Method Detail

addQueryReturnsback to summary
public void addQueryReturns(NativeSQLQueryReturn... queryReturns)

Callback to add query returns indicated by the result set mapping(s)

Parameters
queryReturns:NativeSQLQueryReturn[]

The query returns

addQuerySpacesback to summary
public void addQuerySpaces(String... querySpaces)

Callback to add query spaces indicated by the result set mapping(s)

Parameters
querySpaces:String[]

The query spaces

findResultSetMappingback to summary
public ResultSetMappingDefinition findResultSetMapping(String name)

Locate a ResultSetMappingDefinition by name

Parameters
name:String

The name of the ResultSetMappingDefinition to locate

Returns:ResultSetMappingDefinition

The ResultSetMappingDefinition

getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Deprecated

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

Access to the SessionFactory

Returns:SessionFactoryImplementor

SessionFactory