org.hibernate.search.engine.spi
public class DocumentBuilderContainedEntity<T> extends AbstractDocumentBuilder<T>
@IndexedEmbedded, but themselves do not
contain the @Indexed annotation.entityState| Constructor and Description |
|---|
DocumentBuilderContainedEntity(org.hibernate.annotations.common.reflection.XClass xClass,
TypeMetadata typeMetadata,
org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager,
Set<org.hibernate.annotations.common.reflection.XClass> optimizationBlackList,
InstanceInitializer instanceInitializer)
Constructor used on contained entities not annotated with
@Indexed themselves. |
| Modifier and Type | Method and Description |
|---|---|
void |
addWorkToQueue(Class<T> entityClass,
T entity,
Serializable id,
boolean delete,
boolean add,
List<LuceneWork> queue,
ConversionContext contextualBridge) |
Serializable |
getId(Object entity)
In case of an indexed entity, return the value of it's identifier: what is marked as @Id or @DocumentId;
in case the entity uses @ProvidedId, it's illegal to call this method.
|
appendContainedInWorkForInstance, close, collectionChangeRequiresIndexUpdate, forceStateInspectionOptimizationsDisabled, getAnalyzer, getBeanClass, getBeanXClass, getEntityState, getInstanceInitializer, getMappedSubclasses, getMetadata, getTypeMetadata, isCollectionRoleExcluded, isDirty, isIdMatchingJpaId, isRoot, postInitialize, requiresProvidedId, toStringpublic DocumentBuilderContainedEntity(org.hibernate.annotations.common.reflection.XClass xClass, TypeMetadata typeMetadata, org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager, Set<org.hibernate.annotations.common.reflection.XClass> optimizationBlackList, InstanceInitializer instanceInitializer)
@Indexed themselves.xClass - The class for which to build a DocumentBuilderContainedEntity.typeMetadata - metadata for the given typereflectionManager - Reflection manager to use for processing the annotations.optimizationBlackList - mutable register, keeps track of types on which we need to disable collection events optimizationsinstanceInitializer - a InstanceInitializer object.public void addWorkToQueue(Class<T> entityClass, T entity, Serializable id, boolean delete, boolean add, List<LuceneWork> queue, ConversionContext contextualBridge)
addWorkToQueue in class AbstractDocumentBuilder<T>public Serializable getId(Object entity)
AbstractDocumentBuildergetId in class AbstractDocumentBuilder<T>entity - the instance for which to retrieve the idCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved