Interface EntityConverter
public interface EntityConverter
Can convert an entity before indexing it.
- Author:
- Fabio Massimo Ercoli
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The result of an entity conversion -
Method Summary
Modifier and TypeMethodDescriptionPerform the conversion.Set
<org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeIdentifier<?>> Class
<?> boolean
typeIsIndexed
(Class<?> type)
-
Method Details
-
targetType
Class<?> targetType()- Returns:
- The type that is supposed to be converted
-
convertedTypeIdentifiers
Set<org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeIdentifier<?>> convertedTypeIdentifiers()- Returns:
- The resulting converted type
-
typeIsIndexed
- Parameters:
type
- The type to check- Returns:
- Whether the type is supposed to be converted
-
convert
Perform the conversion.- Parameters:
entity
- The entity to convertprovidedId
- The id that could be used in the conversion process- Returns:
- The converted entity
-