Class AbstractPojoTypeManager<I,E>
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.impl.AbstractPojoTypeManager<I,E>
- Type Parameters:
I- The identifier type for the entity type.E- The entity type.
- All Implemented Interfaces:
AutoCloseable,PojoLoadingTypeContext<E>,PojoWorkTypeContext<I,,E> ToStringTreeAppendable
- Direct Known Subclasses:
PojoContainedTypeManager,PojoIndexedTypeManager
public abstract class AbstractPojoTypeManager<I,E>
extends Object
implements AutoCloseable, ToStringTreeAppendable, PojoWorkTypeContext<I,E>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PojoCaster<E>protected final Stringprotected final IdentifierMappingImplementor<I,E> protected final PojoImplicitReindexingResolver<E>protected final Stringprotected final PojoRawTypeIdentifier<E> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPojoTypeManager(AbstractPojoTypeManager.Builder<E> builder, IdentifierMappingImplementor<I, E> identifierMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(ToStringTreeAppender appender) Appends information aboutthisto the givenappender.final List<PojoRawTypeIdentifier<? super E>>voidclose()booleaninthashCode()booleanfinal booleanClass<?>booleanPojoMassLoadingStrategy<? super E,?> Optional<PojoMassLoadingStrategy<? super E,?>> name()final voidresolveEntitiesToReindex(PojoReindexingCollector collector, PojoWorkSessionContext sessionContext, Object identifier, Supplier<E> entitySupplier, PojoImplicitReindexingResolverRootContext context) PojoSelectionLoadingStrategy<? super E>Optional<PojoSelectionLoadingStrategy<? super E>>toDocumentIdentifier(PojoWorkSessionContext sessionContext, I identifier) toEntitySupplier(PojoWorkSessionContext sessionContext, Object entity) final StringtoString()final PojoRawTypeIdentifier<E>Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
Field Details
-
typeIdentifier
-
caster
-
entityName
-
secondaryEntityName
-
identifierMapping
-
reindexingResolver
-
-
Constructor Details
-
AbstractPojoTypeManager
public AbstractPojoTypeManager(AbstractPojoTypeManager.Builder<E> builder, IdentifierMappingImplementor<I, E> identifierMapping)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
appendTo
Description copied from interface:ToStringTreeAppendableAppends information aboutthisto the givenappender.WARNING: This generally shouldn't be called directly, as
ToStringTreeAppenderwill automatically call this method forToStringTreeAppendablevalues passed toToStringTreeAppender.attribute(String, Object)/ToStringTreeAppender.value(Object).Implementations should assume that calls to
ToStringTreeAppender.startObject()/ToStringTreeAppender.endObject()forthisare handled by the caller.- Specified by:
appendToin interfaceToStringTreeAppendable- Parameters:
appender- AToStringTreeAppender.
-
typeIdentifier
- Specified by:
typeIdentifierin interfacePojoLoadingTypeContext<I>
-
ascendingSuperTypes
- Specified by:
ascendingSuperTypesin interfacePojoLoadingTypeContext<I>
-
asIndexed
- Specified by:
asIndexedin interfacePojoWorkTypeContext<I,E>
-
asContained
- Specified by:
asContainedin interfacePojoWorkTypeContext<I,E>
-
entityName
- Specified by:
entityNamein interfacePojoLoadingTypeContext<I>
-
secondaryEntityName
- Specified by:
secondaryEntityNamein interfacePojoLoadingTypeContext<I>
-
name
-
javaClass
-
loadingAvailable
public boolean loadingAvailable() -
isSingleConcreteTypeInEntityHierarchy
public final boolean isSingleConcreteTypeInEntityHierarchy()- Specified by:
isSingleConcreteTypeInEntityHierarchyin interfacePojoLoadingTypeContext<I>
-
identifierMapping
- Specified by:
identifierMappingin interfacePojoWorkTypeContext<I,E>
-
toDocumentIdentifier
- Specified by:
toDocumentIdentifierin interfacePojoWorkTypeContext<I,E>
-
pathOrdinals
- Specified by:
pathOrdinalsin interfacePojoWorkTypeContext<I,E>
-
reindexingResolver
- Specified by:
reindexingResolverin interfacePojoWorkTypeContext<I,E>
-
toEntity
- Specified by:
toEntityin interfacePojoWorkTypeContext<I,E>
-
toEntitySupplier
- Specified by:
toEntitySupplierin interfacePojoWorkTypeContext<I,E>
-
resolveEntitiesToReindex
public final void resolveEntitiesToReindex(PojoReindexingCollector collector, PojoWorkSessionContext sessionContext, Object identifier, Supplier<E> entitySupplier, PojoImplicitReindexingResolverRootContext context) - Specified by:
resolveEntitiesToReindexin interfacePojoWorkTypeContext<I,E>
-
selectionLoadingStrategy
- Specified by:
selectionLoadingStrategyin interfacePojoLoadingTypeContext<I>
-
selectionLoadingStrategyOptional
- Specified by:
selectionLoadingStrategyOptionalin interfacePojoLoadingTypeContext<I>
-
massLoadingStrategy
- Specified by:
massLoadingStrategyin interfacePojoLoadingTypeContext<I>
-
massLoadingStrategyOptional
- Specified by:
massLoadingStrategyOptionalin interfacePojoLoadingTypeContext<I>
-
hasNonIndexedConcreteSubtypes
public boolean hasNonIndexedConcreteSubtypes()- Specified by:
hasNonIndexedConcreteSubtypesin interfacePojoLoadingTypeContext<I>
-