Top Fields Constructors Methods
org.hibernate.loader.plan.build.internal.spaces

public Class CollectionQuerySpaceImpl

extends AbstractQuerySpace
implements ExpandingCollectionQuerySpace
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.plan.build.spi.ExpandingCollectionQuerySpace, org.hibernate.loader.plan.build.spi.ExpandingQuerySpace, org.hibernate.loader.plan.spi.QuerySpace, org.hibernate.loader.plan.spi.CollectionQuerySpace
Imports
org.hibernate.loader.plan.build.spi.ExpandingCollectionQuerySpace, .ExpandingQuerySpaces, org.hibernate.loader.plan.spi.Join, .JoinDefinedByMetadata, org.hibernate.persister.collection.CollectionPersister, .CollectionPropertyNames, .QueryableCollection, org.hibernate.persister.entity.PropertyMapping

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private JoinDefinedByMetadata
private JoinDefinedByMetadata
private final CollectionPersister

Constructor Summary

AccessConstructor and Description
public
CollectionQuerySpaceImpl(CollectionPersister persister, String uid, ExpandingQuerySpaces querySpaces, boolean canJoinsBeRequired)

Method Summary

Modifier and TypeMethod and Description
public void
addJoin(Join
The element or index join to add.
join
)

Implements org.hibernate.loader.plan.build.spi.ExpandingCollectionQuerySpace.addJoin.

Adds a join with another query space for either a collection element or index.
public void
public CollectionPersister
getCollectionPersister()

Implements org.hibernate.loader.plan.spi.CollectionQuerySpace.getCollectionPersister.

Retrieve the collection persister this QuerySpace refers to.
public ExpandingQuerySpaces
public PropertyMapping
public String[]
toAliasedColumns(String
- the table alias
alias
,
String
- the property name
propertyName
)

Implements org.hibernate.loader.plan.spi.QuerySpace.toAliasedColumns.

Get the aliased column names for the specified property in the query space..
Inherited from org.hibernate.loader.plan.build.internal.spaces.AbstractQuerySpace:
canJoinsBeRequiredgetDispositiongetJoinsgetQuerySpacesgetUidinternalGetJoinssessionFactory

Field Detail

elementJoinback to summary
private JoinDefinedByMetadata elementJoin
indexJoinback to summary
private JoinDefinedByMetadata indexJoin
persisterback to summary
private final CollectionPersister persister

Constructor Detail

CollectionQuerySpaceImplback to summary
public CollectionQuerySpaceImpl(CollectionPersister persister, String uid, ExpandingQuerySpaces querySpaces, boolean canJoinsBeRequired)

Method Detail

addJoinback to summary
public void addJoin(Join join)

Implements org.hibernate.loader.plan.build.spi.ExpandingCollectionQuerySpace.addJoin.

Doc from org.hibernate.loader.plan.build.spi.ExpandingCollectionQuerySpace.addJoin.

Adds a join with another query space for either a collection element or index. If join is an instance of org.hibernate.loader.plan.spi.JoinDefinedByMetadata, then the only valid values returned by org.hibernate.loader.plan.spi.JoinDefinedByMetadata#getJoinedPropertyName are "elements" and "indices" for the collection element or index, respectively.

Parameters
join:Join

The element or index join to add.

Annotations
@Override
addJoinback to summary
public void addJoin(JoinDefinedByMetadata join)
getCollectionPersisterback to summary
public CollectionPersister getCollectionPersister()

Implements org.hibernate.loader.plan.spi.CollectionQuerySpace.getCollectionPersister.

Doc from org.hibernate.loader.plan.spi.CollectionQuerySpace.getCollectionPersister.

Retrieve the collection persister this QuerySpace refers to.

Returns:CollectionPersister

The collection persister.

Annotations
@Override
getExpandingQuerySpacesback to summary
public ExpandingQuerySpaces getExpandingQuerySpaces()

Overrides org.hibernate.loader.plan.build.internal.spaces.AbstractQuerySpace.getExpandingQuerySpaces.

Implements org.hibernate.loader.plan.build.spi.ExpandingQuerySpace.getExpandingQuerySpaces.

Annotations
@Override
getPropertyMappingback to summary
public PropertyMapping getPropertyMapping()

Implements org.hibernate.loader.plan.spi.QuerySpace.getPropertyMapping.

Doc from org.hibernate.loader.plan.spi.QuerySpace.getPropertyMapping.

Get the PropertyMapping for this QuerySpace.

Returns:PropertyMapping

The PropertyMapping

Annotations
@Override
toAliasedColumnsback to summary
public String[] toAliasedColumns(String alias, String propertyName)

Implements org.hibernate.loader.plan.spi.QuerySpace.toAliasedColumns.

Doc from org.hibernate.loader.plan.spi.QuerySpace.toAliasedColumns.

Get the aliased column names for the specified property in the query space..

Parameters
alias:String

- the table alias

propertyName:String

- the property name

Returns:String[]

the aliased column names for the specified property