use of org.talend.core.model.metadata.builder.connection.MetadataTable in project tdi-studio-se by Talend.
the class RepositoryUpdateTest method updateNode.
private void updateNode(String id, Node node, GenericConnection connection) {
MetadataTable table = prepareTableForTest(id);
updateNodeConnectionOnly(id, node, connection);
IElementParameter schemaParam = node.getElementParameterFromField(EParameterFieldType.SCHEMA_REFERENCE);
//$NON-NLS-1$
String value = id + " - " + table.getLabel();
RepositoryChangeMetadataCommand command2 = new RepositoryChangeMetadataCommand(node, //$NON-NLS-1$
schemaParam.getName() + ":" + EParameterName.REPOSITORY_SCHEMA_TYPE.getName(), value, ConvertionHelper.convert(table), null, connection);
command2.execute(true);
}
Aggregations