Package org.hibernate.sql.exec.spi
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 TypeMethodDescriptionboolean
Signals that the SQL depends on the parameter bindings - e.g., due to the need for inlining of parameter values or multiValued parameters.boolean
isCompatibleWith
(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.
-