All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gustavovitor.interfaces.ResourceInterface Maven / Gradle / Ivy

package com.github.gustavovitor.interfaces;

import com.github.gustavovitor.util.ObjectPageableRequest;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;

import javax.management.ReflectionException;
import java.util.Map;

public interface ResourceInterface {
    ResponseEntity findById(ID objectId);

    ResponseEntity> findAll(SPO object) throws ReflectionException;

    ResponseEntity> findAllPageable(ObjectPageableRequest request) throws ReflectionException;

    ResponseEntity insert(T object);

    ResponseEntity update(ID objectId, T object);

    ResponseEntity patch(ID objectId, Map object);

    void delete(ID objectId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy