public class SpringConnectionProvider extends Object implements javax.inject.Provider<Connection>
SpringConnectionProvider
is a Provider implementation which provides a transactionally bound connection
Usage example
Provider<Connection> provider = new SpringConnectionProvider(dataSource());
SQLQueryFactory queryFactory = SQLQueryFactory(configuration, provider);
Constructor and Description |
---|
SpringConnectionProvider(DataSource dataSource) |
public SpringConnectionProvider(DataSource dataSource)
public Connection get()
get
in interface javax.inject.Provider<Connection>
Copyright © 2007–2016 Querydsl. All rights reserved.