@@ -150,7 +150,6 @@ public abstract class AbstractSharedSessionContract implements SharedSessionCont
150150 private transient SessionFactoryImpl factory ;
151151 private transient SessionFactoryOptions factoryOptions ;
152152 private transient JdbcServices jdbcServices ;
153- protected transient FastSessionServices fastSessionServices ;
154153
155154 private UUID sessionIdentifier ;
156155 private Object sessionToken ;
@@ -196,7 +195,6 @@ public AbstractSharedSessionContract(SessionFactoryImpl factory, SessionCreation
196195 this .factoryOptions = factory .getSessionFactoryOptions ();
197196 this .jdbcServices = factory .getJdbcServices ();
198197
199- fastSessionServices = factory .getFastSessionServices ();
200198 cacheTransactionSync = factory .getCache ().getRegionFactory ().createTransactionContext ( this );
201199 flushMode = options .getInitialSessionFlushMode ();
202200 tenantIdentifier = getTenantId ( factoryOptions , options );
@@ -234,7 +232,7 @@ public AbstractSharedSessionContract(SessionFactoryImpl factory, SessionCreation
234232 // This must happen *after* the JdbcSessionContext was initialized,
235233 // because some calls retrieve this context indirectly via Session getters.
236234 jdbcCoordinator = createJdbcCoordinator ( options );
237- transactionCoordinator = fastSessionServices . getTransactionCoordinatorBuilder ()
235+ transactionCoordinator = factory . transactionCoordinatorBuilder
238236 .buildTransactionCoordinator ( jdbcCoordinator , this );
239237 }
240238 }
@@ -286,7 +284,7 @@ private JdbcSessionContextImpl createJdbcSessionContext(StatementInspector state
286284 statementInspector ,
287285 connectionHandlingMode ,
288286 getJdbcServices (),
289- fastSessionServices . getBatchBuilder () ,
287+ factory . batchBuilder ,
290288 // TODO: this object is deprecated and should be removed
291289 new JdbcEventHandler (
292290 factory .getStatistics (),
@@ -575,7 +573,7 @@ private boolean isTransactionAccessible() {
575573 final SessionFactoryOptions sessionFactoryOptions = getSessionFactoryOptions ();
576574 return sessionFactoryOptions .isJtaTransactionAccessEnabled () // defaults to false in JPA bootstrap
577575 || !sessionFactoryOptions .getJpaCompliance ().isJpaTransactionComplianceEnabled ()
578- || !fastSessionServices . getTransactionCoordinatorBuilder () .isJta ();
576+ || !factory . transactionCoordinatorBuilder .isJta ();
579577 }
580578
581579 @ Override
@@ -698,15 +696,15 @@ public JdbcConnectionAccess getJdbcConnectionAccess() {
698696 if ( !getSessionFactoryOptions ().isMultiTenancyEnabled () ) {
699697 jdbcConnectionAccess = new NonContextualJdbcConnectionAccess (
700698 getEventListenerManager (),
701- fastSessionServices . getConnectionProvider () ,
699+ factory . connectionProvider ,
702700 this
703701 );
704702 }
705703 else {
706704 jdbcConnectionAccess = new ContextualJdbcConnectionAccess (
707705 getTenantIdentifierValue (),
708706 getEventListenerManager (),
709- fastSessionServices . getMultiTenantConnectionProvider () ,
707+ factory . multiTenantConnectionProvider ,
710708 this
711709 );
712710 }
@@ -1449,7 +1447,7 @@ public void setJdbcBatchSize(Integer jdbcBatchSize) {
14491447
14501448 @ Override
14511449 public EventMonitor getEventMonitor () {
1452- return fastSessionServices . getEventMonitor () ;
1450+ return factory . eventMonitor ;
14531451 }
14541452
14551453 @ Override
@@ -1650,7 +1648,6 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound
16501648 factory = SessionFactoryImpl .deserialize ( ois );
16511649 factoryOptions = factory .getSessionFactoryOptions ();
16521650 jdbcServices = factory .getJdbcServices ();
1653- fastSessionServices = factory .getFastSessionServices ();
16541651
16551652 //TODO: this isn't quite right, see createSessionEventsManager()
16561653 final SessionEventListener [] baseline =
@@ -1663,8 +1660,7 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound
16631660
16641661 cacheTransactionSync = factory .getCache ().getRegionFactory ().createTransactionContext ( this );
16651662 transactionCoordinator =
1666- fastSessionServices .getTransactionCoordinatorBuilder ()
1667- .buildTransactionCoordinator ( jdbcCoordinator , this );
1663+ factory .transactionCoordinatorBuilder .buildTransactionCoordinator ( jdbcCoordinator , this );
16681664
16691665 entityNameResolver = new CoordinatingEntityNameResolver ( factory , interceptor );
16701666 }
0 commit comments