public static class StatementMapper.SelectSpec extends Object
SELECT specification.| Modifier | Constructor and Description |
|---|---|
protected |
SelectSpec(String table,
List<String> projectedFields,
Criteria criteria,
Sort sort,
Pageable page) |
| Modifier and Type | Method and Description |
|---|---|
static StatementMapper.SelectSpec |
create(String table)
Create an
SELECT specification for table. |
Criteria |
getCriteria() |
Pageable |
getPage() |
List<String> |
getProjectedFields() |
Sort |
getSort() |
String |
getTable() |
StatementMapper.SelectSpec |
withCriteria(Criteria criteria)
Associate a
Criteria with the select and return a new StatementMapper.SelectSpec. |
StatementMapper.SelectSpec |
withPage(Pageable page)
Associate a
Pageable with the select and create a new StatementMapper.SelectSpec. |
StatementMapper.SelectSpec |
withProjection(Collection<String> projectedFields)
Associate
projectedFields with the select and create a new StatementMapper.SelectSpec. |
StatementMapper.SelectSpec |
withSort(Sort sort)
Associate
Sort with the select and create a new StatementMapper.SelectSpec. |
public static StatementMapper.SelectSpec create(String table)
SELECT specification for table.table - StatementMapper.SelectSpec.public StatementMapper.SelectSpec withProjection(Collection<String> projectedFields)
projectedFields with the select and create a new StatementMapper.SelectSpec.projectedFields - StatementMapper.SelectSpec.public StatementMapper.SelectSpec withCriteria(Criteria criteria)
Criteria with the select and return a new StatementMapper.SelectSpec.criteria - StatementMapper.SelectSpec.public StatementMapper.SelectSpec withSort(Sort sort)
Sort with the select and create a new StatementMapper.SelectSpec.sort - StatementMapper.SelectSpec.public StatementMapper.SelectSpec withPage(Pageable page)
Pageable with the select and create a new StatementMapper.SelectSpec.page - StatementMapper.SelectSpec.public String getTable()
public Sort getSort()
public Pageable getPage()
Copyright © 2018–2019 Pivotal Software, Inc.. All rights reserved.