io.yawp.repository.AsyncRepository Maven / Gradle / Ivy
package io.yawp.repository;
public class AsyncRepository {
Repository r;
public AsyncRepository(Repository r) {
this.r = r;
}
public FutureObject save(T object) {
return r.saveAsync(object);
}
public FutureObject saveWithHooks(T object) {
return r.saveAsyncWithHooks(object);
}
public FutureObject destroy(IdRef> id) {
return r.destroyAsync(id);
}
public FutureObject fetch(IdRef id) {
return r.fetchAsync(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy