T - document typeF - a self type of extended finder class@NotThreadSafe public abstract static class Repositories.Finder<T,F extends Repositories.Finder<T,F>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Constraints.ConstraintHost |
criteria |
protected Constraints.Constraint |
exclusion |
protected Constraints.Constraint |
ordering |
protected Repositories.Repository<T> |
repository |
| Modifier | Constructor and Description |
|---|---|
protected |
Finder(Repositories.Repository<T> repository) |
| Modifier and Type | Method and Description |
|---|---|
FluentFuture<Integer> |
deleteAll() |
FluentFuture<com.google.common.base.Optional<T>> |
deleteFirst() |
FluentFuture<List<T>> |
fetchAll() |
FluentFuture<com.google.common.base.Optional<T>> |
fetchFirst() |
FluentFuture<List<T>> |
fetchWithLimit(int limitSize) |
F |
skip(int numberToSkip) |
@Nullable protected Constraints.ConstraintHost criteria
protected Constraints.Constraint ordering
protected Constraints.Constraint exclusion
protected final Repositories.Repository<T> repository
protected Finder(Repositories.Repository<T> repository)
public F skip(@Nonnegative int numberToSkip)
public final FluentFuture<List<T>> fetchWithLimit(@Nonnegative int limitSize)
public final FluentFuture<List<T>> fetchAll()
public final FluentFuture<com.google.common.base.Optional<T>> fetchFirst()
public FluentFuture<Integer> deleteAll()
public FluentFuture<com.google.common.base.Optional<T>> deleteFirst()
Copyright © 2016 The Immutables.org authors. All rights reserved.