public class Util extends Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
Util.ResultClassesResolutionContext
Context for resolving result-class definitions 
 | 
static interface  | 
Util.ResultSetMappingResolutionContext
Context for resolving result-set-mapping definitions 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Map<String,Object> | 
copy(Map<String,Object> hints)
Make a (shallow) copy of the JPA query hints map 
 | 
static NativeSQLQueryReturn[] | 
copy(NativeSQLQueryReturn[] queryReturns)
Makes a copy of the given query return array. 
 | 
static Set<String> | 
copy(Set<String> synchronizedQuerySpaces)
Make a (shallow) copy of query spaces to be synchronized 
 | 
static void | 
resolveResultClasses(Util.ResultClassesResolutionContext context,
                    Class... resultClasses)
Resolve the given result classes 
 | 
static void | 
resolveResultSetMappings(Util.ResultSetMappingResolutionContext context,
                        String... resultSetMappingNames)
Resolve the given result set mapping names 
 | 
public static NativeSQLQueryReturn[] copy(NativeSQLQueryReturn[] queryReturns)
queryReturns - The returns to copypublic static Set<String> copy(Set<String> synchronizedQuerySpaces)
synchronizedQuerySpaces - The query spacespublic static Map<String,Object> copy(Map<String,Object> hints)
hints - The JPA query hints to copypublic static void resolveResultSetMappings(Util.ResultSetMappingResolutionContext context, String... resultSetMappingNames)
context - The context for the resolution.  See Util.ResultSetMappingResolutionContextresultSetMappingNames - The names of the result-set-mappings to resolvepublic static void resolveResultClasses(Util.ResultClassesResolutionContext context, Class... resultClasses)
context - The context for the resolution.  See Util.ResultSetMappingResolutionContextresultClasses - The Classes to which the results should be mappedCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.