Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPN-8570 Partially fix version dependant compatibility
* Mostly focused around the imcompatibilities between SessionImplementor (5.1) and SharedSessionContractImplementor (5.2). * Also focused on the TransactionCoordinator and related package refactoring from org.hibernate.resource.transaction to org.hibernate.resource.transaction.spi
- Loading branch information
Showing
60 changed files
with
1,206 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...e-commons/src/main/java/org/infinispan/hibernate/cache/commons/InternalRegionFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,35 @@ | |||
package org.infinispan.hibernate.cache.commons; | |||
|
|||
import org.hibernate.cache.spi.CacheDataDescription; | |||
import org.hibernate.cache.spi.CacheKeysFactory; | |||
import org.hibernate.cache.spi.CollectionRegion; | |||
import org.hibernate.cache.spi.EntityRegion; | |||
import org.hibernate.cache.spi.NaturalIdRegion; | |||
import org.hibernate.cache.spi.QueryResultsRegion; | |||
import org.infinispan.AdvancedCache; | |||
import org.infinispan.hibernate.cache.commons.impl.BaseRegion; | |||
|
|||
import javax.transaction.TransactionManager; | |||
|
|||
public interface InternalRegionFactory { | |||
|
|||
<T extends BaseRegion & CollectionRegion> T createCollectionRegion( | |||
AdvancedCache cache, String regionName, TransactionManager transactionManager, | |||
CacheDataDescription metadata, InfinispanRegionFactory regionFactory, | |||
CacheKeysFactory cacheKeysFactory); | |||
|
|||
<T extends BaseRegion & EntityRegion> T createEntityRegion( | |||
AdvancedCache cache, String regionName, TransactionManager transactionManager, | |||
CacheDataDescription metadata, InfinispanRegionFactory regionFactory, | |||
CacheKeysFactory cacheKeysFactory); | |||
|
|||
<T extends BaseRegion & NaturalIdRegion> T createNaturalIdRegion( | |||
AdvancedCache cache, String regionName, TransactionManager transactionManager, | |||
CacheDataDescription metadata, InfinispanRegionFactory regionFactory, | |||
CacheKeysFactory cacheKeysFactory); | |||
|
|||
<T extends BaseRegion & QueryResultsRegion> T createQueryResultsRegion( | |||
AdvancedCache cache, String regionName, TransactionManager transactionManager, | |||
InfinispanRegionFactory regionFactory); | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.