Class UnmappedPropertyIdentifierMapping<I,E>
java.lang.Object
org.hibernate.search.mapper.pojo.identity.impl.UnmappedPropertyIdentifierMapping<I,E>
- All Implemented Interfaces:
AutoCloseable,IdentifierMappingImplementor<I,,E> IdentifierMapping
public final class UnmappedPropertyIdentifierMapping<I,E>
extends Object
implements IdentifierMappingImplementor<I,E>
-
Constructor Summary
ConstructorsConstructorDescriptionUnmappedPropertyIdentifierMapping(PojoRawTypeIdentifier<E> typeIdentifier, PojoCaster<? super I> caster, ValueReadHandle<I> property) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()fromDocumentIdentifier(String documentId, BridgeSessionContext sessionContext) getIdentifier(Object providedId, Supplier<? extends E> entitySupplierOrNull) getIdentifierOrNull(E entity) toDocumentIdentifier(Object identifier, BridgeMappingContext context) toString()
-
Constructor Details
-
UnmappedPropertyIdentifierMapping
public UnmappedPropertyIdentifierMapping(PojoRawTypeIdentifier<E> typeIdentifier, PojoCaster<? super I> caster, ValueReadHandle<I> property)
-
-
Method Details
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIdentifierMappingImplementor<I,E>
-
getIdentifier
- Specified by:
getIdentifierin interfaceIdentifierMappingImplementor<I,E>
-
getIdentifierOrNull
- Specified by:
getIdentifierOrNullin interfaceIdentifierMappingImplementor<I,E>
-
toDocumentIdentifier
- Specified by:
toDocumentIdentifierin interfaceIdentifierMappingImplementor<I,E>
-
fromDocumentIdentifier
- Specified by:
fromDocumentIdentifierin interfaceIdentifierMapping- Specified by:
fromDocumentIdentifierin interfaceIdentifierMappingImplementor<I,E>
-