@FunctionalInterface public interface SqlProvider
Represents an interface to be implemented by objects which can provide SQL strings.
This interface is implemented alongside StatementFunction
s and PreparedStatementFunction
s.
This helps retrieving better contextual information in case of DataAccessException
exceptions.
Use of this interface is suggested in application code (if possible).
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getSql()
Returns the sql statement related to this implementation.
|
@Nullable @Nullable String getSql()
Copyright © 2021. All rights reserved.