接口 TupleSubsetResultTransformer
-
- 所有超级接口:
ResultTransformer,Serializable
- 所有已知实现类:
AliasedTupleSubsetResultTransformer,AliasToBeanResultTransformer,AliasToEntityMapResultTransformer,DistinctRootEntityResultTransformer,PassThroughResultTransformer,RootEntityResultTransformer
public interface TupleSubsetResultTransformer extends ResultTransformer
A ResultTransformer that operates on "well-defined" and consistent subset of a tuple's elements. "Well-defined" means that:- the indexes of tuple elements accessed by a TupleSubsetResultTransformer depends only on the aliases and the number of elements in the tuple; i.e, it does not depend on the value of the tuple being transformed;
- any tuple elements included in the transformed value are unmodified by the transformation;
- transforming equivalent tuples with the same aliases multiple times results in transformed values that are equivalent;
- the result of transforming the tuple subset (only those elements accessed by the transformer) using only the corresponding aliases is equivalent to transforming the full tuple with the full array of aliases;
- the result of transforming a tuple with non-accessed tuple elements and corresponding aliases set to null is equivalent to transforming the full tuple with the full array of aliases;
- 作者:
- Gail Badner
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 boolean[]includeInTransform(String[] aliases, int tupleLength)Returns an array with the i-th element indicating whether the i-th element of the tuple is included in the transformed value.booleanisTransformedValueATupleElement(String[] aliases, int tupleLength)When a tuple is transformed, is the result a single element of the tuple?-
从接口继承的方法 org.hibernate.transform.ResultTransformer
transformList, transformTuple
-
-
-
-
方法详细资料
-
isTransformedValueATupleElement
boolean isTransformedValueATupleElement(String[] aliases, int tupleLength)
When a tuple is transformed, is the result a single element of the tuple?- 参数:
aliases- - the aliases that correspond to the tupletupleLength- - the number of elements in the tuple- 返回:
- true, if the transformed value is a single element of the tuple; false, otherwise.
-
includeInTransform
boolean[] includeInTransform(String[] aliases, int tupleLength)
Returns an array with the i-th element indicating whether the i-th element of the tuple is included in the transformed value.- 参数:
aliases- - the aliases that correspond to the tupletupleLength- - the number of elements in the tuple- 返回:
- array with the i-th element indicating whether the i-th element of the tuple is included in the transformed value.
-
-