接口 NativeQueryInterpreter
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
NativeQueryInterpreterStandardImpl
public interface NativeQueryInterpreter extends Service
Service contract for dealing with native queries.- 作者:
- Steve Ebersole, Gunnar Morling, Guillaume Smet
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 default CustomLoadercreateCustomLoader(CustomQuery customQuery, SessionFactoryImplementor sessionFactory)已过时。This method will be removed in 6.NativeSQLQueryPlancreateQueryPlan(NativeSQLQuerySpecification specification, SessionFactoryImplementor sessionFactory)Creates a new query plan for the specified native query.ParameterMetadataImplgetParameterMetadata(String nativeQuery)Returns a meta-data object with information about the named and ordinal parameters contained in the given native query.
-
-
-
方法详细资料
-
getParameterMetadata
ParameterMetadataImpl getParameterMetadata(String nativeQuery)
Returns a meta-data object with information about the named and ordinal parameters contained in the given native query.- 参数:
nativeQuery- the native query to analyze.- 返回:
- a meta-data object describing the parameters of the given query.
Must not be
null.
-
createQueryPlan
NativeSQLQueryPlan createQueryPlan(NativeSQLQuerySpecification specification, SessionFactoryImplementor sessionFactory)
Creates a new query plan for the specified native query.- 参数:
specification- Describes the query to create a plan forsessionFactory- The current session factory- 返回:
- A query plan for the specified native query.
-
createCustomLoader
@Deprecated default CustomLoader createCustomLoader(CustomQuery customQuery, SessionFactoryImplementor sessionFactory)
已过时。This method will be removed in 6.Creates aCustomLoaderfor the givenCustomQuery.- 参数:
customQuery- The CustomQuery to create a loader forsessionFactory- The current session factory
-
-