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.
| Access | Constructor and Description |
|---|---|
| pack-priv | FastSessionServices(SessionFactoryImplementor sessionFactory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private static CacheRetrieveMode | |
| private static CacheStoreMode | |
| public void | |
| pack-priv CacheRetrieveMode | Returns: either the CacheRetrieveMode as defined in the Session specific properties, or as defined in the properties shared across all sessions (the defaults).the Session properties properties)
|
| pack-priv CacheStoreMode | Returns: either the CacheStoreMode as defined in the Session specific properties, or as defined in the properties shared across all sessions (the defaults).the Session properties properties)
|
| public ConnectionObserverStatsBridge | |
| public TimeZoneStorageStrategy | |
| public EventManager | |
| public JdbcValuesMappingProducerProvider | |
| public FormatMapper | |
| public MutationExecutorService | |
| public int | |
| public FormatMapper | |
| private static FlushMode | |
| private static LockOptions | |
| private static Map | initializeDefaultSessionProperties(SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private static boolean | isTransactionAccessible(SessionFactoryImplementor factory, TransactionCoordinatorBuilder transactionCoordinatorBuilder)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private static <T> EventListenerGroup | |
| public boolean |
| batchBuilder | back to summary |
|---|---|
| public final BatchBuilder batchBuilder | |
| classLoaderService | back to summary |
|---|---|
| pack-priv final ClassLoaderService classLoaderService | |
| connectionProvider | back to summary |
|---|---|
| pack-priv final ConnectionProvider connectionProvider | |
| defaultCacheRetrieveMode | back to summary |
|---|---|
| private final CacheRetrieveMode defaultCacheRetrieveMode | |
| defaultCacheStoreMode | back to summary |
|---|---|
| private final CacheStoreMode defaultCacheStoreMode | |
| defaultJdbcBatchSize | back to summary |
|---|---|
| pack-priv final int defaultJdbcBatchSize | |
| defaultJdbcObservers | back to summary |
|---|---|
| private final ConnectionObserverStatsBridge defaultJdbcObservers | |
| defaultLockOptions | back to summary |
|---|---|
| pack-priv final LockOptions defaultLockOptions | |
| defaultSessionEventListeners | back to summary |
|---|---|
| pack-priv final BaselineSessionEventsListenerBuilder defaultSessionEventListeners | |
| defaultSessionProperties | back to summary |
|---|---|
| pack-priv final Map<String, Object> defaultSessionProperties Default session properties | |
| defaultTimeZoneStorageStrategy | back to summary |
|---|---|
| pack-priv final TimeZoneStorageStrategy defaultTimeZoneStorageStrategy | |
| dialect | back to summary |
|---|---|
| public final Dialect dialect | |
| disallowOutOfTransactionUpdateOperations | back to summary |
|---|---|
| pack-priv final boolean disallowOutOfTransactionUpdateOperations | |
| discardOnClose | back to summary |
|---|---|
| pack-priv final boolean discardOnClose | |
| entityCopyObserverFactory | back to summary |
|---|---|
| public final EntityCopyObserverFactory entityCopyObserverFactory | |
| eventListenerGroup_AUTO_FLUSH | back to summary |
|---|---|
| public final EventListenerGroup<AutoFlushEventListener> eventListenerGroup_AUTO_FLUSH | |
| eventListenerGroup_CLEAR | back to summary |
|---|---|
| public final EventListenerGroup<ClearEventListener> eventListenerGroup_CLEAR | |
| eventListenerGroup_DELETE | back to summary |
|---|---|
| public final EventListenerGroup<DeleteEventListener> eventListenerGroup_DELETE | |
| eventListenerGroup_DIRTY_CHECK | back to summary |
|---|---|
| public final EventListenerGroup<DirtyCheckEventListener> eventListenerGroup_DIRTY_CHECK | |
| eventListenerGroup_EVICT | back to summary |
|---|---|
| public final EventListenerGroup<EvictEventListener> eventListenerGroup_EVICT | |
| eventListenerGroup_FLUSH | back to summary |
|---|---|
| public final EventListenerGroup<FlushEventListener> eventListenerGroup_FLUSH | |
| eventListenerGroup_FLUSH_ENTITY | back to summary |
|---|---|
| public final EventListenerGroup<FlushEntityEventListener> eventListenerGroup_FLUSH_ENTITY | |
| eventListenerGroup_INIT_COLLECTION | back to summary |
|---|---|
| public final EventListenerGroup<InitializeCollectionEventListener> eventListenerGroup_INIT_COLLECTION | |
| eventListenerGroup_LOAD | back to summary |
|---|---|
| public final EventListenerGroup<LoadEventListener> eventListenerGroup_LOAD | |
| eventListenerGroup_LOCK | back to summary |
|---|---|
| public final EventListenerGroup<LockEventListener> eventListenerGroup_LOCK | |
| eventListenerGroup_MERGE | back to summary |
|---|---|
| public final EventListenerGroup<MergeEventListener> eventListenerGroup_MERGE | |
| eventListenerGroup_PERSIST | back to summary |
|---|---|
| public final EventListenerGroup<PersistEventListener> eventListenerGroup_PERSIST | |
| eventListenerGroup_PERSIST_ONFLUSH | back to summary |
|---|---|
| public final EventListenerGroup<PersistEventListener> eventListenerGroup_PERSIST_ONFLUSH | |
| eventListenerGroup_POST_COLLECTION_RECREATE | back to summary |
|---|---|
| public final EventListenerGroup<PostCollectionRecreateEventListener> eventListenerGroup_POST_COLLECTION_RECREATE | |
| eventListenerGroup_POST_COLLECTION_REMOVE | back to summary |
|---|---|
| public final EventListenerGroup<PostCollectionRemoveEventListener> eventListenerGroup_POST_COLLECTION_REMOVE | |
| eventListenerGroup_POST_COLLECTION_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<PostCollectionUpdateEventListener> eventListenerGroup_POST_COLLECTION_UPDATE | |
| eventListenerGroup_POST_COMMIT_DELETE | back to summary |
|---|---|
| public final EventListenerGroup<PostDeleteEventListener> eventListenerGroup_POST_COMMIT_DELETE | |
| eventListenerGroup_POST_COMMIT_INSERT | back to summary |
|---|---|
| public final EventListenerGroup<PostInsertEventListener> eventListenerGroup_POST_COMMIT_INSERT | |
| eventListenerGroup_POST_COMMIT_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<PostUpdateEventListener> eventListenerGroup_POST_COMMIT_UPDATE | |
| eventListenerGroup_POST_DELETE | back to summary |
|---|---|
| public final EventListenerGroup<PostDeleteEventListener> eventListenerGroup_POST_DELETE | |
| eventListenerGroup_POST_INSERT | back to summary |
|---|---|
| public final EventListenerGroup<PostInsertEventListener> eventListenerGroup_POST_INSERT | |
| eventListenerGroup_POST_LOAD | back to summary |
|---|---|
| public final EventListenerGroup<PostLoadEventListener> eventListenerGroup_POST_LOAD | |
| eventListenerGroup_POST_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<PostUpdateEventListener> eventListenerGroup_POST_UPDATE | |
| eventListenerGroup_PRE_COLLECTION_RECREATE | back to summary |
|---|---|
| public final EventListenerGroup<PreCollectionRecreateEventListener> eventListenerGroup_PRE_COLLECTION_RECREATE | |
| eventListenerGroup_PRE_COLLECTION_REMOVE | back to summary |
|---|---|
| public final EventListenerGroup<PreCollectionRemoveEventListener> eventListenerGroup_PRE_COLLECTION_REMOVE | |
| eventListenerGroup_PRE_COLLECTION_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<PreCollectionUpdateEventListener> eventListenerGroup_PRE_COLLECTION_UPDATE | |
| eventListenerGroup_PRE_DELETE | back to summary |
|---|---|
| public final EventListenerGroup<PreDeleteEventListener> eventListenerGroup_PRE_DELETE | |
| eventListenerGroup_PRE_INSERT | back to summary |
|---|---|
| public final EventListenerGroup<PreInsertEventListener> eventListenerGroup_PRE_INSERT | |
| eventListenerGroup_PRE_LOAD | back to summary |
|---|---|
| public final EventListenerGroup<PreLoadEventListener> eventListenerGroup_PRE_LOAD | |
| eventListenerGroup_PRE_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<PreUpdateEventListener> eventListenerGroup_PRE_UPDATE | |
| eventListenerGroup_REFRESH | back to summary |
|---|---|
| public final EventListenerGroup<RefreshEventListener> eventListenerGroup_REFRESH | |
| eventListenerGroup_REPLICATE | back to summary |
|---|---|
| public final EventListenerGroup<ReplicateEventListener> eventListenerGroup_REPLICATE | |
| eventListenerGroup_RESOLVE_NATURAL_ID | back to summary |
|---|---|
| public final EventListenerGroup<ResolveNaturalIdEventListener> eventListenerGroup_RESOLVE_NATURAL_ID | |
| eventListenerGroup_SAVE | back to summary |
|---|---|
| public final EventListenerGroup<SaveOrUpdateEventListener> eventListenerGroup_SAVE | |
| eventListenerGroup_SAVE_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<SaveOrUpdateEventListener> eventListenerGroup_SAVE_UPDATE | |
| eventListenerGroup_UPDATE | back to summary |
|---|---|
| public final EventListenerGroup<SaveOrUpdateEventListener> eventListenerGroup_UPDATE | |
| eventManager | back to summary |
|---|---|
| private final EventManager eventManager | |
| initialSessionCacheMode | back to summary |
|---|---|
| pack-priv final CacheMode initialSessionCacheMode | |
| initialSessionFlushMode | back to summary |
|---|---|
| pack-priv final FlushMode initialSessionFlushMode | |
| isJtaTransactionAccessible | back to summary |
|---|---|
| pack-priv final boolean isJtaTransactionAccessible | |
| jdbcServices | back to summary |
|---|---|
| public final JdbcServices jdbcServices | |
| jdbcValuesMappingProducerProvider | back to summary |
|---|---|
| private final JdbcValuesMappingProducerProvider jdbcValuesMappingProducerProvider | |
| jsonFormatMapper | back to summary |
|---|---|
| private final FormatMapper jsonFormatMapper | |
| multiTenantConnectionProvider | back to summary |
|---|---|
| pack-priv final MultiTenantConnectionProvider<Object> multiTenantConnectionProvider | |
| mutationExecutorService | back to summary |
|---|---|
| private final MutationExecutorService mutationExecutorService | |
| parameterMarkerStrategy | back to summary |
|---|---|
| public final ParameterMarkerStrategy parameterMarkerStrategy | |
| preferredSqlTypeCodeForBoolean | back to summary |
|---|---|
| pack-priv final int preferredSqlTypeCodeForBoolean | |
| requiresMultiTenantConnectionProvider | back to summary |
|---|---|
| pack-priv final boolean requiresMultiTenantConnectionProvider | |
| transactionCoordinatorBuilder | back to summary |
|---|---|
| pack-priv final TransactionCoordinatorBuilder transactionCoordinatorBuilder | |
| useStreamForLobBinding | back to summary |
|---|---|
| pack-priv final boolean useStreamForLobBinding | |
| xmlFormatMapper | back to summary |
|---|---|
| private final FormatMapper xmlFormatMapper | |
| FastSessionServices | back to summary |
|---|---|
| pack-priv FastSessionServices(SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of | |
| determineCacheRetrieveMode | back to summary |
|---|---|
| private static CacheRetrieveMode determineCacheRetrieveMode(Map<String, Object> settings) | |
| determineCacheStoreMode | back to summary |
|---|---|
| private static CacheStoreMode determineCacheStoreMode(Map<String, Object> settings) | |
| firePostLoadEvent | back to summary |
|---|---|
| public void firePostLoadEvent(final PostLoadEvent postLoadEvent) | |
| getCacheRetrieveMode | back to summary |
|---|---|
pack-priv CacheRetrieveMode getCacheRetrieveMode(Map<String, Object> properties)
| |
| getCacheStoreMode | back to summary |
|---|---|
pack-priv CacheStoreMode getCacheStoreMode(final Map<String, Object> properties)
| |
| getDefaultJdbcObserver | back to summary |
|---|---|
| public ConnectionObserverStatsBridge getDefaultJdbcObserver() | |
| getDefaultTimeZoneStorageStrategy | back to summary |
|---|---|
| public TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy() | |
| getEventManager | back to summary |
|---|---|
| public EventManager getEventManager() | |
| getJdbcValuesMappingProducerProvider | back to summary |
|---|---|
| public JdbcValuesMappingProducerProvider getJdbcValuesMappingProducerProvider() | |
| getJsonFormatMapper | back to summary |
|---|---|
| public FormatMapper getJsonFormatMapper() | |
| getMutationExecutorService | back to summary |
|---|---|
| public MutationExecutorService getMutationExecutorService()
Deprecated
| |
| getPreferredSqlTypeCodeForBoolean | back to summary |
|---|---|
| public int getPreferredSqlTypeCodeForBoolean() | |
| getXmlFormatMapper | back to summary |
|---|---|
| public FormatMapper getXmlFormatMapper() | |
| initializeDefaultFlushMode | back to summary |
|---|---|
| private static FlushMode initializeDefaultFlushMode(Map<String, Object> defaultSessionProperties) | |
| initializeDefaultLockOptions | back to summary |
|---|---|
| private static LockOptions initializeDefaultLockOptions(final Map<String, Object> defaultSessionProperties) | |
| initializeDefaultSessionProperties | back to summary |
|---|---|
| private static Map Deprecated as a consequence of | |
| isTransactionAccessible | back to summary |
|---|---|
| private static boolean isTransactionAccessible(SessionFactoryImplementor factory, TransactionCoordinatorBuilder transactionCoordinatorBuilder)
Deprecated as a consequence of | |
| listeners | back to summary |
|---|---|
| private static <T> EventListenerGroup | |
| useStreamForLobBinding | back to summary |
|---|---|
| public boolean useStreamForLobBinding() | |