Class ReadOnlyQueryValidator

java.lang.Object
io.jmix.aitools.dataload.validation.validator.ReadOnlyQueryValidator
All Implemented Interfaces:
JpqlResultValidator, org.springframework.core.Ordered

@Component("aitls_ReadOnlyQueryJpqlValidator") public class ReadOnlyQueryValidator extends Object implements JpqlResultValidator, org.springframework.core.Ordered
Checks that the query is a read-only select, rejecting non-select queries and write operations (update, delete, insert), as well as the native escape functions SQL(...) and FUNCTION(...) that can run raw SQL or native database functions and so bypass the read-only guarantee.