| Package | Description |
|---|---|
| org.b3log.latke.repository |
Data access service.
|
| org.b3log.latke.repository.jdbc |
| Modifier and Type | Method and Description |
|---|---|
Query |
Query.addSort(String propertyName,
SortDirection sortDirection)
Adds sort for the specified property with the specified direction.
|
Query |
Query.select(String propertyName,
String... propertyNames)
Set SELECT projections.
|
Query |
Query.setCurrentPageNum(int currentPageNum)
Sets the current page number with the specified current page number.
|
Query |
Query.setDebug(boolean debug)
Sets the debug flag.
|
Query |
Query.setFilter(Filter filter)
Sets the filter with the specified filter.
|
Query |
Query.setPage(int currentPageNum,
int pageSize)
Sets the current page number and page size with the specified current page number and the specified page sieze.
|
Query |
Query.setPageCount(int pageCount)
Sets the page count with the specified page count.
|
Query |
Query.setPageSize(int pageSize)
Sets the page size with the specified page size.
|
| Modifier and Type | Method and Description |
|---|---|
long |
Repository.count(Query query)
Gets the count of json objects by the specified query.
|
long |
NoneRepository.count(Query query) |
long |
AbstractRepository.count(Query query) |
JSONObject |
Repository.get(Query query)
Gets json objects by the specified query.
|
JSONObject |
NoneRepository.get(Query query) |
JSONObject |
AbstractRepository.get(Query query) |
default JSONObject |
Repository.getFirst(Query query)
Gets the first result json object by the specified query.
|
default List<JSONObject> |
Repository.getList(Query query)
Get json objects by the specified query.
|
void |
Repository.remove(Query query)
Removes json objects by the specified query.
|
void |
NoneRepository.remove(Query query) |
void |
AbstractRepository.remove(Query query) |
| Modifier and Type | Method and Description |
|---|---|
long |
JdbcRepository.count(Query query) |
JSONObject |
JdbcRepository.get(Query query) |
void |
JdbcRepository.remove(Query query) |
Copyright © 2009–2019 B3log. All rights reserved.