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
Constructors Constructor Description UnmappedPropertyIdentifierMapping(PojoRawTypeIdentifier<E> typeIdentifier, PojoCaster<? super I> caster, ValueReadHandle<I> property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()IfromDocumentIdentifier(String documentId, BridgeSessionContext sessionContext)IgetIdentifier(Object providedId, Supplier<? extends E> entitySupplierOrNull)IgetIdentifierOrNull(E entity)StringtoDocumentIdentifier(Object identifier, BridgeMappingContext context)StringtoString()
-
-
-
Constructor Detail
-
UnmappedPropertyIdentifierMapping
public UnmappedPropertyIdentifierMapping(PojoRawTypeIdentifier<E> typeIdentifier, PojoCaster<? super I> caster, ValueReadHandle<I> property)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIdentifierMappingImplementor<I,E>
-
getIdentifier
public I getIdentifier(Object providedId, Supplier<? extends E> entitySupplierOrNull)
- Specified by:
getIdentifierin interfaceIdentifierMappingImplementor<I,E>
-
getIdentifierOrNull
public I getIdentifierOrNull(E entity)
- Specified by:
getIdentifierOrNullin interfaceIdentifierMappingImplementor<I,E>
-
toDocumentIdentifier
public String toDocumentIdentifier(Object identifier, BridgeMappingContext context)
- Specified by:
toDocumentIdentifierin interfaceIdentifierMappingImplementor<I,E>
-
fromDocumentIdentifier
public I fromDocumentIdentifier(String documentId, BridgeSessionContext sessionContext)
- Specified by:
fromDocumentIdentifierin interfaceIdentifierMapping- Specified by:
fromDocumentIdentifierin interfaceIdentifierMappingImplementor<I,E>
-
-