M
- The Java type of the produced mappingpublic interface Mapper<M>
Modifier and Type | Method and Description |
---|---|
void |
addIndexed(MappableTypeModel typeModel,
IndexManagerBuildingState<?> indexManagerBuildingState)
Add an indexed type to the mapping that will be
built . |
MappingImplementor<M> |
build()
Build the mapping based on the
indexed types
added so far. |
void |
closeOnFailure()
Close any allocated resource.
|
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)
typeModel
- A model of the type to be mappedindexManagerBuildingState
- The building state for the index to be mappedMappingImplementor<M> build() throws MappingAbortedException
indexed types
added so far.
May only be called once on a given object.
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.