Interface CacheableJdbcOperation
- All Known Subinterfaces:
JdbcOperationQuery, JdbcOperationQueryAnonBlock, JdbcOperationQueryCall, JdbcOperationQueryInsert, JdbcOperationQueryMutation, JdbcSelect
public interface CacheableJdbcOperation
Optional contract for JdbcOperation implementors allowing them
to be used with Query caching.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanSignals that the SQL depends on the parameter bindings - e.g., due to the need for inlining of parameter values or multiValued parameters.booleanisCompatibleWith(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions) Whether the given arguments are compatible with this operation's state.
-
Method Details
-
dependsOnParameterBindings
boolean dependsOnParameterBindings()Signals that the SQL depends on the parameter bindings - e.g., due to the need for inlining of parameter values or multiValued parameters. -
isCompatibleWith
Whether the given arguments are compatible with this operation's state. Or, conversely, whether the arguments preclude this operation from being a cache-hit.
-