Package io.easywalk.simply.clientable
Class AbstractClientable<T,ID>
- java.lang.Object
-
- io.easywalk.simply.clientable.AbstractClientable<T,ID>
-
- All Implemented Interfaces:
io.easywalk.simply.specification.SimplySpec<T,ID>
public class AbstractClientable<T,ID> extends java.lang.Object implements io.easywalk.simply.specification.SimplySpec<T,ID>
-
-
Constructor Summary
Constructors Constructor Description AbstractClientable(java.lang.Class<T> typeParameterClass, org.springframework.web.reactive.function.client.WebClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(T createForm)voiddelete(T entity)voiddeleteById(ID id)Tget(ID id)java.util.List<T>getAll()TreplaceById(ID id, T replace)TupdateById(ID id, java.util.Map<java.lang.String,java.lang.Object> fields)
-
-
-
Constructor Detail
-
AbstractClientable
public AbstractClientable(java.lang.Class<T> typeParameterClass, org.springframework.web.reactive.function.client.WebClient client)
-
-
Method Detail
-
updateById
public T updateById(ID id, java.util.Map<java.lang.String,java.lang.Object> fields) throws java.lang.Throwable
-
getAll
public java.util.List<T> getAll() throws java.lang.Throwable
-
deleteById
public void deleteById(ID id) throws java.lang.Throwable
-
-