Search in sources :

Example 1 with ColumnIndicatorImpl

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;
}
Also used : ColumnIndicatorImpl(org.talend.dataprofiler.core.model.impl.ColumnIndicatorImpl) TdColumn(org.talend.cwm.relational.TdColumn) TdTable(org.talend.cwm.relational.TdTable) IRepositoryNode(org.talend.repository.model.IRepositoryNode) MetadataColumnRepositoryObject(org.talend.core.repository.model.repositoryObject.MetadataColumnRepositoryObject) DBColumnRepNode(org.talend.dq.nodes.DBColumnRepNode) RepositoryNode(org.talend.repository.model.RepositoryNode) IRepositoryNode(org.talend.repository.model.IRepositoryNode) TdSqlDataType(org.talend.cwm.relational.TdSqlDataType) ModelElementIndicator(org.talend.dataprofiler.core.model.ModelElementIndicator)

Aggregations

MetadataColumnRepositoryObject (org.talend.core.repository.model.repositoryObject.MetadataColumnRepositoryObject)1 TdColumn (org.talend.cwm.relational.TdColumn)1 TdSqlDataType (org.talend.cwm.relational.TdSqlDataType)1 TdTable (org.talend.cwm.relational.TdTable)1 ModelElementIndicator (org.talend.dataprofiler.core.model.ModelElementIndicator)1 ColumnIndicatorImpl (org.talend.dataprofiler.core.model.impl.ColumnIndicatorImpl)1 DBColumnRepNode (org.talend.dq.nodes.DBColumnRepNode)1 IRepositoryNode (org.talend.repository.model.IRepositoryNode)1 RepositoryNode (org.talend.repository.model.RepositoryNode)1