Package org.hibernate.internal
Class FastSessionServices
java.lang.Object
org.hibernate.internal.FastSessionServices
Internal component.
Collects any components that any Session implementation will likely need for faster access and reduced allocations. Conceptually this acts as an immutable caching intermediary between Session and SessionFactory.
Designed to be immutable, shared across Session instances, and created infrequently, possibly only once per SessionFactory.
If the Session is requiring to retrieve (or compute) anything from the SessionFactory, and this computation would result in the same outcome for any Session created on this same SessionFactory, then it belongs in a final field of this class.
Finally, consider also limiting the size of each Session: some fields could be good candidates to be replaced with access via this object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BatchBuilder
final Dialect
final JdbcServices
final ParameterMarkerStrategy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
firePostLoadEvent
(PostLoadEvent postLoadEvent) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
boolean
-
Field Details
-
eventListenerGroup_AUTO_FLUSH
-
eventListenerGroup_CLEAR
-
eventListenerGroup_DELETE
-
eventListenerGroup_DIRTY_CHECK
-
eventListenerGroup_EVICT
-
eventListenerGroup_FLUSH_ENTITY
-
eventListenerGroup_FLUSH
-
eventListenerGroup_INIT_COLLECTION
public final EventListenerGroup<InitializeCollectionEventListener> eventListenerGroup_INIT_COLLECTION -
eventListenerGroup_LOAD
-
eventListenerGroup_LOCK
-
eventListenerGroup_MERGE
-
eventListenerGroup_PERSIST
-
eventListenerGroup_PERSIST_ONFLUSH
-
eventListenerGroup_POST_COLLECTION_RECREATE
public final EventListenerGroup<PostCollectionRecreateEventListener> eventListenerGroup_POST_COLLECTION_RECREATE -
eventListenerGroup_POST_COLLECTION_REMOVE
public final EventListenerGroup<PostCollectionRemoveEventListener> eventListenerGroup_POST_COLLECTION_REMOVE -
eventListenerGroup_POST_COLLECTION_UPDATE
public final EventListenerGroup<PostCollectionUpdateEventListener> eventListenerGroup_POST_COLLECTION_UPDATE -
eventListenerGroup_POST_COMMIT_DELETE
-
eventListenerGroup_POST_DELETE
-
eventListenerGroup_POST_COMMIT_INSERT
-
eventListenerGroup_POST_INSERT
-
eventListenerGroup_POST_LOAD
-
eventListenerGroup_POST_COMMIT_UPDATE
-
eventListenerGroup_POST_UPDATE
-
eventListenerGroup_POST_UPSERT
-
eventListenerGroup_PRE_COLLECTION_RECREATE
public final EventListenerGroup<PreCollectionRecreateEventListener> eventListenerGroup_PRE_COLLECTION_RECREATE -
eventListenerGroup_PRE_COLLECTION_REMOVE
public final EventListenerGroup<PreCollectionRemoveEventListener> eventListenerGroup_PRE_COLLECTION_REMOVE -
eventListenerGroup_PRE_COLLECTION_UPDATE
public final EventListenerGroup<PreCollectionUpdateEventListener> eventListenerGroup_PRE_COLLECTION_UPDATE -
eventListenerGroup_PRE_DELETE
-
eventListenerGroup_PRE_INSERT
-
eventListenerGroup_PRE_LOAD
-
eventListenerGroup_PRE_UPDATE
-
eventListenerGroup_PRE_UPSERT
-
eventListenerGroup_REFRESH
-
eventListenerGroup_REPLICATE
-
eventListenerGroup_RESOLVE_NATURAL_ID
public final EventListenerGroup<ResolveNaturalIdEventListener> eventListenerGroup_RESOLVE_NATURAL_ID -
jdbcServices
-
entityCopyObserverFactory
-
batchBuilder
-
dialect
-
parameterMarkerStrategy
-
-
Method Details
-
getJdbcValuesMappingProducerProvider
-
getEventManager
-
useStreamForLobBinding
public boolean useStreamForLobBinding() -
firePostLoadEvent
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean() -
getDefaultTimeZoneStorageStrategy
Deprecated, for removal: This API element is subject to removal in a future version. -
getJsonFormatMapper
-
getXmlFormatMapper
-
getMutationExecutorService
Deprecated, for removal: This API element is subject to removal in a future version.
-