/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.query.sqm.tree.expression.domain;
import org.hibernate.persister.common.spi.Navigable;
import org.hibernate.query.sqm.NotYetImplementedException;
import org.hibernate.query.sqm.domain.SqmPluralAttributeIndexEmbedded;
import org.hibernate.query.sqm.tree.from.SqmFrom;
/**
* @author Steve Ebersole
*/
public class SqmCollectionIndexReferenceEmbedded extends AbstractSqmCollectionIndexReference
implements SqmEmbeddableTypedReference {
public SqmCollectionIndexReferenceEmbedded(SqmPluralAttributeReference pluralAttributeBinding) {
super( pluralAttributeBinding );
}
@Override
public Navigable getReferencedNavigable() {
return (SqmPluralAttributeIndexEmbedded ) super.getReferencedNavigable();
}
@Override
public SqmFrom getExportedFromElement() {
return getPluralAttributeBinding().getExportedFromElement();
}
@Override
public void injectExportedFromElement(SqmFrom sqmFrom) {
throw new NotYetImplementedException( "Cannot inject SqmFrom element into a CompositeBinding" );
}
}