public class SQLQueryFactory extends AbstractSQLQueryFactory<SQLQuery<?>>
configuration, connection
Constructor and Description |
---|
SQLQueryFactory(Configuration configuration,
DataSource dataSource) |
SQLQueryFactory(Configuration configuration,
DataSource dataSource,
boolean release) |
SQLQueryFactory(Configuration configuration,
javax.inject.Provider<Connection> connProvider) |
SQLQueryFactory(SQLTemplates templates,
javax.inject.Provider<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<Integer> |
selectOne()
Create a new SQL query with one as the projection
|
SQLQuery<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, javax.inject.Provider<Connection> connection)
public SQLQueryFactory(Configuration configuration, javax.inject.Provider<Connection> connProvider)
public SQLQueryFactory(Configuration configuration, DataSource dataSource)
public SQLQueryFactory(Configuration configuration, 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<Integer> selectZero()
AbstractSQLQueryFactory
selectZero
in class AbstractSQLQueryFactory<SQLQuery<?>>
public SQLQuery<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–2016 Querydsl. All rights reserved.