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 |
---|---|
Criteria |
Criteria.setResultTransformer(ResultTransformer resultTransformer)
Set a strategy for handling the query results.
|
Query |
Query.setResultTransformer(ResultTransformer transformer)
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,
java.lang.Object[] positionalParameterValues,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
java.lang.String cacheRegion,
java.lang.String comment,
java.util.List<java.lang.String> queryHints,
boolean isLookupByNaturalKey,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
java.lang.Object[] positionalParameterValues,
java.util.Map<java.lang.String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
java.lang.String cacheRegion,
java.lang.String comment,
java.util.List<java.lang.String> queryHints,
java.io.Serializable[] collectionKeys,
java.lang.Object optionalObject,
java.lang.String optionalEntityName,
java.io.Serializable optionalId,
ResultTransformer transformer) |
QueryParameters(Type[] positionalParameterTypes,
java.lang.Object[] positionalParameterValues,
java.util.Map<java.lang.String,TypedValue> namedParameters,
LockOptions lockOptions,
RowSelection rowSelection,
boolean isReadOnlyInitialized,
boolean readOnly,
boolean cacheable,
java.lang.String cacheRegion,
java.lang.String comment,
java.util.List<java.lang.String> queryHints,
java.io.Serializable[] collectionKeys,
ResultTransformer transformer) |
Modifier and Type | Method and Description |
---|---|
static ResultTransformer |
HolderInstantiator.createSelectNewTransformer(java.lang.reflect.Constructor constructor,
boolean returnMaps,
boolean returnLists) |
ResultTransformer |
HolderInstantiator.getResultTransformer() |
static ResultTransformer |
HolderInstantiator.resolveClassicResultTransformer(java.lang.reflect.Constructor constructor,
ResultTransformer transformer) |
static ResultTransformer |
HolderInstantiator.resolveResultTransformer(ResultTransformer selectNewTransformer,
ResultTransformer customTransformer) |
Modifier and Type | Method and Description |
---|---|
static HolderInstantiator |
HolderInstantiator.createClassicHolderInstantiator(java.lang.reflect.Constructor constructor,
ResultTransformer transformer) |
static HolderInstantiator |
HolderInstantiator.getHolderInstantiator(ResultTransformer selectNewTransformer,
ResultTransformer customTransformer,
java.lang.String[] queryReturnAliases) |
static ResultTransformer |
HolderInstantiator.resolveClassicResultTransformer(java.lang.reflect.Constructor constructor,
ResultTransformer transformer) |
static ResultTransformer |
HolderInstantiator.resolveResultTransformer(ResultTransformer selectNewTransformer,
ResultTransformer customTransformer) |
Constructor and Description |
---|
HolderInstantiator(ResultTransformer transformer,
java.lang.String[] queryReturnAliases) |
Modifier and Type | Method and Description |
---|---|
ResultTransformer |
MapEntryNode.getResultTransformer() |
ResultTransformer |
ConstructorNode.getResultTransformer() |
ResultTransformer |
AggregatedSelectExpression.getResultTransformer()
Retrieve the
ResultTransformer responsible for building aggregated select expression results into their
aggregated form. |
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
QueryTranslatorImpl.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
QueryTranslatorImpl.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session) |
protected java.util.List |
QueryTranslatorImpl.getResultList(java.util.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 |
---|---|
java.util.List |
Loader.doQueryAndInitializeNonLazyCollections(SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
protected java.lang.Object |
Loader.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session)
Get the actual object that is returned in the user-visible result list.
|
protected java.util.List |
Loader.getResultList(java.util.List results,
ResultTransformer resultTransformer) |
protected java.util.List |
Loader.processResultSet(java.sql.ResultSet rs,
QueryParameters queryParameters,
SessionImplementor session,
boolean returnProxies,
ResultTransformer forcedResultTransformer,
int maxRows,
java.util.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 java.lang.Object |
CriteriaLoader.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session) |
protected java.util.List |
CriteriaLoader.getResultList(java.util.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 java.lang.Object |
CustomLoader.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session) |
protected java.util.List |
CustomLoader.getResultList(java.util.List results,
ResultTransformer resultTransformer) |
protected ResultTransformer |
CustomLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
AbstractEntityLoader.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session) |
protected java.lang.Object |
CollectionElementLoader.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected ResultTransformer |
QueryLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
QueryLoader.getResultColumnOrRow(java.lang.Object[] row,
ResultTransformer transformer,
java.sql.ResultSet rs,
SessionImplementor session) |
protected java.util.List |
QueryLoader.getResultList(java.util.List results,
ResultTransformer resultTransformer) |
protected ResultTransformer |
QueryLoader.resolveResultTransformer(ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
AbstractLoadPlanBasedLoader.executeLoad(SessionImplementor session,
QueryParameters queryParameters,
LoadQueryDetails loadQueryDetails,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
protected java.util.List |
AbstractLoadPlanBasedLoader.executeLoad(SessionImplementor session,
QueryParameters queryParameters,
LoadQueryDetails loadQueryDetails,
boolean returnProxies,
ResultTransformer forcedResultTransformer,
java.util.List<AfterLoadAction> afterLoadActions) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
ResultSetProcessorImpl.extractResults(java.sql.ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
NamedParameterContext namedParameterContext,
boolean returnProxies,
boolean readOnly,
ResultTransformer forcedResultTransformer,
java.util.List<AfterLoadAction> afterLoadActionList) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
ResultSetProcessor.extractResults(java.sql.ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
NamedParameterContext namedParameterContext,
boolean returnProxies,
boolean readOnly,
ResultTransformer forcedResultTransformer,
java.util.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
Tranforms each result row from a tuple into a
List whose elements are each tuple value |
Modifier and Type | Method and Description |
---|---|
static ResultTransformer |
Transformers.aliasToBean(java.lang.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,
java.lang.String[] aliases,
boolean[] includeInTuple)
Returns a CacheableResultTransformer that is used to transform
tuples to a value(s) that can be cached.
|
java.util.List |
CacheableResultTransformer.retransformResults(java.util.List transformedResults,
java.lang.String[] aliases,
ResultTransformer transformer,
boolean[] includeInTuple)
Re-transforms, if necessary, a List of values previously
transformed by this (or an equivalent) CacheableResultTransformer.
|
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.