public class DocumentBuilderContainedEntity extends AbstractDocumentBuilder
@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(String tenantId,
Class<?> entityClass,
Object 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, appendContainedInWorkForInstance, close, collectionChangeRequiresIndexUpdate, forceStateInspectionOptimizationsDisabled, getAnalyzerReference, getBeanClass, getBeanXClass, getEntityState, getInstanceInitializer, getMappedSubclasses, getMetadata, getTypeMetadata, isDirty, isIdMatchingJpaId, isRoot, postInitialize, requiresProvidedId, toString
public 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 annotationsoptimizationBlackList
- mutable register, keeps track of types on which we need to disable collection events optimizationsinstanceInitializer
- a InstanceInitializer
objectpublic void addWorkToQueue(String tenantId, Class<?> entityClass, Object entity, Serializable id, boolean delete, boolean add, List<LuceneWork> queue, ConversionContext contextualBridge)
addWorkToQueue
in class AbstractDocumentBuilder
public Serializable getId(Object entity)
AbstractDocumentBuilder
getId
in class AbstractDocumentBuilder
entity
- the instance for which to retrieve the idCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved