/** * If we have a work instance we have to check whether the instance to be indexed is contained in any other indexed entities. * * @see #appendContainedInWorkForInstance(Object, WorkPlan, ContainedInRecursionContext, String) * @param instance the instance to be indexed * @param workPlan the current work plan * @param currentRecursionContext the current {@link org.hibernate.search.engine.spi.ContainedInRecursionContext} object used to check the graph traversal */ public void appendContainedInWorkForInstance(Object instance, WorkPlan workPlan, ContainedInRecursionContext currentRecursionContext) { appendContainedInWorkForInstance( instance, workPlan, currentRecursionContext, null ); }
/** * If we have a work instance we have to check whether the instance to be indexed is contained in any other indexed entities. * * @see #appendContainedInWorkForInstance(Object, WorkPlan, ContainedInRecursionContext, String) * @param instance the instance to be indexed * @param workPlan the current work plan * @param currentRecursionContext the current {@link org.hibernate.search.engine.spi.ContainedInRecursionContext} object used to check the graph traversal */ public void appendContainedInWorkForInstance(Object instance, WorkPlan workPlan, ContainedInRecursionContext currentRecursionContext) { appendContainedInWorkForInstance( instance, workPlan, currentRecursionContext, null ); }
/** * Works via recursion passing the WorkPlan over, so that additional work can be planned * according to the needs of ContainedIn processing. * * @param entityBuilder the DocumentBuilder for this type * @param workplan the current WorkPlan, used for recursion * * @see org.hibernate.search.annotations.ContainedIn */ public void processContainedIn(AbstractDocumentBuilder entityBuilder, WorkPlan workplan) { if ( entity != null && !containedInProcessed ) { containedInProcessed = true; if ( add || delete ) { entityBuilder.appendContainedInWorkForInstance( entity, workplan, null, getTenantIdentifier() ); } } }
/** * Works via recursion passing the WorkPlan over, so that additional work can be planned * according to the needs of ContainedIn processing. * * @param entityBuilder the DocumentBuilder for this type * @param workplan the current WorkPlan, used for recursion * * @see org.hibernate.search.annotations.ContainedIn */ public void processContainedIn(AbstractDocumentBuilder entityBuilder, WorkPlan workplan) { if ( entity != null && !containedInProcessed ) { containedInProcessed = true; if ( add || delete ) { entityBuilder.appendContainedInWorkForInstance( entity, workplan, null, getTenantIdentifier() ); } } }
documentBuilder.appendContainedInWorkForInstance( value, WorkPlan.this, context ); documentBuilder.appendContainedInWorkForInstance( value, WorkPlan.this, context );
documentBuilder.appendContainedInWorkForInstance( value, WorkPlan.this, context ); documentBuilder.appendContainedInWorkForInstance( value, WorkPlan.this, context );