Interface ExpandingQuerySpaces

    • Method Detail

      • generateImplicitUid

        String generateImplicitUid()
        Generate a unique ID to be used when creating an ExpandingQuerySpace.

        Using this method to generate a unique ID ensures that this object does not contain a QuerySpace with the returned unique ID.

        Returns:
        The unique ID.
      • makeEntityQuerySpace

        ExpandingEntityQuerySpace makeEntityQuerySpace​(String uid,
                                                       EntityPersister entityPersister,
                                                       boolean canJoinsBeRequired)
        Create an ExpandingEntityQuerySpace for an entity (that is not a "return") with the specified unique ID. The unique ID should be generated using generateImplicitUid(), A unique suffix may be added to the unique ID for an existing QuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.
        Parameters:
        uid - The unique ID for the entity query space.
        entityPersister - The entity persister.
        canJoinsBeRequired - true if joins added to the returned value can be required joins; false, otherwise.
        Returns:
        the ExpandingEntityQuerySpace with the specified unique ID.
        Throws:
        IllegalStateException - if there is already a query space with the specified unique ID.
        See Also:
        Join
      • makeCollectionQuerySpace

        ExpandingCollectionQuerySpace makeCollectionQuerySpace​(String uid,
                                                               CollectionPersister collectionPersister,
                                                               boolean canJoinsBeRequired)
        Create an ExpandingCollectionQuerySpace for a collection (that is not a "return") with the specified unique ID. The unique ID should be generated using generateImplicitUid(), A unique suffix may be added to the unique ID for an existing QuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.
        Parameters:
        uid - The unique ID for the collection query space.
        collectionPersister - The collection persister.
        canJoinsBeRequired - true if joins added to the returned value can be required joins; false, otherwise.
        Returns:
        the ExpandingCollectionQuerySpace with the specified unique ID.
        Throws:
        IllegalStateException - if there is already a query space with the specified unique ID.
        See Also:
        Join
      • makeCompositeQuerySpace

        ExpandingCompositeQuerySpace makeCompositeQuerySpace​(String uid,
                                                             org.hibernate.loader.plan.build.internal.spaces.CompositePropertyMapping compositePropertyMapping,
                                                             boolean canJoinsBeRequired)
        Create an ExpandingCompositeQuerySpace for a composite with the specified unique ID. The unique ID should be generated using generateImplicitUid(), A unique suffix may be added to the unique ID for an existing QuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.
        Parameters:
        uid - The unique ID for the composite query space.
        compositePropertyMapping - The composite property mapping.
        canJoinsBeRequired - true if joins added to the returned value can be required joins; false, otherwise.
        Returns:
        the ExpandingCompositeQuerySpace with the specified unique ID.
        Throws:
        IllegalStateException - if there is already a query space with the specified unique ID.
        See Also:
        Join