Salman Manoe b0ad2cbe00 Update service logbook remunerasi
Perubahan filter dokter rekap logbook menggunakan unit kerja ksm
2025-01-21 12:08:00 +07:00

57 lines
1.1 KiB
Java

package com.jasamedika.medifirst2000.service;
import com.jasamedika.medifirst2000.exception.ServiceVOException;
import org.springframework.orm.jpa.JpaSystemException;
import java.util.List;
import java.util.Map;
/**
* View Object service
*
* @param <T>
* Model
* @param <V>
* View Object
* @param <K>
* Key
* @author Roberto
*/
public interface BaseVoService<T, V, K> {
/**
* Add model from VO
*/
V add(V vo) throws JpaSystemException, ServiceVOException;
/**
* Update model from vo
*/
V update(V vo) throws JpaSystemException, ServiceVOException;
/**
* Delete model by primary key
*/
Boolean delete(K key) throws JpaSystemException;
/**
* Find by ID
*
* @param key
* primary key
*/
V findById(K key) throws JpaSystemException;
/**
* Find all model to vo
*/
List<V> findAll() throws JpaSystemException;
/**
* Find all model to vo by page and limit and sort and dir parameter
*/
Map<String, Object> findAllWithPageAndLimitAndSortByAndDirectionParameter(Integer page, Integer limit,
String sort, String dir);
}