类 QuerySpacesImpl
- java.lang.Object
-
- org.hibernate.loader.plan.build.internal.spaces.QuerySpacesImpl
-
- 所有已实现的接口:
ExpandingQuerySpaces,QuerySpaces
public class QuerySpacesImpl extends Object implements ExpandingQuerySpaces
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 QuerySpacesImpl(SessionFactoryImplementor sessionFactory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 QuerySpacefindQuerySpaceByUid(String uid)Locate a QuerySpace by its uid.StringgenerateImplicitUid()Generate a unique ID to be used when creating anExpandingQuerySpace.QuerySpacegetQuerySpaceByUid(String uid)LikeQuerySpaces.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.SessionFactoryImplementorgetSessionFactory()Gets the session factory.ExpandingCollectionQuerySpacemakeCollectionQuerySpace(String uid, CollectionPersister collectionPersister, boolean canJoinsBeRequired)Create anExpandingCollectionQuerySpacefor a collection (that is not a "return") with the specified unique ID.ExpandingCompositeQuerySpacemakeCompositeQuerySpace(String uid, CompositePropertyMapping compositePropertyMapping, boolean canJoinsBeRequired)Create anExpandingCompositeQuerySpacefor a composite with the specified unique ID.ExpandingEntityQuerySpacemakeEntityQuerySpace(String uid, EntityPersister entityPersister, boolean canJoinsBeRequired)Create anExpandingEntityQuerySpacefor an entity (that is not a "return") with the specified unique ID.ExpandingCollectionQuerySpacemakeRootCollectionQuerySpace(String uid, CollectionPersister collectionPersister)Create anExpandingCollectionQuerySpacefor a collection "return" with the specified unique ID.ExpandingEntityQuerySpacemakeRootEntityQuerySpace(String uid, EntityPersister entityPersister)Create anExpandingEntityQuerySpacefor an entity "return" with the specified unique ID.
-
-
-
构造器详细资料
-
QuerySpacesImpl
public QuerySpacesImpl(SessionFactoryImplementor sessionFactory)
-
-
方法详细资料
-
getRootQuerySpaces
public List<QuerySpace> getRootQuerySpaces()
从接口复制的说明:QuerySpacesGets the root QuerySpace references.- 指定者:
getRootQuerySpaces在接口中QuerySpaces- 返回:
- The roots
-
findQuerySpaceByUid
public QuerySpace findQuerySpaceByUid(String uid)
从接口复制的说明:QuerySpacesLocate a QuerySpace by its uid.- 指定者:
findQuerySpaceByUid在接口中QuerySpaces- 参数:
uid- The QuerySpace uid to match- 返回:
- The match,
nullis returned if no match. - 另请参阅:
QuerySpace.getUid()
-
getQuerySpaceByUid
public QuerySpace getQuerySpaceByUid(String uid)
从接口复制的说明:QuerySpacesLikeQuerySpaces.findQuerySpaceByUid(java.lang.String), except that here an exception is thrown if the uid cannot be resolved.- 指定者:
getQuerySpaceByUid在接口中QuerySpaces- 参数:
uid- The uid to resolve- 返回:
- The QuerySpace
-
generateImplicitUid
public String generateImplicitUid()
从接口复制的说明:ExpandingQuerySpacesGenerate a unique ID to be used when creating anExpandingQuerySpace. Using this method to generate a unique ID ensures that this object does not contain aQuerySpacewith the returned unique ID.- 指定者:
generateImplicitUid在接口中ExpandingQuerySpaces- 返回:
- The unique ID.
-
makeRootEntityQuerySpace
public ExpandingEntityQuerySpace makeRootEntityQuerySpace(String uid, EntityPersister entityPersister)
从接口复制的说明:ExpandingQuerySpacesCreate anExpandingEntityQuerySpacefor an entity "return" with the specified unique ID. The unique ID should be generated usingExpandingQuerySpaces.generateImplicitUid(), A unique suffix may be added to the unique ID for an existingQuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.- 指定者:
makeRootEntityQuerySpace在接口中ExpandingQuerySpaces- 参数:
uid- The unique ID for the root entity query space.entityPersister- The entity persister.- 返回:
- the
ExpandingEntityQuerySpacewith the specified unique ID. - 另请参阅:
EntityReturn
-
makeEntityQuerySpace
public ExpandingEntityQuerySpace makeEntityQuerySpace(String uid, EntityPersister entityPersister, boolean canJoinsBeRequired)
从接口复制的说明:ExpandingQuerySpacesCreate anExpandingEntityQuerySpacefor an entity (that is not a "return") with the specified unique ID. The unique ID should be generated usingExpandingQuerySpaces.generateImplicitUid(), A unique suffix may be added to the unique ID for an existingQuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.- 指定者:
makeEntityQuerySpace在接口中ExpandingQuerySpaces- 参数:
uid- The unique ID for the entity query space.entityPersister- The entity persister.canJoinsBeRequired-trueif joins added to the returned value can be required joins;false, otherwise.- 返回:
- the
ExpandingEntityQuerySpacewith the specified unique ID. - 另请参阅:
Join
-
makeRootCollectionQuerySpace
public ExpandingCollectionQuerySpace makeRootCollectionQuerySpace(String uid, CollectionPersister collectionPersister)
从接口复制的说明:ExpandingQuerySpacesCreate anExpandingCollectionQuerySpacefor a collection "return" with the specified unique ID. The unique ID should be generated usingExpandingQuerySpaces.generateImplicitUid(), A unique suffix may be added to the unique ID for an existingQuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.- 指定者:
makeRootCollectionQuerySpace在接口中ExpandingQuerySpaces- 参数:
uid- The unique ID for the root collection query space.collectionPersister- The collection persister.- 返回:
- the
ExpandingCollectionQuerySpacewith the specified unique ID. - 另请参阅:
CollectionReturn
-
makeCollectionQuerySpace
public ExpandingCollectionQuerySpace makeCollectionQuerySpace(String uid, CollectionPersister collectionPersister, boolean canJoinsBeRequired)
从接口复制的说明:ExpandingQuerySpacesCreate anExpandingCollectionQuerySpacefor a collection (that is not a "return") with the specified unique ID. The unique ID should be generated usingExpandingQuerySpaces.generateImplicitUid(), A unique suffix may be added to the unique ID for an existingQuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.- 指定者:
makeCollectionQuerySpace在接口中ExpandingQuerySpaces- 参数:
uid- The unique ID for the collection query space.collectionPersister- The collection persister.canJoinsBeRequired-trueif joins added to the returned value can be required joins;false, otherwise.- 返回:
- the
ExpandingCollectionQuerySpacewith the specified unique ID. - 另请参阅:
Join
-
makeCompositeQuerySpace
public ExpandingCompositeQuerySpace makeCompositeQuerySpace(String uid, CompositePropertyMapping compositePropertyMapping, boolean canJoinsBeRequired)
从接口复制的说明:ExpandingQuerySpacesCreate anExpandingCompositeQuerySpacefor a composite with the specified unique ID. The unique ID should be generated usingExpandingQuerySpaces.generateImplicitUid(), A unique suffix may be added to the unique ID for an existingQuerySpace. In this case, it is the caller's responsibility to ensure uniqueness.- 指定者:
makeCompositeQuerySpace在接口中ExpandingQuerySpaces- 参数:
uid- The unique ID for the composite query space.compositePropertyMapping- The composite property mapping.canJoinsBeRequired-trueif joins added to the returned value can be required joins;false, otherwise.- 返回:
- the
ExpandingCompositeQuerySpacewith the specified unique ID. - 另请参阅:
Join
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
从接口复制的说明:ExpandingQuerySpacesGets the session factory.- 指定者:
getSessionFactory在接口中ExpandingQuerySpaces- 返回:
- The session factory.
-
-