public abstract class SearchConfigurationBase extends Object implements SearchConfiguration
SearchConfiguration
interface,
in that case we can add default implementations here to avoid breaking
integration code.Constructor and Description |
---|
SearchConfigurationBase() |
Modifier and Type | Method and Description |
---|---|
InstanceInitializer |
getInstanceInitializer()
Returns the initializer to be used to initialize potentially lazy entities or collections.
|
boolean |
isDeleteByTermEnforced() |
boolean |
isIdProvidedImplicit() |
boolean |
isIndexMetadataComplete() |
boolean |
isTransactionManagerExpected()
By default Hibernate Search expects to execute in the context of a transaction,
and will log warning when certain operations are executed out of such a scope.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassLoaderService, getClassMapping, getClassMappings, getProgrammaticMapping, getProperties, getProperty, getProvidedServices, getReflectionManager
public boolean isTransactionManagerExpected()
In most cases it is safest to default to true
.
isTransactionManagerExpected
in interface SearchConfiguration
false
Search will avoid logging such warnings.public boolean isIndexMetadataComplete()
In most cases it is safest to default to false
.
isIndexMetadataComplete
in interface SearchConfiguration
true
if it is safe to assume that the information we have about
index metadata is accurate. This should be set to false for example if the index
could contain Documents related to types not known to this SearchFactory instance.public boolean isDeleteByTermEnforced()
isDeleteByTermEnforced
in interface SearchConfiguration
true
if regardless of isIndexMetadataComplete
and the number
of types present in the index it is safe to delete by term given that the underlying
store guarantees uniqueness of idspublic InstanceInitializer getInstanceInitializer()
SearchConfiguration
getInstanceInitializer
in interface SearchConfiguration
public boolean isIdProvidedImplicit()
isIdProvidedImplicit
in interface SearchConfiguration
true
if we should treat indexed entities as implicitly annotated
with a ProvidedId
, if no other Id is specified.Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved