Search in sources :

Example 21 with ExecutionInformations

use of org.talend.dataquality.analysis.ExecutionInformations in project tdq-studio-se by Talend.

the class ReportHelper method getExecutionInformations.

/**
 * Method "getExecutionInformations" returns the execution informations of the given report. If none existed, they
 * are created and stored in the report.
 *
 * @param report a report
 * @return the existing execution informations
 */
public static ExecutionInformations getExecutionInformations(TdReport report) {
    ExecutionInformations execInformations = report.getExecInformations();
    if (execInformations == null) {
        execInformations = AnalysisFactory.eINSTANCE.createExecutionInformations();
        report.setExecInformations(execInformations);
    }
    return execInformations;
}
Also used : ExecutionInformations(org.talend.dataquality.analysis.ExecutionInformations)

Example 22 with ExecutionInformations

use of org.talend.dataquality.analysis.ExecutionInformations in project tdq-studio-se by Talend.

the class AnalysisBaseBuilder method createAnalysisResult.

private AnalysisResult createAnalysisResult() {
    AnalysisResult result = AnalysisFactory.eINSTANCE.createAnalysisResult();
    // create its metadata
    ExecutionInformations executionInformations = AnalysisFactory.eINSTANCE.createExecutionInformations();
    result.setResultMetadata(executionInformations);
    return result;
}
Also used : ExecutionInformations(org.talend.dataquality.analysis.ExecutionInformations) AnalysisResult(org.talend.dataquality.analysis.AnalysisResult)

Example 23 with ExecutionInformations

use of org.talend.dataquality.analysis.ExecutionInformations in project tdq-studio-se by Talend.

the class AnalysisResultImpl method basicSetResultMetadata.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetResultMetadata(ExecutionInformations newResultMetadata, NotificationChain msgs) {
    ExecutionInformations oldResultMetadata = resultMetadata;
    resultMetadata = newResultMetadata;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AnalysisPackage.ANALYSIS_RESULT__RESULT_METADATA, oldResultMetadata, newResultMetadata);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ExecutionInformations(org.talend.dataquality.analysis.ExecutionInformations) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

ExecutionInformations (org.talend.dataquality.analysis.ExecutionInformations)23 AnalysisResult (org.talend.dataquality.analysis.AnalysisResult)13 Analysis (org.talend.dataquality.analysis.Analysis)11 Test (org.junit.Test)6 AnalysisContext (org.talend.dataquality.analysis.AnalysisContext)6 Date (java.util.Date)5 TdColumn (org.talend.cwm.relational.TdColumn)5 TdTable (org.talend.cwm.relational.TdTable)5 AnalysisParameters (org.talend.dataquality.analysis.AnalysisParameters)5 TdExpression (org.talend.cwm.relational.TdExpression)4 Before (org.junit.Before)3 IndicatorDefinition (org.talend.dataquality.indicators.definition.IndicatorDefinition)3 ChartDataEntity (org.talend.dq.indicators.preview.table.ChartDataEntity)3 ReturnCode (org.talend.utils.sugars.ReturnCode)3 Package (orgomg.cwm.objectmodel.core.Package)3 SQLException (java.sql.SQLException)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 DatabaseConnection (org.talend.core.model.metadata.builder.connection.DatabaseConnection)2 MetadataColumn (org.talend.core.model.metadata.builder.connection.MetadataColumn)2 TdSqlDataType (org.talend.cwm.relational.TdSqlDataType)2