@Test public void testUnregisterEntityType() { entityTypeRegistryImpl.unregisterEntityType(entityType); assertNull( entityTypeRegistryImpl.getEntityTypeDescription( "org_molgenis_test_many_packages_deep#2409e1c6")); assertNull( entityTypeRegistryImpl.getEntityTypeDescription( "org_molgenis_test_many#2409e1c6_xref_attribute_with_a_long_name")); assertNull( entityTypeRegistryImpl.getEntityTypeDescription("org_molgenis_test_many#2409e1c6_mref")); }
@Override public void unregisterEntityType(EntityType entityType) { Iterable<Attribute> attributes = entityType.getAtomicAttributes(); registerTableNames(getTableNames(entityType, stream(attributes)), null); }
EntityTypeRegistryImpl implements EntityTypeRegistry, TransactionListener { @Override public void unregisterEntityType(EntityType entityType) { Iterable<Attribute> attributes = entityType.getAtomicAttributes(); registerTableNames(getTableNames(entityType, stream(attributes)), null); } }
EntityTypeRegistryImpl implements EntityTypeRegistry, TransactionListener { @Override public void unregisterEntityType(EntityType entityType) { Iterable<Attribute> attributes = entityType.getAtomicAttributes(); registerTableNames(getTableNames(entityType, stream(attributes)), null); } EntityTypeRegistryImpl(TransactionManager transactionManager); }
EntityTypeRegistryImpl implements EntityTypeRegistry, TransactionListener { @Override public void unregisterEntityType(EntityType entityType) { Iterable<Attribute> attributes = entityType.getAtomicAttributes(); registerTableNames(getTableNames(entityType, stream(attributes)), null); } EntityTypeRegistryImpl(TransactionManager transactionManager); @Override void registerEntityType(EntityType entityType); @Override void unregisterEntityType(EntityType entityType); @Override void addAttribute(EntityType entityType, Attribute attribute); @Override void updateAttribute(EntityType entityType, Attribute attr, Attribute updatedAttr); @Override void deleteAttribute(EntityType entityType, Attribute attr); @Override EntityTypeDescription getEntityTypeDescription(String tableName); @Override void afterCommitTransaction(String transactionId); @Override void rollbackTransaction(String transactionId); }
EntityTypeRegistryImpl implements EntityTypeRegistry, TransactionListener { @Override public void unregisterEntityType(EntityType entityType) { Iterable<Attribute> attributes = entityType.getAtomicAttributes(); registerTableNames(getTableNames(entityType, stream(attributes)), null); } EntityTypeRegistryImpl(TransactionManager transactionManager); @Override void registerEntityType(EntityType entityType); @Override void unregisterEntityType(EntityType entityType); @Override void addAttribute(EntityType entityType, Attribute attribute); @Override void updateAttribute(EntityType entityType, Attribute attr, Attribute updatedAttr); @Override void deleteAttribute(EntityType entityType, Attribute attr); @Override EntityTypeDescription getEntityTypeDescription(String tableName); @Override void afterCommitTransaction(String transactionId); @Override void rollbackTransaction(String transactionId);  }