public class IncrementalSearchConfiguration extends SearchConfigurationBase
Constructor and Description |
---|
IncrementalSearchConfiguration(List<Class<?>> classes,
Properties properties,
SearchFactoryState factoryState) |
Modifier and Type | Method and Description |
---|---|
ClassLoaderService |
getClassLoaderService() |
Class<?> |
getClassMapping(String name)
Returns a
Class from a String parameter. |
Iterator<Class<?>> |
getClassMappings()
Returns an iterator over the list of indexed classes
|
InstanceInitializer |
getInstanceInitializer()
Returns the initializer to be used to initialize potentially lazy entities or collections.
|
SearchMapping |
getProgrammaticMapping() |
Properties |
getProperties()
Gets properties as a java.util.Properties object.
|
String |
getProperty(String propertyName)
Gets a configuration property from its name
or null if not present
|
Map<Class<? extends Service>,Object> |
getProvidedServices()
Return the provided services.
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
Returns a reflection manager if already available in the environment
null otherwise
|
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.
|
isJPAAnnotationsProcessingEnabled, isMultitenancyEnabled
public IncrementalSearchConfiguration(List<Class<?>> classes, Properties properties, SearchFactoryState factoryState)
public Iterator<Class<?>> getClassMappings()
SearchConfiguration
public Class<?> getClassMapping(String name)
SearchConfiguration
Class
from a String parameter.name
- the class name as stringpublic String getProperty(String propertyName)
SearchConfiguration
propertyName
- - as a String.public Properties getProperties()
SearchConfiguration
object
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
SearchConfiguration
public SearchMapping getProgrammaticMapping()
null
public Map<Class<? extends Service>,Object> getProvidedServices()
SearchConfiguration
public boolean isTransactionManagerExpected()
SearchConfigurationBase
In most cases it is safest to default to true
.
isTransactionManagerExpected
in interface SearchConfiguration
isTransactionManagerExpected
in class SearchConfigurationBase
false
Search will avoid logging such warnings.public InstanceInitializer getInstanceInitializer()
SearchConfiguration
getInstanceInitializer
in interface SearchConfiguration
getInstanceInitializer
in class SearchConfigurationBase
public boolean isIndexMetadataComplete()
SearchConfigurationBase
In most cases it is safest to default to false
.
isIndexMetadataComplete
in interface SearchConfiguration
isIndexMetadataComplete
in class SearchConfigurationBase
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
isDeleteByTermEnforced
in class SearchConfigurationBase
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 boolean isIdProvidedImplicit()
isIdProvidedImplicit
in interface SearchConfiguration
isIdProvidedImplicit
in class SearchConfigurationBase
true
if we should treat indexed entities as implicitly annotated
with a ProvidedId
, if no other Id is specified.public ClassLoaderService getClassLoaderService()
ServiceManager
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved