public class SQLQueryFactory extends AbstractSQLQueryFactory<SQLQuery<?>>
configuration, connection
Constructor and Description |
---|
SQLQueryFactory(Configuration configuration,
javax.sql.DataSource dataSource) |
SQLQueryFactory(Configuration configuration,
javax.sql.DataSource dataSource,
boolean release) |
SQLQueryFactory(Configuration configuration,
java.util.function.Supplier<java.sql.Connection> connProvider) |
SQLQueryFactory(SQLTemplates templates,
java.util.function.Supplier<java.sql.Connection> connection) |
Modifier and Type | Method and Description |
---|---|
SQLQuery<?> |
query()
Create a new Query
|
SQLQuery<Tuple> |
select(Expression<?>... exprs)
Create a new SQL query with the given projection
|
<T> SQLQuery<T> |
select(Expression<T> expr)
Create a new SQL query with the given projection
|
SQLQuery<Tuple> |
selectDistinct(Expression<?>... exprs)
Create a new SQL query with the given projection
|
<T> SQLQuery<T> |
selectDistinct(Expression<T> expr)
Create a new SQL query with the given projection
|
<T> SQLQuery<T> |
selectFrom(RelationalPath<T> expr)
Create a new SQL query with the given projection and source
|
SQLQuery<java.lang.Integer> |
selectOne()
Create a new SQL query with one as the projection
|
SQLQuery<java.lang.Integer> |
selectZero()
Create a new SQL query with zero as the projection
|
delete, from, from, from, getConfiguration, getConnection, insert, merge, update
public SQLQueryFactory(SQLTemplates templates, java.util.function.Supplier<java.sql.Connection> connection)
public SQLQueryFactory(Configuration configuration, java.util.function.Supplier<java.sql.Connection> connProvider)
public SQLQueryFactory(Configuration configuration, javax.sql.DataSource dataSource)
public SQLQueryFactory(Configuration configuration, javax.sql.DataSource dataSource, boolean release)
public SQLQuery<?> query()
QueryFactory
public <T> SQLQuery<T> select(Expression<T> expr)
AbstractSQLQueryFactory
select
in class AbstractSQLQueryFactory<SQLQuery<?>>
T
- type of the projectionexpr
- projectionpublic SQLQuery<Tuple> select(Expression<?>... exprs)
AbstractSQLQueryFactory
select
in class AbstractSQLQueryFactory<SQLQuery<?>>
exprs
- projectionpublic <T> SQLQuery<T> selectDistinct(Expression<T> expr)
AbstractSQLQueryFactory
selectDistinct
in class AbstractSQLQueryFactory<SQLQuery<?>>
T
- type of the projectionexpr
- distinct projectionpublic SQLQuery<Tuple> selectDistinct(Expression<?>... exprs)
AbstractSQLQueryFactory
selectDistinct
in class AbstractSQLQueryFactory<SQLQuery<?>>
exprs
- distinct projectionpublic SQLQuery<java.lang.Integer> selectZero()
AbstractSQLQueryFactory
selectZero
in class AbstractSQLQueryFactory<SQLQuery<?>>
public SQLQuery<java.lang.Integer> selectOne()
AbstractSQLQueryFactory
selectOne
in class AbstractSQLQueryFactory<SQLQuery<?>>
public <T> SQLQuery<T> selectFrom(RelationalPath<T> expr)
AbstractSQLQueryFactory
selectFrom
in class AbstractSQLQueryFactory<SQLQuery<?>>
T
- type of the projectionexpr
- query source and projectionCopyright © 2007–2021 Querydsl. All rights reserved.