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

E17060-01

oracle.odi.interfaces.interactive.support.km.optionretainer
Class KMOptionRetainerHomonymy

java.lang.Object
  extended by oracle.odi.interfaces.interactive.support.km.optionretainer.KMOptionRetainerHomonymy
All Implemented Interfaces:
IKMOptionRetainer
Direct Known Subclasses:
KMOptionRetainerCopy

public class KMOptionRetainerHomonymy
extends java.lang.Object
implements IKMOptionRetainer

This implementation copies old option values to the new options, based on case sensitive homonymy on the option names.


Constructor Summary
KMOptionRetainerHomonymy()
          Builds a new homonymy option retainer that doesn't set values if they are equal to the default.
In other words, it is similar to KMOptionRetainerHomonymy(false).
KMOptionRetainerHomonymy(boolean pKeepRealValue)
          Builds a new homonymy option retainer.
If the pKeepRealValue parameter is true, then options will be systematically set on the new options to reflect the values in the old options, even if they are equal to the default value of the new option.
 
Method Summary
 void retainOptions(OdiKM<?> pOldKM, java.util.List<IOptionValue> pOldOptionValues, OdiKM<?> pNewKM, java.util.List<IOptionValue> pNewOptions)
          This is called after the KM was changed on the option retainer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMOptionRetainerHomonymy

public KMOptionRetainerHomonymy()
Builds a new homonymy option retainer that doesn't set values if they are equal to the default.
In other words, it is similar to KMOptionRetainerHomonymy(false).


KMOptionRetainerHomonymy

public KMOptionRetainerHomonymy(boolean pKeepRealValue)
Builds a new homonymy option retainer.
If the pKeepRealValue parameter is true, then options will be systematically set on the new options to reflect the values in the old options, even if they are equal to the default value of the new option.

Parameters:
pKeepRealValue - if false value is only set if it isn't default value otherwise always set
Method Detail

retainOptions

public void retainOptions(OdiKM<?> pOldKM,
                          java.util.List<IOptionValue> pOldOptionValues,
                          OdiKM<?> pNewKM,
                          java.util.List<IOptionValue> pNewOptions)
Description copied from interface: IKMOptionRetainer
This is called after the KM was changed on the option retainer. In this method, the retainer has the choice of setting values on the new options according to the values on the old options.

Specified by:
retainOptions in interface IKMOptionRetainer
Parameters:
pOldKM - the original KM before the change
pOldOptionValues - the list of KM values for the original KM
pNewKM - the proposed KM for the change
pNewOptions - the list of KM values for the proposed KM

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.