org.hibernate.loader.custom.sql.SQLCustomQuery源码实例Demo

类org.hibernate.loader.custom.sql.SQLCustomQuery源码实例Demo

下面列出了org.hibernate.loader.custom.sql.SQLCustomQuery 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: hibernate-reactive   文件: ReactiveSessionImpl.java
@Override
public CompletionStage<Integer> executeReactiveUpdate(NativeSQLQuerySpecification specification,
													  QueryParameters parameters) {
	checkOpenOrWaitingForAutoClose();
	pulseTransactionCoordinator();
	parameters.validateParameters();

	ReactiveNativeSQLQueryPlan reactivePlan = //getNativeQueryPlan( specification );
			new ReactiveNativeSQLQueryPlan(
					specification.getQueryString(),
					new SQLCustomQuery(
							specification.getQueryString(),
							specification.getQueryReturns(),
							specification.getQuerySpaces(),
							getFactory()
					) );
	return reactiveAutoFlushIfRequired( reactivePlan.getCustomQuery().getQuerySpaces() )
			.thenCompose( v -> reactivePlan.performExecuteReactiveUpdate( parameters, this ) )
			.whenComplete( (count, x) -> {
				afterOperation( x == null );
				delayedAfterCompletion();
			} );
}
 
源代码2 项目: lams   文件: NativeQueryInterpreterStandardImpl.java
@Override
public NativeSQLQueryPlan createQueryPlan(
		NativeSQLQuerySpecification specification,
		SessionFactoryImplementor sessionFactory) {
	CustomQuery customQuery = new SQLCustomQuery(
			specification.getQueryString(),
			specification.getQueryReturns(),
			specification.getQuerySpaces(),
			sessionFactory
	);

	return new NativeSQLQueryPlan( specification.getQueryString(), customQuery );
}
 
源代码3 项目: cacheonix-core   文件: NativeSQLQueryPlan.java
public NativeSQLQueryPlan(
		NativeSQLQuerySpecification specification,
		SessionFactoryImplementor factory) {
	this.sourceQuery = specification.getQueryString();

	customQuery = new SQLCustomQuery(
			specification.getQueryString(),
			specification.getQueryReturns(),
			specification.getQuerySpaces(),
			factory );
}
 
源代码4 项目: cacheonix-core   文件: NativeSQLQueryPlan.java
public SQLCustomQuery getCustomQuery() {
	return customQuery;
}
 
如果文章对您有帮助,请点击页面广告。以鼓励作者做出的努力。
 类所在包
 类方法
 同包方法