@Test public void testDelete() { MongoEntity entity = new MongoEntity("studentSectionAssociation", studentSectionAssociation); boolean result = denormalizer.denormalization("studentSectionAssociation").delete(entity, entity.getEntityId()); assertTrue(result); result = denormalizer.denormalization("studentSectionAssociation").delete(null, SSAID); assertTrue(result); result = denormalizer.denormalization("studentSectionAssociation").delete(null, "invalidID"); assertFalse(result); }
public Denormalization denormalization(String docType) { return denormalizations.get(docType); }
Denormalizer { public Denormalization denormalization(String docType) { return denormalizations.get(docType); } }
Denormalizer { public Denormalization denormalization(String docType) { return denormalizations.get(docType); } Denormalizer(MongoTemplate template); }
Denormalizer { public Denormalization denormalization(String docType) { return denormalizations.get(docType); } Denormalizer(MongoTemplate template); DenormalizationBuilder denormalize(String type); boolean isDenormalizedDoc(String docType); Denormalization denormalization(String docType); boolean isCached(String docType); void addToCache(List<Entity> entityList, String collectionName); }
Denormalizer { public Denormalization denormalization(String docType) { return denormalizations.get(docType); } Denormalizer(MongoTemplate template); DenormalizationBuilder denormalize(String type); boolean isDenormalizedDoc(String docType); Denormalization denormalization(String docType); boolean isCached(String docType); void addToCache(List<Entity> entityList, String collectionName);  }