类 Util
- java.lang.Object
-
- org.hibernate.procedure.internal.Util
-
public class Util extends Object
Utilities used to implement procedure call support.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceUtil.ResultClassesResolutionContextContext for resolving result-class definitionsstatic interfaceUtil.ResultSetMappingResolutionContextContext for resolving result-set-mapping definitions
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Map<String,Object>copy(Map<String,Object> hints)Make a (shallow) copy of the JPA query hints mapstatic Set<String>copy(Set<String> synchronizedQuerySpaces)Make a (shallow) copy of query spaces to be synchronizedstatic NativeSQLQueryReturn[]copy(NativeSQLQueryReturn[] queryReturns)Makes a copy of the given query return array.static voidresolveResultClasses(Util.ResultClassesResolutionContext context, Class... resultClasses)Resolve the given result classesstatic voidresolveResultSetMappings(Util.ResultSetMappingResolutionContext context, String... resultSetMappingNames)Resolve the given result set mapping names
-
-
-
方法详细资料
-
copy
public static NativeSQLQueryReturn[] copy(NativeSQLQueryReturn[] queryReturns)
Makes a copy of the given query return array.- 参数:
queryReturns- The returns to copy- 返回:
- The copy
-
copy
public static Set<String> copy(Set<String> synchronizedQuerySpaces)
Make a (shallow) copy of query spaces to be synchronized- 参数:
synchronizedQuerySpaces- The query spaces- 返回:
- The copy
-
copy
public static Map<String,Object> copy(Map<String,Object> hints)
Make a (shallow) copy of the JPA query hints map- 参数:
hints- The JPA query hints to copy- 返回:
- The copy
-
resolveResultSetMappings
public static void resolveResultSetMappings(Util.ResultSetMappingResolutionContext context, String... resultSetMappingNames)
Resolve the given result set mapping names- 参数:
context- The context for the resolution. SeeUtil.ResultSetMappingResolutionContextresultSetMappingNames- The names of the result-set-mappings to resolve
-
resolveResultClasses
public static void resolveResultClasses(Util.ResultClassesResolutionContext context, Class... resultClasses)
Resolve the given result classes- 参数:
context- The context for the resolution. SeeUtil.ResultSetMappingResolutionContextresultClasses- The Classes to which the results should be mapped
-
-