Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.7.0)

E17060-04


oracle.odi.domain.runtime.loadplan
Class OdiLoadPlanValidator

java.lang.Object
  extended by oracle.odi.domain.runtime.loadplan.OdiLoadPlanValidator


public class OdiLoadPlanValidator
extends java.lang.Object

Validator for OdiLoadPlan.

Typical usage:

  // obtain validator
  OdiLoadPlanValidator service = new OdiLoadPlanValidator(getOdiInstance().getTransactionalEntityManager());
  // [optional] you could set IOdiVariableTextGenerator impl for more accurate validating
  service.setVariableTextGenerator(OdiVariableTextGeneratorFactory.getFactory().getVariableTextGenerator(getOdiInstance()));
  // check loadplan             
        List<ValidationRecord> validateReport = service.validateLoadPlan(lpFromDb);
  
Since:
11.1.1.6.0
Version:
$Header: odi/src/javadev/odi.core/src/oracle/odi/domain/runtime/loadplan/OdiLoadPlanValidator.java /odi_111160/5 2012/08/01 22:42:20 shixu Exp $
See Also:
OdiLoadPlanTestCase

Constructor Summary
OdiLoadPlanValidator(IOdiEntityManager odiEntityManager)
          Create new loadplan validator.

 

Method Summary
 IOdiVariableTextGenerator getVariableTextGenerator()
           
 void setVariableTextGenerator(IOdiVariableTextGenerator variableTextGenerator)
           
 java.util.List<ValidationRecord> validateLoadPlan(OdiLoadPlan loadPlan)
           Check passed load plan against follow rules:

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OdiLoadPlanValidator

public OdiLoadPlanValidator(IOdiEntityManager odiEntityManager)
Create new loadplan validator.
Parameters:
odiEntityManager - must be not-null.
Throws:
DomainRuntimeException - if odiEntityManager is null.

Method Detail

getVariableTextGenerator

public IOdiVariableTextGenerator getVariableTextGenerator()
Returns:
the variableTextGenerator

setVariableTextGenerator

public void setVariableTextGenerator(IOdiVariableTextGenerator variableTextGenerator)
Parameters:
variableTextGenerator - the variableTextGenerator to set

validateLoadPlan

public java.util.List<ValidationRecord> validateLoadPlan(OdiLoadPlan loadPlan)

Check passed load plan against follow rules:

Errors:

  1. LP Variable refreshed at a step but has no SQL.
  2. Context on a step is specified but is no longer present in the topology.
  3. Logical Agent on a step is specified but is no longer present in the topology.
  4. Context+Logical agent on a step does not map to any physical agent.
  5. Scenario variable type and LP variable type mismatch.
  6. LoadPlan has variable, but variable was deleted from project or global objects.
Warnings:
  1. Scenario not found (this is allowed for late binding scenario usecase).
  2. A Scenario referenced by Run Scenario step has variable but LP does not have variable with the same name.
Notifications:
  1. Scenario referenced by Load Plan RunScenario step has a newer version in the repository.
  2. LP Variable SQL is different than the design repository Variable (same name) SQL.
  3. LP Variable LogicalSchema is different than the design repository Variable (same name) LogicalSchema.
  4. Exceptions that are not used in the Load Plan.
Parameters:
loadPlan - plan to check
Returns:
list of validation records with level from NOTIFICATION to ERROR

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.7.0)

E17060-04


Copyright © 2010, 2013, Oracle and/or its affiliates. All rights reserved.