public class QuerySpacesImpl extends Object implements ExpandingQuerySpaces
| Constructor and Description | 
|---|
QuerySpacesImpl(SessionFactoryImplementor sessionFactory)  | 
| Modifier and Type | Method and Description | 
|---|---|
QuerySpace | 
findQuerySpaceByUid(String uid)
Locate a QuerySpace by its uid. 
 | 
String | 
generateImplicitUid()
Generate a unique ID to be used when creating an  
ExpandingQuerySpace. | 
QuerySpace | 
getQuerySpaceByUid(String uid)
Like  
QuerySpaces.findQuerySpaceByUid(java.lang.String), except that here an exception is thrown if the uid cannot be resolved. | 
List<QuerySpace> | 
getRootQuerySpaces()
Gets the root QuerySpace references. 
 | 
SessionFactoryImplementor | 
getSessionFactory()
Gets the session factory. 
 | 
ExpandingCollectionQuerySpace | 
makeCollectionQuerySpace(String uid,
                        CollectionPersister collectionPersister,
                        boolean canJoinsBeRequired)
Create an  
ExpandingCollectionQuerySpace for a collection (that is not a "return")
 with the specified unique ID. | 
ExpandingCompositeQuerySpace | 
makeCompositeQuerySpace(String uid,
                       CompositePropertyMapping compositePropertyMapping,
                       boolean canJoinsBeRequired)
Create an  
ExpandingCompositeQuerySpace for a composite
 with the specified unique ID. | 
ExpandingEntityQuerySpace | 
makeEntityQuerySpace(String uid,
                    EntityPersister entityPersister,
                    boolean canJoinsBeRequired)
Create an  
ExpandingEntityQuerySpace for an entity (that is not a "return")
 with the specified unique ID. | 
ExpandingCollectionQuerySpace | 
makeRootCollectionQuerySpace(String uid,
                            CollectionPersister collectionPersister)
Create an  
ExpandingCollectionQuerySpace for a collection "return" with the
 specified unique ID. | 
ExpandingEntityQuerySpace | 
makeRootEntityQuerySpace(String uid,
                        EntityPersister entityPersister)
Create an  
ExpandingEntityQuerySpace for an entity "return" with the
 specified unique ID. | 
public QuerySpacesImpl(SessionFactoryImplementor sessionFactory)
public List<QuerySpace> getRootQuerySpaces()
QuerySpacesgetRootQuerySpaces in interface QuerySpacespublic QuerySpace findQuerySpaceByUid(String uid)
QuerySpacesfindQuerySpaceByUid in interface QuerySpacesuid - The QuerySpace uid to matchnull is returned if no match.QuerySpace.getUid()public QuerySpace getQuerySpaceByUid(String uid)
QuerySpacesQuerySpaces.findQuerySpaceByUid(java.lang.String), except that here an exception is thrown if the uid cannot be resolved.getQuerySpaceByUid in interface QuerySpacesuid - The uid to resolvepublic String generateImplicitUid()
ExpandingQuerySpacesExpandingQuerySpace.
 
 Using this method to generate a unique ID ensures that this object
 does not contain a QuerySpace with the returned unique ID.generateImplicitUid in interface ExpandingQuerySpacespublic ExpandingEntityQuerySpace makeRootEntityQuerySpace(String uid, EntityPersister entityPersister)
ExpandingQuerySpacesExpandingEntityQuerySpace for an entity "return" with the
 specified unique ID.
 The unique ID should be generated using ExpandingQuerySpaces.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.makeRootEntityQuerySpace in interface ExpandingQuerySpacesuid - The unique ID for the root entity query space.entityPersister - The entity persister.ExpandingEntityQuerySpace with the specified unique ID.EntityReturnpublic ExpandingEntityQuerySpace makeEntityQuerySpace(String uid, EntityPersister entityPersister, boolean canJoinsBeRequired)
ExpandingQuerySpacesExpandingEntityQuerySpace for an entity (that is not a "return")
 with the specified unique ID.
 The unique ID should be generated using ExpandingQuerySpaces.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.makeEntityQuerySpace in interface ExpandingQuerySpacesuid - 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.ExpandingEntityQuerySpace with the specified unique ID.Joinpublic ExpandingCollectionQuerySpace makeRootCollectionQuerySpace(String uid, CollectionPersister collectionPersister)
ExpandingQuerySpacesExpandingCollectionQuerySpace for a collection "return" with the
 specified unique ID.
 The unique ID should be generated using ExpandingQuerySpaces.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.makeRootCollectionQuerySpace in interface ExpandingQuerySpacesuid - The unique ID for the root collection query space.collectionPersister - The collection persister.ExpandingCollectionQuerySpace with the specified unique ID.CollectionReturnpublic ExpandingCollectionQuerySpace makeCollectionQuerySpace(String uid, CollectionPersister collectionPersister, boolean canJoinsBeRequired)
ExpandingQuerySpacesExpandingCollectionQuerySpace for a collection (that is not a "return")
 with the specified unique ID.
 The unique ID should be generated using ExpandingQuerySpaces.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.makeCollectionQuerySpace in interface ExpandingQuerySpacesuid - 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.ExpandingCollectionQuerySpace with the specified unique ID.Joinpublic ExpandingCompositeQuerySpace makeCompositeQuerySpace(String uid, CompositePropertyMapping compositePropertyMapping, boolean canJoinsBeRequired)
ExpandingQuerySpacesExpandingCompositeQuerySpace for a composite
 with the specified unique ID.
 The unique ID should be generated using ExpandingQuerySpaces.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.makeCompositeQuerySpace in interface ExpandingQuerySpacesuid - 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.ExpandingCompositeQuerySpace with the specified unique ID.Joinpublic SessionFactoryImplementor getSessionFactory()
ExpandingQuerySpacesgetSessionFactory in interface ExpandingQuerySpacesCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.