Top Description Constructors Methods
org.hibernate.persister.walking.internal

public final Class CompositionSingularSubAttributesHelper

extends Object
Class Inheritance
Imports
java.util.Iterator, org.hibernate.FetchMode, org.hibernate.engine.FetchStrategy, .FetchStyle, org.hibernate.engine.spi.CascadeStyle, .CascadeStyles, .LoadQueryInfluencers, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.loader.PropertyPath, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.AbstractEntityPersister, .EntityPersister, .OuterJoinLoadable, org.hibernate.persister.spi.HydratedCompoundValueHandler, org.hibernate.persister.walking.spi.AnyMappingDefinition, .AssociationAttributeDefinition, .AssociationKey, .AttributeDefinition, .AttributeSource, .CollectionDefinition, .CompositeCollectionElementDefinition, .CompositionDefinition, .EntityDefinition, .WalkingException, org.hibernate.type.AnyType, .AssociationType, .CompositeType, .Type

A helper for getting attributes from a composition that is known to have only singular attributes; for example, sub-attributes of a composite ID or a composite collection element. TODO: This should be refactored into a delegate and renamed.
Author
Gail Badner

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Iterable<AttributeDefinition>

Returns:

sub-attribute definitions for a composite collection element.
getCompositeCollectionElementSubAttributes
(CompositeCollectionElementDefinition
- composite collection element definition.
compositionElementDefinition
)

Get sub-attribute definitions for a composite collection element.

public static Iterable<AttributeDefinition>
public static Iterable<AttributeDefinition>

Returns:

composite ID sub-attribute definitions.
getIdentifierSubAttributes
(AbstractEntityPersister
- the entity persister.
entityPersister
)

Get composite ID sub-attribute definitions.

private static Iterable<AttributeDefinition>
getSingularSubAttributes(final AttributeSource source, final OuterJoinLoadable ownerEntityPersister, final CompositeType compositeType, final String lhsTableName, final String[] lhsColumns)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CompositionSingularSubAttributesHelperback to summary
private CompositionSingularSubAttributesHelper()

Method Detail

getCompositeCollectionElementSubAttributesback to summary
public static Iterable<AttributeDefinition> getCompositeCollectionElementSubAttributes(CompositeCollectionElementDefinition compositionElementDefinition)

Get sub-attribute definitions for a composite collection element.

Parameters
compositionElementDefinition:CompositeCollectionElementDefinition

- composite collection element definition.

Returns:Iterable<AttributeDefinition>

sub-attribute definitions for a composite collection element.

getCompositeCollectionIndexSubAttributesback to summary
public static Iterable<AttributeDefinition> getCompositeCollectionIndexSubAttributes(CompositeCollectionElementDefinition compositionElementDefinition)
getIdentifierSubAttributesback to summary
public static Iterable<AttributeDefinition> getIdentifierSubAttributes(AbstractEntityPersister entityPersister)

Get composite ID sub-attribute definitions.

Parameters
entityPersister:AbstractEntityPersister

- the entity persister.

Returns:Iterable<AttributeDefinition>

composite ID sub-attribute definitions.

getSingularSubAttributesback to summary
private static Iterable<AttributeDefinition> getSingularSubAttributes(final AttributeSource source, final OuterJoinLoadable ownerEntityPersister, final CompositeType compositeType, final String lhsTableName, final String[] lhsColumns)