-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HSEARCH-3269 Expose batch mapping and session ctx
- Loading branch information
Showing
6 changed files
with
54 additions
and
3 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
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
17 changes: 17 additions & 0 deletions
17
mapper/orm/src/main/java/org/hibernate/search/mapper/orm/spi/BatchMappingContext.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.mapper.orm.spi; | ||
|
||
import javax.persistence.EntityManager; | ||
|
||
public interface BatchMappingContext { | ||
|
||
BatchTypeIdentifierProvider typeContextProvider(); | ||
|
||
BatchSessionContext sessionContext(EntityManager entityManager); | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
mapper/orm/src/main/java/org/hibernate/search/mapper/orm/spi/BatchSessionContext.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.mapper.orm.spi; | ||
|
||
import org.hibernate.search.mapper.pojo.work.spi.PojoIndexer; | ||
|
||
public interface BatchSessionContext { | ||
|
||
PojoIndexer createIndexer(); | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...er/orm/src/main/java/org/hibernate/search/mapper/orm/spi/BatchTypeIdentifierProvider.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Hibernate Search, full-text search for your domain model | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.search.mapper.orm.spi; | ||
|
||
import org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeIdentifier; | ||
|
||
public interface BatchTypeIdentifierProvider { | ||
|
||
PojoRawTypeIdentifier<?> typeIdentifierForEntityName(String hibernateOrmEntityName); | ||
|
||
} |