Search in sources :

Example 1 with RepositoryUpdateManager

use of org.talend.core.model.update.RepositoryUpdateManager in project tdi-studio-se by Talend.

the class GenericUpdateManager method updateGenericConnection.

public static boolean updateGenericConnection(ConnectionItem connectionItem, List<IMetadataTable> oldMetadataTable, boolean show, final boolean onlySimpleShow) {
    List<Relation> relations = RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(), RelationshipItemBuilder.LATEST_VERSION, RelationshipItemBuilder.PROPERTY_RELATION);
    RepositoryUpdateManager repositoryUpdateManager = new GenericUpdateManager(connectionItem, oldMetadataTable, relations);
    return repositoryUpdateManager.doWork(true, false);
}
Also used : RepositoryUpdateManager(org.talend.core.model.update.RepositoryUpdateManager) Relation(org.talend.core.model.relationship.Relation)

Aggregations

Relation (org.talend.core.model.relationship.Relation)1 RepositoryUpdateManager (org.talend.core.model.update.RepositoryUpdateManager)1