Home
last modified time | relevance | path

Searched refs:sessionHolder (Results 1 – 20 of 20) sorted by relevance

/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/
H A DSpringSessionSynchronization.java48 private final SessionHolder sessionHolder; field in SpringSessionSynchronization
68 SessionHolder sessionHolder, SessionFactory sessionFactory, in SpringSessionSynchronization() argument
71 this.sessionHolder = sessionHolder; in SpringSessionSynchronization()
103 session = this.sessionHolder.getSession(); in getCurrentSession()
169 if (this.sessionHolder.isEmpty()) { in beforeCompletion()
176 if (session != this.sessionHolder.getSession()) { in beforeCompletion()
204 Session session = this.sessionHolder.getSession(); in beforeCompletion()
205 if (this.sessionHolder.getPreviousFlushMode() != null) { in beforeCompletion()
226 Session session = this.sessionHolder.getSession(); in afterCompletion()
248 this.sessionHolder.getSession().clear(); in afterCompletion()
[all …]
H A DSessionFactoryUtils.java290 if (sessionHolder != null && !sessionHolder.isEmpty()) { in doGetSession()
344 if (holderToUse != sessionHolder) { in doGetSession()
515 if (sessionHolder != null && !sessionHolder.isEmpty()) { in getNewSession()
564 SessionHolder sessionHolder = in hasTransactionalSession() local
566 return (sessionHolder != null && !sessionHolder.isEmpty()); in hasTransactionalSession()
581 SessionHolder sessionHolder = in isSessionTransactional() local
583 return (sessionHolder != null && sessionHolder.containsSession(session)); in isSessionTransactional()
597 SessionHolder sessionHolder = in applyTransactionTimeout() local
599 if (sessionHolder != null && sessionHolder.hasTimeout()) { in applyTransactionTimeout()
614 SessionHolder sessionHolder = in applyTransactionTimeout() local
[all …]
H A DHibernateTransactionManager.java433 SessionHolder sessionHolder = in doGetTransaction() local
435 if (sessionHolder != null) { in doGetTransaction()
604 SessionHolder sessionHolder = in doSuspend() local
833 private SessionHolder sessionHolder; field in HibernateTransactionManager.HibernateTransactionObject
852 this.sessionHolder = sessionHolder; in setSessionHolder()
858 return this.sessionHolder; in getSessionHolder()
870 return (this.sessionHolder != null && this.sessionHolder.getTransaction() != null); in hasSpringManagedTransaction()
874 …return (this.sessionHolder != null && this.sessionHolder.getSession().getTransaction().isActive()); in hasHibernateManagedTransaction()
878 this.sessionHolder.setRollbackOnly(); in setRollbackOnly()
911 this.sessionHolder = sessionHolder; in SuspendedResourcesHolder()
[all …]
H A DHibernateInterceptor.java91 SessionHolder sessionHolder = in invoke() local
94 boolean existingTransaction = (sessionHolder != null && sessionHolder.containsSession(session)); in invoke()
99 if (sessionHolder != null) { in invoke()
100 sessionHolder.addSession(session); in invoke()
133 if (sessionHolder == null || sessionHolder.doesNotHoldNonDefaultSession()) { in invoke()
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.orm/src/main/java/org/springframework/orm/hibernate4/
H A DSpringSessionSynchronization.java38 private final SessionHolder sessionHolder; field in SpringSessionSynchronization
45 public SpringSessionSynchronization(SessionHolder sessionHolder, SessionFactory sessionFactory) { in SpringSessionSynchronization() argument
46 this.sessionHolder = sessionHolder; in SpringSessionSynchronization()
51 return this.sessionHolder.getSession(); in getCurrentSession()
69 TransactionSynchronizationManager.bindResource(this.sessionFactory, this.sessionHolder); in resume()
101 Session session = this.sessionHolder.getSession(); in beforeCompletion()
102 if (this.sessionHolder.getPreviousFlushMode() != null) { in beforeCompletion()
104 session.setFlushMode(this.sessionHolder.getPreviousFlushMode()); in beforeCompletion()
118 this.sessionHolder.getSession().clear(); in afterCompletion()
122 this.sessionHolder.setSynchronizedWithTransaction(false); in afterCompletion()
H A DHibernateTransactionManager.java286 SessionHolder sessionHolder = in doGetTransaction() local
288 if (sessionHolder != null) { in doGetTransaction()
448 SessionHolder sessionHolder = in doSuspend() local
616 private SessionHolder sessionHolder; field in HibernateTransactionManager.HibernateTransactionObject
635 this.sessionHolder = sessionHolder; in setSessionHolder()
641 return this.sessionHolder; in getSessionHolder()
653 return (this.sessionHolder != null && this.sessionHolder.getTransaction() != null); in hasSpringManagedTransaction()
657 …return (this.sessionHolder != null && this.sessionHolder.getSession().getTransaction().isActive()); in hasHibernateManagedTransaction()
661 this.sessionHolder.setRollbackOnly(); in setRollbackOnly()
695 this.sessionHolder = sessionHolder; in SuspendedResourcesHolder()
[all …]
H A DSpringSessionContext.java71 SessionHolder sessionHolder = (SessionHolder) value; in currentSession() local
72 Session session = sessionHolder.getSession(); in currentSession()
74 !sessionHolder.isSynchronizedWithTransaction()) { in currentSession()
76 new SpringSessionSynchronization(sessionHolder, this.sessionFactory)); in currentSession()
77 sessionHolder.setSynchronizedWithTransaction(true); in currentSession()
84 sessionHolder.setPreviousFlushMode(flushMode); in currentSession()
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/support/
H A DOpenSessionInViewInterceptor.java177 SessionHolder sessionHolder = in postHandle() local
181 flushIfNecessary(sessionHolder.getSession(), false); in postHandle()
210 SessionHolder sessionHolder = in afterCompletion() local
213 SessionFactoryUtils.closeSession(sessionHolder.getSession()); in afterCompletion()
H A DOpenSessionInViewFilter.java205 SessionHolder sessionHolder = in doFilterInternal() local
208 closeSession(sessionHolder.getSession(), sessionFactory); in doFilterInternal()
/dports/www/grails/grails-1.3.6/src/java/org/codehaus/groovy/grails/orm/hibernate/support/
H A DGrailsOpenSessionInViewInterceptor.java59 …SessionHolder sessionHolder = (SessionHolder)TransactionSynchronizationManager.getResource(session… in preHandle() local
60 Session session = sessionHolder.getSession(); in preHandle()
76 …SessionHolder sessionHolder = (SessionHolder)TransactionSynchronizationManager.getResource(getSess… in postHandle() local
77 Session session = sessionHolder.getSession(); in postHandle()
/dports/www/grails/grails-1.3.6/src/java/org/codehaus/groovy/grails/webflow/persistence/
H A DSessionAwareHibernateFlowExecutionListener.java120 …SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(localS… in obtainCurrentSession() local
121 if (sessionHolder != null) { in obtainCurrentSession()
122 flowScope.put(PERSISTENCE_CONTEXT_ATTRIBUTE, sessionHolder.getSession()); in obtainCurrentSession()
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.orm/src/main/java/org/springframework/orm/hibernate4/support/
H A DOpenSessionInViewFilter.java124 SessionHolder sessionHolder = in doFilterInternal() local
127 SessionFactoryUtils.closeSession(sessionHolder.getSession()); in doFilterInternal()
H A DOpenSessionInViewInterceptor.java139 SessionHolder sessionHolder = in afterCompletion() local
142 SessionFactoryUtils.closeSession(sessionHolder.getSession()); in afterCompletion()
/dports/java/springframework31/spring-framework-3.1.4.RELEASE/projects/org.springframework.orm/src/test/java/org/springframework/orm/hibernate3/
H A DHibernateTransactionManagerTests.java1285 SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sf); in testTransactionCommitWithPreBound()
1286 assertTrue("Has thread transaction", sessionHolder.getTransaction() != null); in testTransactionCommitWithPreBound()
1300 SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sf); in testTransactionCommitWithPreBound() local
1301 assertTrue("Hasn't thread transaction", sessionHolder.getTransaction() == null); in testTransactionCommitWithPreBound()
1377 assertEquals(tx1, sessionHolder.getTransaction()); in testTransactionRollbackWithPreBound()
1400 SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sf); in testTransactionRollbackWithPreBound() local
1401 assertTrue("Hasn't thread transaction", sessionHolder.getTransaction() == null); in testTransactionRollbackWithPreBound()
1402 assertTrue("Not marked rollback-only", !sessionHolder.isRollbackOnly()); in testTransactionRollbackWithPreBound()
1408 SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sf); in testTransactionRollbackWithPreBound()
1409 assertEquals(tx2, sessionHolder.getTransaction()); in testTransactionRollbackWithPreBound()
[all …]
H A DHibernateJtaTransactionTests.java1930 SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sf); in testJtaSessionSynchronizationWithRemoteTransaction() local
1931 assertTrue("Thread session holder empty", sessionHolder.isEmpty()); in testJtaSessionSynchronizationWithRemoteTransaction()
/dports/audio/carla/Carla-2.4.1/source/modules/juce_audio_devices/native/
H A Djuce_ios_Audio.cpp236 SharedResourcePointer<AudioSessionHolder> sessionHolder; member in juce::iOSAudioIODeviceType
262 sessionHolder->activeDevices.add (this); in Pimpl()
267 sessionHolder->activeDevices.removeFirstMatchingValue (this); in ~Pimpl()
1336 SharedResourcePointer<AudioSessionHolder> sessionHolder; member
1404 sessionHolder->activeDeviceTypes.add (this); in iOSAudioIODeviceType()
1409 sessionHolder->activeDeviceTypes.removeFirstMatchingValue (this); in ~iOSAudioIODeviceType()
/dports/devel/juce/JUCE-f37e9a1/modules/juce_audio_devices/native/
H A Djuce_ios_Audio.cpp236 SharedResourcePointer<AudioSessionHolder> sessionHolder; member in juce::iOSAudioIODeviceType
262 sessionHolder->activeDevices.add (this); in Pimpl()
267 sessionHolder->activeDevices.removeFirstMatchingValue (this); in ~Pimpl()
1336 SharedResourcePointer<AudioSessionHolder> sessionHolder; member
1404 sessionHolder->activeDeviceTypes.add (this); in iOSAudioIODeviceType()
1409 sessionHolder->activeDeviceTypes.removeFirstMatchingValue (this); in ~iOSAudioIODeviceType()
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_audio_devices/native/
H A Djuce_ios_Audio.cpp236 SharedResourcePointer<AudioSessionHolder> sessionHolder; member in juce::iOSAudioIODeviceType
262 sessionHolder->activeDevices.add (this); in Pimpl()
267 sessionHolder->activeDevices.removeFirstMatchingValue (this); in ~Pimpl()
1334 SharedResourcePointer<AudioSessionHolder> sessionHolder; member
1402 sessionHolder->activeDeviceTypes.add (this); in iOSAudioIODeviceType()
1407 sessionHolder->activeDeviceTypes.removeFirstMatchingValue (this); in ~iOSAudioIODeviceType()
/dports/www/grails/grails-1.3.6/src/java/org/codehaus/groovy/grails/orm/hibernate/
H A DGrailsHibernateTransactionManager.groovy36 transaction.sessionHolder.session.flushMode = FlushMode.MANUAL
/dports/www/grails/grails-1.3.6/src/java/org/codehaus/groovy/grails/plugins/orm/hibernate/
H A DHibernatePluginSupport.groovy513 … SessionHolder sessionHolder = TransactionSynchronizationManager.getResource(sessionFactory)
514 Session previousSession = sessionHolder?.session
518 if(sessionHolder == null) {
519 sessionHolder = new SessionHolder(session)
520 … TransactionSynchronizationManager.bindResource(sessionFactory, sessionHolder)
523 sessionHolder.addSession(session)
531 sessionHolder?.addSession(previousSession)