@Test public void testUnsetRelationsToEntitiesToBeDeleted() { config.setDbStack(new DBStack()); Set<DatabaseConfig> databases = new HashSet<>(); databases.add(new DatabaseConfig()); config.setDatabases(databases); config.unsetRelationsToEntitiesToBeDeleted(); assertFalse(config.getDbStack().isPresent()); assertTrue(config.getDatabases().isEmpty()); }
@Override public void unsetRelationsToEntitiesToBeDeleted() { dbStack = null; if (databases != null) { databases.clear(); } }
DatabaseServerConfig implements ArchivableResource, AccountIdAwareResource { @Override public void unsetRelationsToEntitiesToBeDeleted() { dbStack = null; if (databases != null) { databases.clear(); } } }
DatabaseServerConfig implements ArchivableResource, AccountIdAwareResource { @Override public void unsetRelationsToEntitiesToBeDeleted() { dbStack = null; if (databases != null) { databases.clear(); } }  }
DatabaseServerConfig implements ArchivableResource, AccountIdAwareResource { @Override public void unsetRelationsToEntitiesToBeDeleted() { dbStack = null; if (databases != null) { databases.clear(); } }  Long getId(); void setId(Long id); @Override String getAccountId(); void setAccountId(String accountId); Crn getResourceCrn(); void setResourceCrn(Crn resourceCrn); Long getWorkspaceId(); void setWorkspaceId(Long workspaceId); String getName(); void setName(String name); String getDescription(); void setDescription(String description); String getHost(); void setHost(String host); Integer getPort(); void setPort(Integer port); DatabaseVendor getDatabaseVendor(); void setDatabaseVendor(DatabaseVendor databaseVendor); String getConnectionDriver(); void setConnectionDriver(String connectionDriver); String getConnectionUserName(); String getConnectionUserNameSecret(); void setConnectionUserName(String connectionUserName); String getConnectionPassword(); String getConnectionPasswordSecret(); void setConnectionPassword(String connectionPassword); Long getCreationDate(); void setCreationDate(Long creationDate); ResourceStatus getResourceStatus(); void setResourceStatus(ResourceStatus resourceStatus); Long getDeletionTimestamp(); @Override void setDeletionTimestamp(Long timestampMillisecs); boolean isArchived(); @Override void setArchived(boolean archived); @Override void unsetRelationsToEntitiesToBeDeleted(); String getEnvironmentId(); void setEnvironmentId(String environmentId); Set<DatabaseConfig> getDatabases(); @VisibleForTesting void setDatabases(Set<DatabaseConfig> databases); Optional<DBStack> getDbStack(); void setDbStack(DBStack dbStack); String getClusterCrn(); void setClusterCrn(String clusterCrn); DatabaseConfig createDatabaseConfig(String databaseName, String type, Optional<String> databaseDescription, ResourceStatus status,
        String userName, String password); }
DatabaseServerConfig implements ArchivableResource, AccountIdAwareResource { @Override public void unsetRelationsToEntitiesToBeDeleted() { dbStack = null; if (databases != null) { databases.clear(); } }  Long getId(); void setId(Long id); @Override String getAccountId(); void setAccountId(String accountId); Crn getResourceCrn(); void setResourceCrn(Crn resourceCrn); Long getWorkspaceId(); void setWorkspaceId(Long workspaceId); String getName(); void setName(String name); String getDescription(); void setDescription(String description); String getHost(); void setHost(String host); Integer getPort(); void setPort(Integer port); DatabaseVendor getDatabaseVendor(); void setDatabaseVendor(DatabaseVendor databaseVendor); String getConnectionDriver(); void setConnectionDriver(String connectionDriver); String getConnectionUserName(); String getConnectionUserNameSecret(); void setConnectionUserName(String connectionUserName); String getConnectionPassword(); String getConnectionPasswordSecret(); void setConnectionPassword(String connectionPassword); Long getCreationDate(); void setCreationDate(Long creationDate); ResourceStatus getResourceStatus(); void setResourceStatus(ResourceStatus resourceStatus); Long getDeletionTimestamp(); @Override void setDeletionTimestamp(Long timestampMillisecs); boolean isArchived(); @Override void setArchived(boolean archived); @Override void unsetRelationsToEntitiesToBeDeleted(); String getEnvironmentId(); void setEnvironmentId(String environmentId); Set<DatabaseConfig> getDatabases(); @VisibleForTesting void setDatabases(Set<DatabaseConfig> databases); Optional<DBStack> getDbStack(); void setDbStack(DBStack dbStack); String getClusterCrn(); void setClusterCrn(String clusterCrn); DatabaseConfig createDatabaseConfig(String databaseName, String type, Optional<String> databaseDescription, ResourceStatus status,
        String userName, String password);  }