Class 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)  
    • Constructor Detail

      • AbstractClientable

        public AbstractClientable​(java.lang.Class<T> typeParameterClass,
                                  org.springframework.web.reactive.function.client.WebClient client)
    • Method Detail

      • create

        public T create​(T createForm)
                 throws java.lang.Throwable
        Specified by:
        create in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable
      • replaceById

        public T replaceById​(ID id,
                             T replace)
                      throws java.lang.Throwable
        Specified by:
        replaceById in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable
      • updateById

        public T updateById​(ID id,
                            java.util.Map<java.lang.String,​java.lang.Object> fields)
                     throws java.lang.Throwable
        Specified by:
        updateById in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable
      • get

        public T get​(ID id)
              throws java.lang.Throwable
        Specified by:
        get in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable
      • getAll

        public java.util.List<T> getAll()
                                 throws java.lang.Throwable
        Specified by:
        getAll in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable
      • deleteById

        public void deleteById​(ID id)
                        throws java.lang.Throwable
        Specified by:
        deleteById in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable
      • delete

        public void delete​(T entity)
                    throws java.lang.Throwable
        Specified by:
        delete in interface io.easywalk.simply.specification.SimplySpec<T,​ID>
        Throws:
        java.lang.Throwable