Class JdbcFetchSizeEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.configuration.ConfigurationPropertyEvent
io.hypersistence.optimizer.hibernate.event.configuration.fetching.JdbcFetchSizeEvent
- All Implemented Interfaces:
Event,Serializable
The
JdbcFetchSizeEvent indicates that the current application
is not using the hibernate.jdbc.fetch_size configuration property.- Since:
- 1.2.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheJdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategyEnum defines the strategies you should apply depending on the underlying relational database.Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
ConstructorsConstructorDescriptionJdbcFetchSizeEvent(int fetchSize, JdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategy optimalStrategy) Instantiate aJdbcFetchSizeEventusing the provided JDBC Statement fetch size and optimal strategy. -
Method Summary
Modifier and TypeMethodDescriptionintGet the current JDBC Statement fetch size.Get the optimalJdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategyto use.Get theEvent.Priorityof thisEventMethods inherited from class io.hypersistence.optimizer.hibernate.event.configuration.ConfigurationPropertyEvent
getConfigurationPropertyMethods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
JdbcFetchSizeEvent
public JdbcFetchSizeEvent(int fetchSize, JdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategy optimalStrategy) Instantiate aJdbcFetchSizeEventusing the provided JDBC Statement fetch size and optimal strategy.- Parameters:
fetchSize- current JDBC Statement fetch sizeoptimalStrategy- the optimalJdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategyto use
-
-
Method Details
-
getFetchSize
public int getFetchSize()Get the current JDBC Statement fetch size.- Returns:
- the current JDBC Statement fetch size
-
getOptimalStrategy
Get the optimalJdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategyto use.- Returns:
- the optimal
JdbcFetchSizeEvent.JdbcFetchSizeOptimalStrategyto use
-
getPriority
Get theEvent.Priorityof thisEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-