类 RootHelper
- java.lang.Object
-
- org.hibernate.loader.plan.exec.internal.RootHelper
-
public class RootHelper extends Object
- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static RootHelperINSTANCESingleton access
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T extends QuerySpace>
TextractRootQuerySpace(QuerySpaces querySpaces, Class<EntityQuerySpace> returnType)Extract the root QuerySpace of the LoadPlan, assuming there is just one.<T extends Return>
TextractRootReturn(LoadPlan loadPlan, Class<T> returnType)Extract the root return of the LoadPlan, assuming there is just one.
-
-
-
字段详细资料
-
INSTANCE
public static final RootHelper INSTANCE
Singleton access
-
-
方法详细资料
-
extractRootReturn
public <T extends Return> T extractRootReturn(LoadPlan loadPlan, Class<T> returnType)
Extract the root return of the LoadPlan, assuming there is just one.- 类型参数:
T- The parameterized type of the specific Return type expected- 参数:
loadPlan- The LoadPlan from which to extract the root returnreturnType- The Return type expected, passed as an argument- 返回:
- The root Return
- 抛出:
IllegalStateException- If there is no root, more than one root or the single root is not of the expected type.
-
extractRootQuerySpace
public <T extends QuerySpace> T extractRootQuerySpace(QuerySpaces querySpaces, Class<EntityQuerySpace> returnType)
Extract the root QuerySpace of the LoadPlan, assuming there is just one.- 参数:
querySpaces- The QuerySpaces from which to extract the root.returnType- The QuerySpace type expected, passed as an argument- 返回:
- The root QuerySpace
- 抛出:
IllegalStateException- If there is no root, more than one root or the single root is not of the expected type.
-
-