Package com.querydsl.sql
Class SQLQuery<T>
java.lang.Object
com.querydsl.core.support.QueryBase<Q>
com.querydsl.core.support.FetchableQueryBase<T,Q>
com.querydsl.core.support.FetchableSubQueryBase<T,Q>
com.querydsl.sql.ProjectableSQLQuery<T,Q>
com.querydsl.sql.AbstractSQLQuery<T,SQLQuery<T>>
com.querydsl.sql.SQLQuery<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Fetchable<T>,FetchableQuery<T,,SQLQuery<T>> FilteredClause<SQLQuery<T>>,Query<SQLQuery<T>>,SimpleQuery<SQLQuery<T>>,ExtendedSubQuery<T>,Expression<T>,SubQueryExpression<T>,SQLCommonQuery<SQLQuery<T>>,Serializable
SQLQuery is a JDBC based implementation of the SQLCommonQuery
interface- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.sql.AbstractSQLQuery
listeners, PARENT_CONTEXT, useLiteralsFields inherited from class com.querydsl.sql.ProjectableSQLQuery
configuration, firstUnionSubQuery, union, unionAllFields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY, queryMixin -
Constructor Summary
ConstructorsConstructorDescriptionSQLQuery()Create a detached SQLQuery instance The query can be attached via the clone methodSQLQuery(Configuration configuration) Create a new SQLQuery instanceSQLQuery(SQLTemplates templates) Create a detached SQLQuery instance The query can be attached via the clone methodSQLQuery(Connection conn, Configuration configuration) Create a new SQLQuery instanceSQLQuery(Connection conn, Configuration configuration, QueryMetadata metadata) Create a new SQLQuery instanceSQLQuery(Connection conn, SQLTemplates templates) Create a new SQLQuery instanceSQLQuery(Connection conn, SQLTemplates templates, QueryMetadata metadata) Create a new SQLQuery instanceSQLQuery(Supplier<Connection> connProvider, Configuration configuration) Create a new SQLQuery instanceSQLQuery(Supplier<Connection> connProvider, Configuration configuration, QueryMetadata metadata) Create a new SQLQuery instance -
Method Summary
Modifier and TypeMethodDescriptionclone(Connection conn) select(Expression<?>... exprs) <U> SQLQuery<U>select(Expression<U> expr) Methods inherited from class com.querydsl.sql.AbstractSQLQuery
addListener, as, as, clone, clone, createSerializer, endContext, fetch, fetchCount, fetchResults, forShare, forShare, forUpdate, getConfiguration, getResults, getResults, iterate, logQuery, onException, setParameters, setStatementOptions, setUseLiterals, startContextMethods inherited from class com.querydsl.sql.ProjectableSQLQuery
accept, addFlag, addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, fetchOne, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getSQL, getSQL, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, serialize, toString, union, union, union, unionAll, unionAll, unionAll, with, with, with, withRecursive, withRecursive, withRecursiveMethods inherited from class com.querydsl.core.support.FetchableSubQueryBase
contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExistsMethods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetchFirst, transform, uniqueResultMethods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, whereMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.Fetchable
fetchFirst, streamMethods inherited from interface com.querydsl.core.FetchableQuery
transformMethods inherited from interface com.querydsl.core.FilteredClause
where
-
Constructor Details
-
SQLQuery
public SQLQuery()Create a detached SQLQuery instance The query can be attached via the clone method -
SQLQuery
Create a detached SQLQuery instance The query can be attached via the clone method- Parameters:
templates- SQLTemplates to use
-
SQLQuery
Create a new SQLQuery instance- Parameters:
conn- Connection to usetemplates- SQLTemplates to use
-
SQLQuery
Create a new SQLQuery instance- Parameters:
conn- Connection to usetemplates- SQLTemplates to usemetadata- metadata
-
SQLQuery
Create a new SQLQuery instance- Parameters:
configuration- configuration
-
SQLQuery
Create a new SQLQuery instance- Parameters:
conn- Connection to useconfiguration- configuration
-
SQLQuery
Create a new SQLQuery instance- Parameters:
conn- Connection to useconfiguration- configurationmetadata- metadata
-
SQLQuery
Create a new SQLQuery instance- Parameters:
connProvider- Connection to useconfiguration- configuration
-
SQLQuery
public SQLQuery(Supplier<Connection> connProvider, Configuration configuration, QueryMetadata metadata) Create a new SQLQuery instance- Parameters:
connProvider- Connection to useconfiguration- configurationmetadata- metadata
-
-
Method Details
-
clone
- Specified by:
clonein classAbstractSQLQuery<T,SQLQuery<T>>
-
select
-
select
-