Package org.hibernate.internal
Class FastSessionServices
- java.lang.Object
-
- org.hibernate.internal.FastSessionServices
-
public final class FastSessionServices extends Object
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
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
firePostLoadEvent(PostLoadEvent postLoadEvent)
ConnectionObserverStatsBridge
getDefaultJdbcObserver()
TimeZoneStorageStrategy
getDefaultTimeZoneStorageStrategy()
Deprecated, for removal: This API element is subject to removal in a future version.EventManager
getEventManager()
JdbcValuesMappingProducerProvider
getJdbcValuesMappingProducerProvider()
FormatMapper
getJsonFormatMapper()
MutationExecutorService
getMutationExecutorService()
Deprecated, for removal: This API element is subject to removal in a future version.int
getPreferredSqlTypeCodeForBoolean()
FormatMapper
getXmlFormatMapper()
boolean
useStreamForLobBinding()
-
-
-
Field Detail
-
eventListenerGroup_AUTO_FLUSH
public final EventListenerGroup<AutoFlushEventListener> eventListenerGroup_AUTO_FLUSH
-
eventListenerGroup_CLEAR
public final EventListenerGroup<ClearEventListener> eventListenerGroup_CLEAR
-
eventListenerGroup_DELETE
public final EventListenerGroup<DeleteEventListener> eventListenerGroup_DELETE
-
eventListenerGroup_DIRTY_CHECK
public final EventListenerGroup<DirtyCheckEventListener> eventListenerGroup_DIRTY_CHECK
-
eventListenerGroup_EVICT
public final EventListenerGroup<EvictEventListener> eventListenerGroup_EVICT
-
eventListenerGroup_FLUSH_ENTITY
public final EventListenerGroup<FlushEntityEventListener> eventListenerGroup_FLUSH_ENTITY
-
eventListenerGroup_FLUSH
public final EventListenerGroup<FlushEventListener> eventListenerGroup_FLUSH
-
eventListenerGroup_INIT_COLLECTION
public final EventListenerGroup<InitializeCollectionEventListener> eventListenerGroup_INIT_COLLECTION
-
eventListenerGroup_LOAD
public final EventListenerGroup<LoadEventListener> eventListenerGroup_LOAD
-
eventListenerGroup_LOCK
public final EventListenerGroup<LockEventListener> eventListenerGroup_LOCK
-
eventListenerGroup_MERGE
public final EventListenerGroup<MergeEventListener> eventListenerGroup_MERGE
-
eventListenerGroup_PERSIST
public final EventListenerGroup<PersistEventListener> eventListenerGroup_PERSIST
-
eventListenerGroup_PERSIST_ONFLUSH
public final EventListenerGroup<PersistEventListener> 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
public final EventListenerGroup<PostDeleteEventListener> eventListenerGroup_POST_COMMIT_DELETE
-
eventListenerGroup_POST_DELETE
public final EventListenerGroup<PostDeleteEventListener> eventListenerGroup_POST_DELETE
-
eventListenerGroup_POST_COMMIT_INSERT
public final EventListenerGroup<PostInsertEventListener> eventListenerGroup_POST_COMMIT_INSERT
-
eventListenerGroup_POST_INSERT
public final EventListenerGroup<PostInsertEventListener> eventListenerGroup_POST_INSERT
-
eventListenerGroup_POST_LOAD
public final EventListenerGroup<PostLoadEventListener> eventListenerGroup_POST_LOAD
-
eventListenerGroup_POST_COMMIT_UPDATE
public final EventListenerGroup<PostUpdateEventListener> eventListenerGroup_POST_COMMIT_UPDATE
-
eventListenerGroup_POST_UPDATE
public final EventListenerGroup<PostUpdateEventListener> eventListenerGroup_POST_UPDATE
-
eventListenerGroup_POST_UPSERT
public final EventListenerGroup<PostUpsertEventListener> 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
public final EventListenerGroup<PreDeleteEventListener> eventListenerGroup_PRE_DELETE
-
eventListenerGroup_PRE_INSERT
public final EventListenerGroup<PreInsertEventListener> eventListenerGroup_PRE_INSERT
-
eventListenerGroup_PRE_LOAD
public final EventListenerGroup<PreLoadEventListener> eventListenerGroup_PRE_LOAD
-
eventListenerGroup_PRE_UPDATE
public final EventListenerGroup<PreUpdateEventListener> eventListenerGroup_PRE_UPDATE
-
eventListenerGroup_PRE_UPSERT
public final EventListenerGroup<PreUpsertEventListener> eventListenerGroup_PRE_UPSERT
-
eventListenerGroup_REFRESH
public final EventListenerGroup<RefreshEventListener> eventListenerGroup_REFRESH
-
eventListenerGroup_REPLICATE
public final EventListenerGroup<ReplicateEventListener> eventListenerGroup_REPLICATE
-
eventListenerGroup_RESOLVE_NATURAL_ID
public final EventListenerGroup<ResolveNaturalIdEventListener> eventListenerGroup_RESOLVE_NATURAL_ID
-
eventListenerGroup_SAVE
public final EventListenerGroup<SaveOrUpdateEventListener> eventListenerGroup_SAVE
-
eventListenerGroup_SAVE_UPDATE
public final EventListenerGroup<SaveOrUpdateEventListener> eventListenerGroup_SAVE_UPDATE
-
eventListenerGroup_UPDATE
public final EventListenerGroup<SaveOrUpdateEventListener> eventListenerGroup_UPDATE
-
jdbcServices
public final JdbcServices jdbcServices
-
entityCopyObserverFactory
public final EntityCopyObserverFactory entityCopyObserverFactory
-
batchBuilder
public final BatchBuilder batchBuilder
-
dialect
public final Dialect dialect
-
parameterMarkerStrategy
public final ParameterMarkerStrategy parameterMarkerStrategy
-
-
Method Detail
-
getDefaultJdbcObserver
public ConnectionObserverStatsBridge getDefaultJdbcObserver()
-
getJdbcValuesMappingProducerProvider
public JdbcValuesMappingProducerProvider getJdbcValuesMappingProducerProvider()
-
getEventManager
public EventManager getEventManager()
-
useStreamForLobBinding
public boolean useStreamForLobBinding()
-
firePostLoadEvent
public void firePostLoadEvent(PostLoadEvent postLoadEvent)
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()
-
getDefaultTimeZoneStorageStrategy
@Deprecated(forRemoval=true) public TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getJsonFormatMapper
public FormatMapper getJsonFormatMapper()
-
getXmlFormatMapper
public FormatMapper getXmlFormatMapper()
-
getMutationExecutorService
@Deprecated(forRemoval=true) public MutationExecutorService getMutationExecutorService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-