Skip navigation links

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

E17060-02


oracle.odi.generation.support
Class OdiScenarioGeneratorImpl

java.lang.Object
  extended by oracle.odi.generation.support.OdiScenarioGeneratorImpl

All Implemented Interfaces:
IOdiScenarioGenerator

public final class OdiScenarioGeneratorImpl
extends java.lang.Object
implements IOdiScenarioGenerator

Default IOdiScenarioGenerator implementation.

Since:
11.1.1.3.0

Constructor Summary
OdiScenarioGeneratorImpl(OdiInstance pOdiInstance)
          Construct an IOdiScenarioGenerator for generating a scenario.

 

Method Summary
 OdiScenario[] generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer, GenerationOptions pScenGenerationDetails)
          Generates and persists all 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 regenerateLatestScenario(java.lang.String pScenarioName)
          Regenerates the latest version of a scenario from its name
 void regenerateScenario(OdiScenario pSourceScenario)
          Regenerates a given scenario.
 void regenerateScenario(Tag pSourceScenarioTag)
          Regenerates a given scenario from its tag.

 

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

 

Constructor Detail

OdiScenarioGeneratorImpl

public OdiScenarioGeneratorImpl(OdiInstance pOdiInstance)
Construct an IOdiScenarioGenerator for generating a scenario.
Parameters:
pOdiInstance - OdiInstance to be used.

Method Detail

generateAllScenarios

public OdiScenario[] generateAllScenarios(IOdiScenarioSourceContainer pScenarioSourceContainer,
                                          GenerationOptions pScenGenerationDetails)
                                   throws OdiScenarioGeneratorException
Description copied from interface: IOdiScenarioGenerator
Generates and persists all 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.

Specified by:
generateAllScenarios in interface IOdiScenarioGenerator
Parameters:
pScenarioSourceContainer - the given scenario source container.
pScenGenerationDetails - details about the generation.
Returns:
the generated scenarii (already persisted).
Throws:
OdiScenarioGeneratorException

generateScenario

public OdiScenario generateScenario(IOdiScenarioSource pSourceObject,
                                    java.lang.String pScenarioName,
                                    java.lang.String pScenarioVersion)
                             throws OdiScenarioGeneratorException
Description copied from interface: IOdiScenarioGenerator
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.

Specified by:
generateScenario in interface IOdiScenarioGenerator
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 - for errors in the scenario generation including if pScenarioName contains invalid java characters or is longer than 400 chraracters.

regenerateScenario

public void regenerateScenario(Tag pSourceScenarioTag)
                        throws OdiScenarioGeneratorException
Description copied from interface: IOdiScenarioGenerator
Regenerates a given scenario from its tag.

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

Specified by:
regenerateScenario in interface IOdiScenarioGenerator
Parameters:
pSourceScenarioTag - tag identifying the scenario to regenerate.
Throws:
OdiScenarioGeneratorException
OdiScenarioNotFoundException - in case no scenario have been found from given tag
Since:
11.1.1.5.0

regenerateLatestScenario

public void regenerateLatestScenario(java.lang.String pScenarioName)
Description copied from interface: IOdiScenarioGenerator
Regenerates the latest version of a scenario from its name

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

Specified by:
regenerateLatestScenario in interface IOdiScenarioGenerator
Parameters:
pScenarioName - name of the scenario
Since:
11.1.1.5.0

regenerateScenario

public void regenerateScenario(OdiScenario pSourceScenario)
                        throws OdiScenarioGeneratorException
Description copied from interface: IOdiScenarioGenerator
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.

Specified by:
regenerateScenario in interface IOdiScenarioGenerator
Parameters:
pSourceScenario - the scenario to regenerate.
Throws:
OdiScenarioGeneratorException

Skip navigation links

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

E17060-02


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