public CollectionFetchableIndexAnyGraph(CollectionReference collectionReference) { super( // this property path is just informational... collectionReference.getPropertyPath().append( "<index>" ) ); this.collectionReference = collectionReference; }
public CollectionFetchableIndexCompositeGraph( CollectionReference collectionReference, ExpandingCompositeQuerySpace compositeQuerySpace) { super( compositeQuerySpace, false, collectionReference.getPropertyPath().append( "<index>" ) ); this.collectionReference = collectionReference; }
public CollectionFetchableElementCompositeGraph( CollectionReference collectionReference, ExpandingCompositeQuerySpace compositeQuerySpace) { super( compositeQuerySpace, false, // these property paths are just informational... collectionReference.getPropertyPath().append( "<element>" ) ); this.collectionReference = collectionReference; }
public CollectionFetchableIndexEntityGraph( CollectionReference collectionReference, ExpandingEntityQuerySpace entityQuerySpace) { super( entityQuerySpace, collectionReference.getPropertyPath().append( "<index>" ) ); this.collectionReference = collectionReference; }
public CollectionFetchableElementAnyGraph(CollectionReference collectionReference) { super( // this property path is just informational... collectionReference.getPropertyPath().append( "<element>" ) ); this.collectionReference = collectionReference; }
public CollectionFetchableElementEntityGraph( CollectionReference collectionReference, ExpandingEntityQuerySpace entityQuerySpace) { super( entityQuerySpace, collectionReference.getPropertyPath().append( "<elements>" ) ); this.collectionReference = collectionReference; }
public BidirectionalEntityReferenceImpl( ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, EntityReference targetEntityReference) { this.targetEntityReference = targetEntityReference; this.propertyPath = fetchSource.getPropertyPath().append( fetchedAttribute.getName() ); }
public AnyAttributeFetchImpl( FetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, FetchStrategy fetchStrategy) { super( fetchSource.getPropertyPath().append( fetchedAttribute.getName() ) ); this.fetchSource = fetchSource; this.fetchedAttribute = fetchedAttribute; this.fetchStrategy = fetchStrategy; }
public EntityAttributeFetchImpl( ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, FetchStrategy fetchStrategy, ExpandingEntityQuerySpace entityQuerySpace) { super( entityQuerySpace, fetchSource.getPropertyPath().append( fetchedAttribute.getName() ) ); this.fetchSource = fetchSource; this.fetchedAttribute = fetchedAttribute; this.fetchStrategy = fetchStrategy; }
protected CompositeAttributeFetchImpl( FetchSource source, AttributeDefinition attributeDefinition, ExpandingCompositeQuerySpace compositeQuerySpace, boolean allowCollectionFetches) { super( compositeQuerySpace, allowCollectionFetches, source.getPropertyPath().append( attributeDefinition.getName() ) ); this.source = source; this.fetchedAttribute = attributeDefinition; }
public NestedCompositeAttributeFetchImpl( FetchSource source, AttributeDefinition fetchedAttributeDefinition, ExpandingCompositeQuerySpace compositeQuerySpace, boolean allowCollectionFetches) { super( compositeQuerySpace, allowCollectionFetches, source.getPropertyPath().append( fetchedAttributeDefinition.getName() ) ); this.source = source; this.fetchedAttributeDefinition = fetchedAttributeDefinition; }
public CollectionAttributeFetchImpl( ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, FetchStrategy fetchStrategy, ExpandingCollectionQuerySpace collectionQuerySpace) { super( collectionQuerySpace, fetchSource.getPropertyPath().append( fetchedAttribute.getName() ), QuerySpaceHelper.INSTANCE.shouldIncludeJoin( fetchStrategy ) ); this.fetchSource = fetchSource; this.fetchedAttribute = fetchedAttribute; this.fetchStrategy = fetchStrategy; }
private EncapsulatedEntityIdentifierDescription buildEncapsulatedCompositeIdentifierDescription( ExpandingCompositeQuerySpace compositeQuerySpace) { return new EncapsulatedEntityIdentifierDescription( this, compositeQuerySpace, (CompositeType) getEntityPersister().getIdentifierType(), getPropertyPath().append( EntityPersister.ENTITY_ID ) ); }
private NonEncapsulatedEntityIdentifierDescription buildNonEncapsulatedCompositeIdentifierDescription( ExpandingCompositeQuerySpace compositeQuerySpace) { return new NonEncapsulatedEntityIdentifierDescription( this, compositeQuerySpace, (CompositeType) getEntityPersister().getIdentifierType(), getPropertyPath().append( EntityPersister.ENTITY_ID ) ); }
@Override public boolean startingAttribute(AttributeDefinition attributeDefinition) { log.tracef( "%s Starting attribute %s", StringHelper.repeat( ">>", fetchSourceStack.size() ), attributeDefinition ); final Type attributeType = attributeDefinition.getType(); final boolean isComponentType = attributeType.isComponentType(); final boolean isAssociationType = attributeType.isAssociationType(); final boolean isBasicType = ! ( isComponentType || isAssociationType ); currentPropertyPath = currentPropertyPath.append( attributeDefinition.getName() ); if ( isBasicType ) { return true; } else if ( isAssociationType ) { // also handles any type attributes... return handleAssociationAttribute( (AssociationAttributeDefinition) attributeDefinition ); } else { return handleCompositeAttribute( attributeDefinition ); } }
private void visitCollectionIndex(CollectionDefinition collectionDefinition) { final CollectionIndexDefinition collectionIndexDefinition = collectionDefinition.getIndexDefinition(); if ( collectionIndexDefinition == null ) { return; } strategy.startingCollectionIndex( collectionIndexDefinition ); try { log.debug( "Visiting index for collection : " + currentPropertyPath.getFullPath() ); currentPropertyPath = currentPropertyPath.append( "<index>" ); try { final Type collectionIndexType = collectionIndexDefinition.getType(); if ( collectionIndexType.isAnyType() ) { visitAnyDefinition( collectionIndexDefinition.toAnyMappingDefinition() ); } else if ( collectionIndexType.isComponentType() ) { visitCompositeDefinition( collectionIndexDefinition.toCompositeDefinition() ); } else if ( collectionIndexType.isAssociationType() ) { visitEntityDefinition( collectionIndexDefinition.toEntityDefinition() ); } } finally { currentPropertyPath = currentPropertyPath.getParent(); } } finally { strategy.finishingCollectionIndex( collectionIndexDefinition ); } }
private void visitAttributeDefinition(AttributeDefinition attributeDefinition, AbstractEntityPersister sourcePersister) { final PropertyPath subPath = currentPropertyPath.append( attributeDefinition.getName() ); log.debug( "Visiting attribute path : " + subPath.getFullPath() );
String lhsTable = JoinHelper.getLHSTableName( associationType, propertyNumber, persister ); final PropertyPath subPath = path.append( propertyNames[i] ); final boolean[] propertyNullability = componentType.getPropertyNullability(); final JoinType joinType = getJoinType( final PropertyPath subPath = path.append( propertyNames[i] ); walkComponentTree( (CompositeType) types[i],
String lhsTable = JoinHelper.getLHSTableName( associationType, propertyNumber, persister ); PropertyPath subPath = path.append( persister.getSubclassPropertyName( propertyNumber ) ); JoinType joinType = getJoinType( persister,