public interface CrudProxy
standard proxy if a response is not required from the server.
It is preferred to use domain patterns instead of this proxy service.
| Modifier and Type | Method and Description |
|---|---|
<TAggregate extends AggregateRoot> |
create(TAggregate aggregate)
Creates a new aggregate root on the remote server.
|
<TAggregate extends AggregateRoot> |
delete(java.lang.Class<TAggregate> manifest,
java.lang.String uri)
Deletes an existing aggregate root from the remote server.
|
<T extends Identifiable> |
read(java.lang.Class<T> manifest,
java.lang.String uri)
Gets a domain object from the remote server using provided identity.
|
<TAggregate extends AggregateRoot> |
update(TAggregate aggregate)
Modifies an existing aggregate root on the remote server.
|
<T extends Identifiable> java.util.concurrent.Future<T> read(java.lang.Class<T> manifest, java.lang.String uri)
T - identifiable domain typemanifest - domain object class (for deserialization)uri - domain object identity<TAggregate extends AggregateRoot> java.util.concurrent.Future<TAggregate> create(TAggregate aggregate)
TAggregate - aggregate root typeaggregate - new aggregate root<TAggregate extends AggregateRoot> java.util.concurrent.Future<TAggregate> update(TAggregate aggregate)
TAggregate - aggregate root typeaggregate - modified aggregate root<TAggregate extends AggregateRoot> java.util.concurrent.Future<TAggregate> delete(java.lang.Class<TAggregate> manifest, java.lang.String uri)
TAggregate - aggregate root typemanifest - aggregate root class (for deserialization)uri - aggregate root identity