| Package | Description |
|---|---|
| org.b3log.latke.repository |
Data access service.
|
| org.b3log.latke.repository.jdbc | |
| org.b3log.latke.repository.jdbc.util |
| Modifier and Type | Method and Description |
|---|---|
String |
Repository.add(JSONObject jsonObject)
Adds the specified json object.
|
String |
AbstractRepository.add(JSONObject jsonObject) |
static void |
Repositories.check(String repositoryName,
JSONObject jsonObject,
String... ignoredKeys)
Determines whether the specified json object can not be persisted (add or update) into an repository which specified
by the given repository name.
|
long |
Repository.count()
Gets the count of all json objects.
|
long |
AbstractRepository.count() |
long |
Repository.count(Query query)
Gets the count of json objects by the specified query.
|
long |
AbstractRepository.count(Query query) |
Map<String,JSONObject> |
Repository.get(Iterable<String> ids)
Gets json objects by the specified ids.
|
Map<String,JSONObject> |
AbstractRepository.get(Iterable<String> ids) |
JSONObject |
Repository.get(Query query)
Gets json objects by the specified query.
|
JSONObject |
AbstractRepository.get(Query query) |
JSONObject |
Repository.get(String id)
Gets a json object by the specified id.
|
JSONObject |
AbstractRepository.get(String id) |
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.
|
List<JSONObject> |
Repository.getRandomly(int fetchSize)
Gets a list of json objects randomly with the specified fetch size.
|
List<JSONObject> |
AbstractRepository.getRandomly(int fetchSize) |
boolean |
Repository.has(String id)
Determines a json object specified by the given id exists in this repository.
|
boolean |
AbstractRepository.has(String id) |
void |
Repository.remove(Query query)
Removes json objects by the specified query.
|
void |
AbstractRepository.remove(Query query) |
void |
Repository.remove(String id)
Removes a json object by the specified id.
|
void |
AbstractRepository.remove(String id) |
List<JSONObject> |
Repository.select(String statement,
Object... params)
Gets json objects by the specified query statement.
|
List<JSONObject> |
AbstractRepository.select(String statement,
Object... params) |
void |
Repository.update(String id,
JSONObject jsonObject,
String... propertyNames)
Updates a certain json object specified by the given id with the specified new json object and property names.
|
void |
AbstractRepository.update(String id,
JSONObject jsonObject,
String... propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
String |
JdbcRepository.add(JSONObject jsonObject) |
long |
JdbcRepository.count() |
long |
JdbcRepository.count(Query query) |
Map<String,JSONObject> |
JdbcRepository.get(Iterable<String> ids) |
JSONObject |
JdbcRepository.get(Query query) |
JSONObject |
JdbcRepository.get(String id) |
List<JSONObject> |
JdbcRepository.getRandomly(int fetchSize) |
boolean |
JdbcRepository.has(String id) |
void |
JdbcRepository.remove(Query query) |
void |
JdbcRepository.remove(String id) |
List<JSONObject> |
JdbcRepository.select(String statement,
Object... params) |
void |
JdbcRepository.update(String id,
JSONObject jsonObject,
String... propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
static JSONArray |
JdbcUtil.queryJsonArray(String sql,
List<Object> paramList,
Connection connection,
String tableName,
boolean isDebug)
queryJsonArray.
|
static JSONObject |
JdbcUtil.queryJsonObject(String sql,
List<Object> paramList,
Connection connection,
String tableName,
boolean isDebug)
queryJsonObject.
|
Copyright © 2009–2019 B3log. All rights reserved.