Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
org.hibernate.engine.spi | |
org.hibernate.hql.internal | |
org.hibernate.hql.internal.ast.tree | |
org.hibernate.hql.internal.classic |
This package contains the Hibernate 2.x query parser which
is being end-of-lifed.
|
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.jpa.spi | |
org.hibernate.loader |
This package defines functionality for processing JDBC
result sets and returning complex graphs of persistent
objects.
|
org.hibernate.loader.criteria |
This package defines the criteria query compiler and loader
|
org.hibernate.loader.custom |
This package defines a framework for custom loaders that accept
handwritten SQL
|
org.hibernate.loader.entity |
This package defines entity loaders
|
org.hibernate.loader.hql |
This package defines a loader for the AST-based query parser
|
org.hibernate.loader.plan.exec.internal |
Provides the internal implementations for generating the load query from the LoadPlan and the ResultSet processor.
|
org.hibernate.loader.plan.exec.process.internal | |
org.hibernate.loader.plan.exec.process.spi | |
org.hibernate.transform |
Defines strategies for post-processing criteria query
result sets into a form convenient to the application.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.setResultTransformer(ResultTransformer transformer)
Set a strategy for handling the query results.
|
Criteria |
Criteria.setResultTransformer(ResultTransformer resultTransformer)
Set a strategy for handling the query results.
|
Modifier and Type | Field and Description |
---|---|
static ResultTransformer |
CriteriaSpecification.ALIAS_TO_ENTITY_MAP
Each row of results is a Map from alias to entity instance
|
static ResultTransformer |
CriteriaSpecification.DISTINCT_ROOT_ENTITY
Each row of results is a distinct instance of the root entity
|
static ResultTransformer |
CriteriaSpecification.PROJECTION
This result transformer is selected implicitly by calling setProjection()
|
static ResultTransformer |
CriteriaSpecification.ROOT_ENTITY
Each row of results is an instance of the root entity
|
Modifier and Type | Method and Description |
---|---|
DetachedCriteria |
DetachedCriteria.setResultTransformer(ResultTransformer resultTransformer)
Set the result transformer to use.
|
Modifier and Type | Method and Description |
---|---|
ResultTransformer |
QueryParameters.getResultTransformer() |
Constructor and Description |
---|
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
boolean isLookupByNaturalKey,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
Serializable[] collectionKeys,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
Object[] positionalParameterValues,
Map<String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
String cacheRegion,
String comment,
List<String> queryHints,
Serializable[] collectionKeys,
ResultTransformer transformer) |
Modifier and Type | Method and Description |
---|---|
static ResultTransformer |
HolderInstantiator.createSelectNewTransformer(Constructor constructor,
boolean returnMaps,
boolean returnLists) |
ResultTransformer |
HolderInstantiator.getResultTransformer() |
static ResultTransformer |
HolderInstantiator.resolveClassicResultTransformer(Constructor constructor,
ResultTransformer transformer) |
static ResultTransformer |
HolderInstantiator.resolveResultTransformer(ResultTransformer selectNewTransformer,
ResultTransformer customTransformer) |
Modifier and Type | Method and Description |
---|---|
static HolderInstantiator |
HolderInstantiator.createClassicHolderInstantiator(Constructor constructor,
ResultTransformer transformer) |
static HolderInstantiator |
HolderInstantiator.getHolderInstantiator(ResultTransformer selectNewTransformer,
ResultTransformer customTransformer,
String[] queryReturnAliases) |
static ResultTransformer |
HolderInstantiator.resolveClassicResultTransformer(Constructor constructor,
ResultTransformer transformer) |
static ResultTransformer |
HolderInstantiator.resolveResultTransformer(ResultTransformer selectNewTransformer,
ResultTransformer customTransformer) |
Constructor and Description |
---|
HolderInstantiator(ResultTransformer transformer,
String[] queryReturnAliases) |
Modifier and Type | Method and Description |
---|---|
ResultTransformer |
AggregatedSelectExpression.getResultTransformer()
Retrieve the
ResultTransformer responsible for building aggregated select expression results into their
aggregated form. |
ResultTransformer |
MapEntryNode.getResultTransformer() |
ResultTransformer |
ConstructorNode.getResultTransformer() |
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
QueryTranslatorImpl.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryTranslatorImpl.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected List |
QueryTranslatorImpl.getResultList(List results,
ResultTransformer resultTransformer) |
protected ResultTransformer |
QueryTranslatorImpl.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
ResultTransformer |
CriteriaImpl.getResultTransformer() |
Modifier and Type | Method and Description |
---|---|
Query |
AbstractQueryImpl.setResultTransformer(ResultTransformer transformer) |
Criteria |
CriteriaImpl.setResultTransformer(ResultTransformer tupleMapper) |
Criteria |
CriteriaImpl.Subcriteria.setResultTransformer(ResultTransformer resultProcessor) |
Modifier and Type | Class and Description |
---|---|
static class |
AbstractEntityManagerImpl.TupleBuilderTransformer |
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
Loader.resolveResultTransformer(ResultTransformer resultTransformer)
Determine the actual ResultTransformer that will be used to
transform query results.
|
Modifier and Type | Method and Description |
---|---|
List |
Loader.doQueryAndInitializeNonLazyCollections(SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
protected Object |
Loader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session)
Get the actual object that is returned in the user-visible result list.
|
protected List |
Loader.getResultList(List results,
ResultTransformer resultTransformer) |
protected List |
Loader.processResultSet(ResultSet rs,
QueryParameters queryParameters,
SessionImplementor session,
boolean returnProxies,
ResultTransformer forcedResultTransformer,
int maxRows,
List<AfterLoadAction> afterLoadActions) |
protected ResultTransformer |
Loader.resolveResultTransformer(ResultTransformer resultTransformer)
Determine the actual ResultTransformer that will be used to
transform query results.
|
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
CriteriaLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
CriteriaLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected List |
CriteriaLoader.getResultList(List results,
ResultTransformer resultTransformer) |
protected ResultTransformer |
CriteriaLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
CustomLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
CustomLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected List |
CustomLoader.getResultList(List results,
ResultTransformer resultTransformer) |
protected ResultTransformer |
CustomLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
CollectionElementLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected Object |
AbstractEntityLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
QueryLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected List |
QueryLoader.getResultList(List results,
ResultTransformer resultTransformer) |
protected ResultTransformer |
QueryLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected List |
AbstractLoadPlanBasedLoader.executeLoad(SessionImplementor session,
QueryParameters queryParameters,
LoadQueryDetails loadQueryDetails,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
protected List |
AbstractLoadPlanBasedLoader.executeLoad(SessionImplementor session,
QueryParameters queryParameters,
LoadQueryDetails loadQueryDetails,
boolean returnProxies,
ResultTransformer forcedResultTransformer,
List<AfterLoadAction> afterLoadActions) |
Modifier and Type | Method and Description |
---|---|
List |
ResultSetProcessorImpl.extractResults(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
NamedParameterContext namedParameterContext,
boolean returnProxies,
boolean readOnly,
ResultTransformer forcedResultTransformer,
List<AfterLoadAction> afterLoadActionList) |
Modifier and Type | Method and Description |
---|---|
List |
ResultSetProcessor.extractResults(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
NamedParameterContext namedParameterContext,
boolean returnProxies,
boolean readOnly,
ResultTransformer forcedResultTransformer,
List<AfterLoadAction> afterLoadActions)
Process an entire ResultSet, performing all extractions.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TupleSubsetResultTransformer
A ResultTransformer that operates on "well-defined" and consistent
subset of a tuple's elements.
|
Modifier and Type | Class and Description |
---|---|
class |
AliasedTupleSubsetResultTransformer
An implementation of TupleSubsetResultTransformer that ignores a
tuple element if its corresponding alias is null.
|
class |
AliasToBeanConstructorResultTransformer
Wraps the tuples in a constructor call.
|
class |
AliasToBeanResultTransformer
Result transformer that allows to transform a result to
a user specified class which will be populated via setter
methods or fields matching the alias names.
|
class |
AliasToEntityMapResultTransformer
ResultTransformer implementation which builds a map for each "row",
made up of each aliased value where the alias is the map key. |
class |
BasicTransformerAdapter
Provides the basic "noop" impls of the
ResultTransformer contract. |
class |
CacheableResultTransformer
A ResultTransformer that is used to transform tuples to a value(s)
that can be cached.
|
class |
DistinctResultTransformer
Distinctions the result tuples in the final result based on the defined
equality of the tuples.
|
class |
DistinctRootEntityResultTransformer
Much like
RootEntityResultTransformer , but we also distinct
the entity in the final result. |
class |
PassThroughResultTransformer
???
|
class |
RootEntityResultTransformer
ResultTransformer implementation which limits the result tuple
to only the "root entity". |
class |
ToListResultTransformer
|
Modifier and Type | Method and Description |
---|---|
static ResultTransformer |
Transformers.aliasToBean(Class target)
Creates a resulttransformer that will inject aliased values into
instances of Class via property methods or fields.
|
Modifier and Type | Method and Description |
---|---|
static CacheableResultTransformer |
CacheableResultTransformer.create(ResultTransformer transformer,
String[] aliases,
boolean[] includeInTuple)
Returns a CacheableResultTransformer that is used to transform
tuples to a value(s) that can be cached.
|
List |
CacheableResultTransformer.retransformResults(List transformedResults,
String[] aliases,
ResultTransformer transformer,
boolean[] includeInTuple)
Re-transforms, if necessary, a List of values previously
transformed by this (or an equivalent) CacheableResultTransformer.
|
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.