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

E17060-01

oracle.odi.generation
Interface IOdiScenarioGenerator

All Known Implementing Classes:
OdiScenarioGeneratorImpl

public interface IOdiScenarioGenerator

Provides all method to generate ODI scenarios.
Example usage:

 .
 .
 IIOdiScenarioGenerator gene = new OdiScenarioGeneratorImpl((odiInstance);
 OdiScenario newScen = gene.generateScenario(pPackage, "MYSCENERIO", "01");
 .
 .
 

Since:
11.1.1.3.0
See Also:
IOdiScenarioSource, IOdiScenarioSourceContainer

Method Summary
 OdiScenario[] generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer, GenerationOptions pScenGenerationDetails)
          Generates and persists tall the the scenarii for the scenario sources present in the given scenario source container.
 OdiScenario generateScenario(IOdiScenarioSource pSourceObject, java.lang.String pScenarioName, java.lang.String pScenarioVersion)
          Generates and persists in repository a scenario from a given scenario source object.
 void regenerateScenario(OdiScenario pSourceScenario)
          Regenerates a given scenario.
 

Method Detail

generateAllScenarios

OdiScenario[] generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer,
                                   GenerationOptions pScenGenerationDetails)
                                   throws OdiScenarioGeneratorException
Generates and persists tall the the scenarii for the scenario sources present in the given scenario source container. The container must have been persisted.

This method will execute in the surrounding transaction and all pending persisted changes will be flushed.

Parameters:
pScenarioSourceContainer - the given scenario source container.
pScenGenerationDetails - details about the generation.
Returns:
the generated scenarii (already persisted).
Throws:
OdiScenarioGeneratorException
org.springframework.transaction.IllegalTransactionStateException - if no surrounding transaction exists.

generateScenario

OdiScenario generateScenario(IOdiScenarioSource pSourceObject,
                             java.lang.String pScenarioName,
                             java.lang.String pScenarioVersion)
                             throws OdiScenarioGeneratorException
Generates and persists in repository a scenario from a given scenario source object. The source must have been persisted.

This method will execute in the surrounding transaction and all pending persisted changes will be flushed.

Parameters:
pSourceObject - The object on which the scenario will be based.
pScenarioName - The name of the scenario.
pScenarioVersion - The version of the scenario.
Returns:
the generated scenario (already persisted).
Throws:
OdiScenarioGeneratorException
org.springframework.transaction.IllegalTransactionStateException - if no surrounding transaction exists.

regenerateScenario

void regenerateScenario(OdiScenario pSourceScenario)
                        throws OdiScenarioGeneratorException
Regenerates a given scenario. The scenario must have been persisted.

This method will execute in the surrounding transaction and all pending persisted changes will be flushed.

Parameters:
pSourceScenario - the scenario to regenerate.
Throws:
OdiScenarioGeneratorException
org.springframework.transaction.IllegalTransactionStateException - if no surrounding transaction exists.

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

E17060-01

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