ca.gc.aafc.dina.mapper.DinaFieldAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
The newest version!
package ca.gc.aafc.dina.mapper;
import io.crnk.core.queryspec.FilterSpec;
import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
public interface DinaFieldAdapter {
DTO_FIELD toDTO(ENTITY_FIELD entityField);
ENTITY_FIELD toEntity(DTO_FIELD dtoField);
Consumer entityApplyMethod(ENTITY entityRef);
Consumer dtoApplyMethod(DTO dtoRef);
Supplier entitySupplyMethod(ENTITY entityRef);
Supplier dtoSupplyMethod(DTO dtoRef);
/**
* Returns a map of supported field names to their supporting filter spec mapping function.
*
* @return a map of supported field names to their supporting filter spec mapping function.
*/
default Map> toFilterSpec() {
return Map.of();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy