T
- public class SQLQuery<T> extends AbstractSQLQuery<T,SQLQuery<T>>
SQLQuery
is a JDBC based implementation of the SQLCommonQuery
interfacelisteners, PARENT_CONTEXT, useLiterals
configuration, firstUnionSubQuery, union, unionAll
MDC_PARAMETERS, MDC_QUERY, queryMixin
Constructor and Description |
---|
SQLQuery()
Create a detached SQLQuery instance The query can be attached via the
clone method
|
SQLQuery(Configuration configuration)
Create a new SQLQuery instance
|
SQLQuery(Connection conn,
Configuration configuration)
Create a new SQLQuery instance
|
SQLQuery(Connection conn,
Configuration configuration,
QueryMetadata metadata)
Create a new SQLQuery instance
|
SQLQuery(Connection conn,
SQLTemplates templates)
Create a new SQLQuery instance
|
SQLQuery(Connection conn,
SQLTemplates templates,
QueryMetadata metadata)
Create a new SQLQuery instance
|
SQLQuery(javax.inject.Provider<Connection> connProvider,
Configuration configuration)
Create a new SQLQuery instance
|
SQLQuery(javax.inject.Provider<Connection> connProvider,
Configuration configuration,
QueryMetadata metadata)
Create a new SQLQuery instance
|
SQLQuery(SQLTemplates templates)
Create a detached SQLQuery instance The query can be attached via the
clone method
|
Modifier and Type | Method and Description |
---|---|
SQLQuery<T> |
clone(Connection conn) |
SQLQuery<Tuple> |
select(Expression<?>... exprs)
Change the projection of this query
|
<U> SQLQuery<U> |
select(Expression<U> expr)
Change the projection of this query
|
addListener, as, as, cleanupMDC, clone, clone, createSerializer, endContext, fetch, fetchCount, fetchResults, forShare, forShare, forUpdate, getConfiguration, getResults, getResults, iterate, logQuery, onException, setParameters, setStatementOptions, setUseLiterals, startContext
accept, addFlag, addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, fetchOne, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, 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, withRecursive
contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists
equals, fetchFirst, transform, uniqueResult
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
finalize, getClass, notify, notifyAll, wait, wait, wait
distinct, limit, offset, orderBy, restrict, set
where
transform
fetchFirst
public SQLQuery()
public SQLQuery(SQLTemplates templates)
templates
- SQLTemplates to usepublic SQLQuery(Connection conn, SQLTemplates templates)
conn
- Connection to usetemplates
- SQLTemplates to usepublic SQLQuery(Connection conn, SQLTemplates templates, QueryMetadata metadata)
conn
- Connection to usetemplates
- SQLTemplates to usemetadata
- metadatapublic SQLQuery(Configuration configuration)
configuration
- configurationpublic SQLQuery(Connection conn, Configuration configuration)
conn
- Connection to useconfiguration
- configurationpublic SQLQuery(Connection conn, Configuration configuration, QueryMetadata metadata)
conn
- Connection to useconfiguration
- configurationmetadata
- metadatapublic SQLQuery(javax.inject.Provider<Connection> connProvider, Configuration configuration)
connProvider
- Connection to useconfiguration
- configurationpublic SQLQuery(javax.inject.Provider<Connection> connProvider, Configuration configuration, QueryMetadata metadata)
connProvider
- Connection to useconfiguration
- configurationmetadata
- metadatapublic SQLQuery<T> clone(Connection conn)
clone
in class AbstractSQLQuery<T,SQLQuery<T>>
public <U> SQLQuery<U> select(Expression<U> expr)
FetchableQuery
expr
- new projectionpublic SQLQuery<Tuple> select(Expression<?>... exprs)
FetchableQuery
exprs
- new projectionCopyright © 2007–2016 Querydsl. All rights reserved.