public interface IdUniquenessResolver extends Service
Service
can be provided by the
SearchConfiguration
implementor when it has such knowledge.
If no IdUniquenessResolver
is enlisted as provided service, then it is assumed
that uniqueness cannot be guaranteed.
This contract is used by Hibernate Search to decide whether it can optimize delete operations
on a given index or not.Modifier and Type | Method and Description |
---|---|
boolean |
areIdsUniqueForClasses(IndexedTypeIdentifier firstEntity,
IndexedTypeIdentifier secondEntity)
Returns
true if the same identifier value cannot be shared between
two class instances of entityInIndex and otherEntityInIndex . |
boolean areIdsUniqueForClasses(IndexedTypeIdentifier firstEntity, IndexedTypeIdentifier secondEntity)
true
if the same identifier value cannot be shared between
two class instances of entityInIndex
and otherEntityInIndex
.firstEntity
- one entity typesecondEntity
- the other entity typetrue
if the same identifier value cannot be share between
two class instances of entityInIndex
and otherEntityInIndex
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.