- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface SQLValidator
Represents a
Predicate<String>
that tries to verify the given
sql statement. This interface is intended to reduce sql injections by providing
an instance that verifies the given string.- Since:
- 1.0
-
Method Summary
Modifier and Type Method Description boolean
verify(java.lang.String sql)
Evaluates this validator on the given sql statement.
-
Method Details
-
verify
boolean verify(java.lang.String sql)Evaluates this validator on the given sql statement.- Parameters:
sql
- the input string- Returns:
- true if no errors are detected, otherwise false
-