T - type of document@ThreadSafe public abstract static class Repositories.Repository<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Repository(RepositorySetup configuration,
String collectionName,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected FluentFuture<Integer> |
doDelete(Constraints.ConstraintHost criteria) |
protected FluentFuture<List<T>> |
doFetch(Constraints.ConstraintHost criteria,
Constraints.Constraint ordering,
Constraints.Constraint exclusion,
int skip,
int limit) |
protected FluentFuture<Void> |
doIndex(Constraints.Constraint fields,
Constraints.Constraint options) |
protected FluentFuture<Integer> |
doInsert(com.google.common.collect.ImmutableList<T> documents) |
protected FluentFuture<com.google.common.base.Optional<T>> |
doModify(Constraints.ConstraintHost criteria,
Constraints.Constraint ordering,
Constraints.Constraint exclusion,
Constraints.Constraint update,
boolean upsert,
boolean newOrOld,
boolean remove) |
protected FluentFuture<Integer> |
doUpdate(Constraints.ConstraintHost criteria,
Constraints.Constraint update,
boolean upsert,
boolean multiple) |
protected FluentFuture<Integer> |
doUpsert(Constraints.ConstraintHost criteria,
T document) |
protected com.google.gson.Gson |
getGson() |
protected Repository(RepositorySetup configuration, String collectionName, Class<T> type)
protected final com.google.gson.Gson getGson()
protected final FluentFuture<Void> doIndex(Constraints.Constraint fields, Constraints.Constraint options)
protected final FluentFuture<Integer> doInsert(com.google.common.collect.ImmutableList<T> documents)
protected final FluentFuture<com.google.common.base.Optional<T>> doModify(Constraints.ConstraintHost criteria, Constraints.Constraint ordering, Constraints.Constraint exclusion, Constraints.Constraint update, boolean upsert, boolean newOrOld, boolean remove)
protected final FluentFuture<Integer> doUpdate(Constraints.ConstraintHost criteria, Constraints.Constraint update, boolean upsert, boolean multiple)
protected final FluentFuture<Integer> doDelete(Constraints.ConstraintHost criteria)
protected final FluentFuture<Integer> doUpsert(Constraints.ConstraintHost criteria, T document)
protected final FluentFuture<List<T>> doFetch(@Nullable Constraints.ConstraintHost criteria, Constraints.Constraint ordering, Constraints.Constraint exclusion, @Nonnegative int skip, @Nonnegative int limit)
Copyright © 2016 The Immutables.org authors. All rights reserved.