public class SQLQueryFactory extends AbstractSQLQueryFactory<SQLQuery<?>>
configuration, connection
Constructor and Description |
---|
SQLQueryFactory(Configuration configuration,
DataSource dataSource) |
SQLQueryFactory(Configuration configuration,
javax.inject.Provider<Connection> connection) |
SQLQueryFactory(SQLTemplates templates,
javax.inject.Provider<Connection> connection) |
Modifier and Type | Method and Description |
---|---|
SQLQuery<?> |
query() |
SQLQuery<Tuple> |
select(Expression<?>... exprs)
Create a new SQLQuery instance with the given projection
|
<T> SQLQuery<T> |
select(Expression<T> expr)
Create a new SQLQuery instance with the given projection
|
SQLQuery<Tuple> |
selectDistinct(Expression<?>... exprs)
Create a new SQLQuery instance with the given projection
|
<T> SQLQuery<T> |
selectDistinct(Expression<T> expr)
Create a new SQLQuery instance with the given projection
|
<T> SQLQuery<T> |
selectFrom(RelationalPath<T> expr)
Create a new detached SQLQuery instance with the given projection and source
|
SQLQuery<Integer> |
selectOne()
Create a new SQLQuery instance with one as the projection
|
SQLQuery<Integer> |
selectZero()
Create a new SQLQuery instance 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> connection)
public SQLQueryFactory(Configuration configuration, DataSource dataSource)
public SQLQuery<?> query()
public <T> SQLQuery<T> select(Expression<T> expr)
T
- expr
- projetionpublic SQLQuery<Tuple> select(Expression<?>... exprs)
exprs
- projectionpublic <T> SQLQuery<T> selectDistinct(Expression<T> expr)
T
- expr
- distinct projectionpublic SQLQuery<Tuple> selectDistinct(Expression<?>... exprs)
exprs
- distinct projectionpublic SQLQuery<Integer> selectZero()
public SQLQuery<Integer> selectOne()
public <T> SQLQuery<T> selectFrom(RelationalPath<T> expr)
T
- expr
- query source andd projectionCopyright © 2007–2015 Mysema Ltd. All rights reserved.