use of org.talend.dataprofiler.core.model.impl.ColumnIndicatorImpl in project tdq-studio-se by Talend.
the class UnitTestBuildHelper method createModelElementIndicator.
public static ModelElementIndicator createModelElementIndicator() {
TdColumn tdColumn = RelationalFactory.eINSTANCE.createTdColumn();
TdTable createTdTable = RelationalFactory.eINSTANCE.createTdTable();
tdColumn.setOwner(createTdTable);
TdSqlDataType dataType = RelationalFactory.eINSTANCE.createTdSqlDataType();
dataType.setJavaDataType(Types.VARCHAR);
tdColumn.setSqlDataType(dataType);
MetadataColumnRepositoryObject columnObject = new MetadataColumnRepositoryObject(null, tdColumn);
IRepositoryNode columnRepNode = new DBColumnRepNode(columnObject, new RepositoryNode(null, null, null), ENodeType.REPOSITORY_ELEMENT, null);
ModelElementIndicator modelElementIndicator = new ColumnIndicatorImpl(columnRepNode);
return modelElementIndicator;
}
Aggregations