Package com.querydsl.sql
Class SQLQueryFactory
- All Implemented Interfaces:
QueryFactory<SQLQuery<?>>,SQLCommonQueryFactory<SQLQuery<?>,SQLDeleteClause, SQLUpdateClause, SQLInsertClause, SQLMergeClause>
Factory class for query and DML clause creation
- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.sql.AbstractSQLQueryFactory
configuration, connection -
Constructor Summary
ConstructorsConstructorDescriptionSQLQueryFactory(Configuration configuration, Supplier<Connection> connProvider) SQLQueryFactory(Configuration configuration, DataSource dataSource) SQLQueryFactory(Configuration configuration, DataSource dataSource, boolean release) SQLQueryFactory(SQLTemplates templates, Supplier<Connection> connection) -
Method Summary
Modifier and TypeMethodDescriptionSQLQuery<?>query()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 projectionselectDistinct(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 sourceCreate a new SQL query with one as the projectionCreate a new SQL query with zero as the projectionMethods inherited from class com.querydsl.sql.AbstractSQLQueryFactory
delete, from, from, from, getConfiguration, getConnection, insert, merge, update
-
Constructor Details
-
SQLQueryFactory
-
SQLQueryFactory
-
SQLQueryFactory
-
SQLQueryFactory
-
-
Method Details
-
query
-
select
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectin classAbstractSQLQueryFactory<SQLQuery<?>>- Type Parameters:
T- type of the projection- Parameters:
expr- projection- Returns:
- select(expr)
-
select
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectin classAbstractSQLQueryFactory<SQLQuery<?>>- Parameters:
exprs- projection- Returns:
- select(exprs)
-
selectDistinct
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectDistinctin classAbstractSQLQueryFactory<SQLQuery<?>>- Type Parameters:
T- type of the projection- Parameters:
expr- distinct projection- Returns:
- select(distinct expr)
-
selectDistinct
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection- Specified by:
selectDistinctin classAbstractSQLQueryFactory<SQLQuery<?>>- Parameters:
exprs- distinct projection- Returns:
- select(distinct exprs)
-
selectZero
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with zero as the projection- Specified by:
selectZeroin classAbstractSQLQueryFactory<SQLQuery<?>>- Returns:
- select(0)
-
selectOne
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with one as the projection- Specified by:
selectOnein classAbstractSQLQueryFactory<SQLQuery<?>>- Returns:
- select(1)
-
selectFrom
Description copied from class:AbstractSQLQueryFactoryCreate a new SQL query with the given projection and source- Specified by:
selectFromin classAbstractSQLQueryFactory<SQLQuery<?>>- Type Parameters:
T- type of the projection- Parameters:
expr- query source and projection- Returns:
- select(expr).from(expr)
-