MPBS - The Java type of the partial build state of the produced mapping.public interface Mapper<MPBS extends MappingPartialBuildState>
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexed(MappableTypeModel typeModel,
IndexManagerBuildingState<?> indexManagerBuildingState)
Add an indexed type to the mapping that will be
built. |
void |
closeOnFailure()
Close any allocated resource.
|
MPBS |
prepareBuild()
Partially build the mapping based on the
indexed types
added so far. |
void closeOnFailure()
This method is called when an error occurs while starting up Hibernate Search. When this method is called, it is guaranteed to be the last call on the mapper.
void addIndexed(MappableTypeModel typeModel, IndexManagerBuildingState<?> indexManagerBuildingState)
built.
Never called after prepareBuild().
typeModel - A model of the type to be mappedindexManagerBuildingState - The building state for the index to be mappedMPBS prepareBuild() throws MappingAbortedException
indexed types
added so far.
May only be called once on a given object.
The
MappingAbortedException - When aborting the mapping due to
collected failures.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.