private void removeClassesAlreadyManaged() { Set<Class<?>> remove = new HashSet<Class<?>>(); final IndexedTypeMap<DocumentBuilderContainedEntity> containedEntities = rootFactory.getDocumentBuildersContainedEntities(); final IndexedTypeMap<EntityIndexBinding> indexedEntities = rootFactory.getIndexBindings(); for ( Class<?> entity : classes ) { IndexedTypeIdentifier typeId = PojoIndexedTypeIdentifier.convertFromLegacy( entity ); if ( indexedEntities.containsKey( typeId ) || containedEntities.containsKey( typeId ) ) { remove.add( entity ); } } for ( Class<?> entity : remove ) { classes.remove( entity ); } }
private void removeClassesAlreadyManaged() { Set<Class<?>> remove = new HashSet<Class<?>>(); final IndexedTypeMap<DocumentBuilderContainedEntity> containedEntities = rootFactory.getDocumentBuildersContainedEntities(); final IndexedTypeMap<EntityIndexBinding> indexedEntities = rootFactory.getIndexBindings(); for ( Class<?> entity : classes ) { IndexedTypeIdentifier typeId = PojoIndexedTypeIdentifier.convertFromLegacy( entity ); if ( indexedEntities.containsKey( typeId ) || containedEntities.containsKey( typeId ) ) { remove.add( entity ); } } for ( Class<?> entity : remove ) { classes.remove( entity ); } }
private void verifyClassIsIndexed(SearchIntegrator searchIntegrator, Class<?> type) { assertTrue(searchIntegrator.getIndexBindings().containsKey(PojoIndexedTypeIdentifier.convertFromLegacy(type))); assertNotNull(searchIntegrator.getIndexManager(type.getName())); } }
private void verifyClassIsNotIndexed(SearchIntegrator searchIntegrator, Class<?> type) { assertFalse(searchIntegrator.getIndexBindings().containsKey(PojoIndexedTypeIdentifier.convertFromLegacy(type))); assertNull(searchIntegrator.getIndexManager(type.getName())); }
private void verifyClassIsNotIndexed(SearchIntegrator searchIntegrator, Class<?> type) { assertFalse(searchIntegrator.getIndexBindings().containsKey(PojoIndexedTypeIdentifier.convertFromLegacy(type))); assertNull(searchIntegrator.getIndexManager(type.getName())); }
private void verifyClassIsIndexed(SearchIntegrator searchIntegrator, Class<?> type) { assertTrue(searchIntegrator.getIndexBindings().containsKey(PojoIndexedTypeIdentifier.convertFromLegacy(type))); assertNotNull(searchIntegrator.getIndexManager(type.getName())); }