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

E17060-01

oracle.odi.domain.runtime.startup
Class StartupParametersBuilder

java.lang.Object
  extended by oracle.odi.domain.runtime.startup.StartupParametersBuilder

public class StartupParametersBuilder
extends java.lang.Object

Helper class for creating StartupParameters.

Useful because creating an StartupParameters depends on the target OdiScenario and its OdiScenarioVariables. Note that this class allows parameters creation against scenario's variables as well as without those variables. In the latest case, no check will be done.


Constructor Summary
StartupParametersBuilder()
          Construct a new StartupParametersBuilder with no assertion.
StartupParametersBuilder(OdiScenario pScenario)
          Construct a new StartupParametersBuilder with assertion based on the given scenario.
 
Method Summary
 StartupParametersBuilder setDate(java.lang.String pName, java.util.Date pValue)
          Add a new Date parameter for given name.
 StartupParametersBuilder setLong(java.lang.String pName, java.lang.Long pValue)
          Add a new Long parameter for given name.
 StartupParametersBuilder setString(java.lang.String pName, java.lang.String pValue)
          Add a new String parameter for given name.
 StartupParameters toStartupParameters()
          Conversion method that takes the current state of this builder and returns it as a StartupParameters instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupParametersBuilder

public StartupParametersBuilder()
Construct a new StartupParametersBuilder with no assertion.


StartupParametersBuilder

public StartupParametersBuilder(OdiScenario pScenario)
Construct a new StartupParametersBuilder with assertion based on the given scenario.

Parameters:
pScenario - the scenario
Method Detail

setDate

public StartupParametersBuilder setDate(java.lang.String pName,
                                        java.util.Date pValue)
Add a new Date parameter for given name.

Parameters:
pName - parameter name
pValue - runtime value
Returns:
a reference to this object

setLong

public StartupParametersBuilder setLong(java.lang.String pName,
                                        java.lang.Long pValue)
Add a new Long parameter for given name.

Parameters:
pName - parameter name
pValue - runtime value
Returns:
a reference to this object

setString

public StartupParametersBuilder setString(java.lang.String pName,
                                          java.lang.String pValue)
Add a new String parameter for given name.

Parameters:
pName - parameter name
pValue - runtime value
Returns:
a reference to this object

toStartupParameters

public StartupParameters toStartupParameters()
Conversion method that takes the current state of this builder and returns it as a StartupParameters instance.

Returns:
a valid StartupParameters object

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.