|
Spring Data JDBC Extensions | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Deprecated public interface QueryDslJdbcOperations
Interface specifying a basic set of JDBC operations allowing the use of QueryDSL features for these operations.
This is an alternative to the classic
JdbcOperations interface and is
implemented by QueryDslJdbcTemplate. This interface is not
often used directly, but provides a useful option to enhance testability,
as it can easily be mocked or stubbed.
QueryDslJdbcTemplate,
JdbcOperations| Method Summary | ||
|---|---|---|
long |
count(com.mysema.query.sql.SQLQuery sqlQuery)
Deprecated. Count the rows that are part of the results for the given SQLQuery |
|
long |
countDistinct(com.mysema.query.sql.SQLQuery sqlQuery)
Deprecated. Count the distinct rows that are part of the results for the given SQLQuery |
|
long |
delete(com.mysema.query.sql.RelationalPath<?> entity,
SqlDeleteCallback callback)
Deprecated. Execute a database delete using the provided SqlDeleteCallback. |
|
boolean |
exists(com.mysema.query.sql.SQLQuery sqlQuery)
Deprecated. Determine if the result for the given SQLQuery contains some rows |
|
JdbcOperations |
getJdbcOperations()
Deprecated. Expose the classic Spring JdbcTemplate to allow invocation of classic JDBC operations. |
|
long |
insert(com.mysema.query.sql.RelationalPath<?> entity,
SqlInsertCallback callback)
Deprecated. Execute a database insert using the provided SqlInsertCallback. |
|
|
insertWithKey(com.mysema.query.sql.RelationalPath<?> entity,
SqlInsertWithKeyCallback<K> callback)
Deprecated. Execute a database insert using the provided SqlInsertWithKeyCallback. |
|
com.mysema.query.sql.SQLQuery |
newSqlQuery()
Deprecated. Create a new SQLQuery for this configuration. |
|
boolean |
notExists(com.mysema.query.sql.SQLQuery sqlQuery)
Deprecated. Determine if the result for the given SQLQuery is empty |
|
|
query(com.mysema.query.sql.SQLQuery sqlQuery,
com.mysema.query.types.Expression<T> expression)
Deprecated. Query for a list of objects using the SQLQuery. |
|
|
query(com.mysema.query.sql.SQLQuery sqlQuery,
ResultSetExtractor<List<T>> resultSetExtractor,
com.mysema.query.types.Expression<?>... projection)
Deprecated. Query for a list of objects using the SQLQuery. |
|
|
query(com.mysema.query.sql.SQLQuery sqlQuery,
RowMapper<T> rowMapper,
com.mysema.query.types.Expression<?>... projection)
Deprecated. Query for a list of objects using the SQLQuery. |
|
|
queryForObject(com.mysema.query.sql.SQLQuery sqlQuery,
com.mysema.query.types.Expression<T> expression)
Deprecated. Query for a single object using the SQLQuery. |
|
|
queryForObject(com.mysema.query.sql.SQLQuery sqlQuery,
ResultSetExtractor<T> resultSetExtractor,
com.mysema.query.types.Expression<?>... projection)
Deprecated. Query for a single object using the SQLQuery. |
|
|
queryForObject(com.mysema.query.sql.SQLQuery sqlQuery,
RowMapper<T> rowMapper,
com.mysema.query.types.Expression<?>... projection)
Deprecated. Query for a single object using the SQLQuery. |
|
long |
update(com.mysema.query.sql.RelationalPath<?> entity,
SqlUpdateCallback callback)
Deprecated. Execute a database update using the provided SqlUpdateCallback. |
|
| Method Detail |
|---|
JdbcOperations getJdbcOperations()
com.mysema.query.sql.SQLQuery newSqlQuery()
SQLQuery for this configuration.
long count(com.mysema.query.sql.SQLQuery sqlQuery)
SQLQuery
sqlQuery - query to be used
long countDistinct(com.mysema.query.sql.SQLQuery sqlQuery)
SQLQuery
sqlQuery - query to be used
boolean exists(com.mysema.query.sql.SQLQuery sqlQuery)
SQLQuery contains some rows
sqlQuery - query to be used
boolean notExists(com.mysema.query.sql.SQLQuery sqlQuery)
SQLQuery is empty
sqlQuery - query to be used
<T> T queryForObject(com.mysema.query.sql.SQLQuery sqlQuery,
ResultSetExtractor<T> resultSetExtractor,
com.mysema.query.types.Expression<?>... projection)
SQLQuery. The results are mapped using the
RowMapper based on the specified projection.
sqlQuery - the SQLQuery to useresultSetExtractor - the ResultSetExtractor to extract the resultsprojection - the column projection to be used for the mapping
<T> T queryForObject(com.mysema.query.sql.SQLQuery sqlQuery,
RowMapper<T> rowMapper,
com.mysema.query.types.Expression<?>... projection)
SQLQuery. The results are mapped using the
RowMapper based on the specified projection.
sqlQuery - the SQLQuery to userowMapper - the RowMapper to map the resultsprojection - the column projection to be used for the mapping
<T> T queryForObject(com.mysema.query.sql.SQLQuery sqlQuery,
com.mysema.query.types.Expression<T> expression)
SQLQuery. The results are mapped using the
Expression which could be a QBean or a MappingProjection.
sqlQuery - the SQLQuery to useexpression - the implementation to be used for the projection/mapping
<T> List<T> query(com.mysema.query.sql.SQLQuery sqlQuery,
ResultSetExtractor<List<T>> resultSetExtractor,
com.mysema.query.types.Expression<?>... projection)
SQLQuery. The results are mapped using the
RowMapper based on the specified projection.
sqlQuery - the SQLQuery to useresultSetExtractor - the ResultSetExtractor to extract the resultsprojection - the column projection to be used for the mapping
<T> List<T> query(com.mysema.query.sql.SQLQuery sqlQuery,
RowMapper<T> rowMapper,
com.mysema.query.types.Expression<?>... projection)
SQLQuery. The results are mapped using the
RowMapper based on the specified projection.
sqlQuery - the SQLQuery to userowMapper - the RowMapper to map the resultsprojection - the column projection to be used for the mapping
<T> List<T> query(com.mysema.query.sql.SQLQuery sqlQuery,
com.mysema.query.types.Expression<T> expression)
SQLQuery. The results are mapped using the
Expression which could be a QBean or a MappingProjection.
sqlQuery - the SQLQuery to useexpression - the implementation to be used for the projection/mapping
long insert(com.mysema.query.sql.RelationalPath<?> entity,
SqlInsertCallback callback)
SqlInsertCallback.
entity - RelationalPath representing the table for the entitycallback - the SqlInsertCallback implementation that operates on the SQLInsertClause
<K> K insertWithKey(com.mysema.query.sql.RelationalPath<?> entity,
SqlInsertWithKeyCallback<K> callback)
SqlInsertWithKeyCallback.
entity - RelationalPath representing the table for the entitycallback - the SqlInsertWithKeyCallback implementation that operates on the SQLInsertClause
long update(com.mysema.query.sql.RelationalPath<?> entity,
SqlUpdateCallback callback)
SqlUpdateCallback.
entity - RelationalPath representing the table for the entitycallback - the SqlUpdateCallback implementation that operates on the SQLUpdateClause
long delete(com.mysema.query.sql.RelationalPath<?> entity,
SqlDeleteCallback callback)
SqlDeleteCallback.
entity - RelationalPath representing the table for the entitycallback - the SqlDeleteCallback implementation that operates on the SQLDeleteClause
|
Spring Data JDBC Extensions | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||