Skip navigation links

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

E17060-02


oracle.odi.interfaces.interactive.support.aliascomputers
Class AliasComputerDoubleChecker

java.lang.Object
  extended by oracle.odi.interfaces.interactive.support.aliascomputers.AliasComputerDoubleChecker

All Implemented Interfaces:
IAliasComputer

public class AliasComputerDoubleChecker
extends java.lang.Object
implements IAliasComputer

This alias computer ensures that it will not return an alias that is currently used in the DataSet in which the SourceDataStore is located.
It is based on a wrapped alias computer which gives the original alias on which this computer will base the alias it will return.
To make sure that aliases are unique, it appends a number to the alias if any collision is found, until the name is unique.
This alias computer ensures that the returned aliases comply with the size limitation defined by SourceDataStore.ALIAS_MAX_LENGTH by truncating the aliases before appending the number.


Constructor Summary
AliasComputerDoubleChecker()
          Convenience constructor similar to AliasComputerDoubleChecker(true).
AliasComputerDoubleChecker(boolean pNormalize)
          Creates an alias computer based on a basic alias computer.
This is a convenience constructor similar to calling AliasComputerDoubleChecker(new BasicAliasComputer(pNormalize)).
AliasComputerDoubleChecker(IAliasComputer pInternAliasComputer)
          Creates an AliasComputerDoubleChecker based on the underlying alias computer.

 

Method Summary
 java.lang.String computeAliasForDataStore(IDataStore<?,?> pDataStore, DataSet pDataSet)
          Computes the alias name for a source or target data store.

 

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

 

Constructor Detail

AliasComputerDoubleChecker

public AliasComputerDoubleChecker(IAliasComputer pInternAliasComputer)
Creates an AliasComputerDoubleChecker based on the underlying alias computer.
Parameters:
pInternAliasComputer - an internal alias computer that will give the base alias

AliasComputerDoubleChecker

public AliasComputerDoubleChecker(boolean pNormalize)
Creates an alias computer based on a basic alias computer.
This is a convenience constructor similar to calling AliasComputerDoubleChecker(new BasicAliasComputer(pNormalize)).
Parameters:
pNormalize - whether the underlying BasicAliasComputer should normalize aliases

AliasComputerDoubleChecker

public AliasComputerDoubleChecker()
Convenience constructor similar to AliasComputerDoubleChecker(true).

Method Detail

computeAliasForDataStore

public java.lang.String computeAliasForDataStore(IDataStore<?,?> pDataStore,
                                                 DataSet pDataSet)
Description copied from interface: IAliasComputer
Computes the alias name for a source or target data store. Aliases are normally retrieved from the default alias of an OdiDataStore and their length should not exceed the length specified in SourceDataStore.ALIAS_MAX_LENGTH. Additionally, aliases should currently not contain spaces, dots or any separator in general, and should be uppercase in the English Locale.
Specified by:
computeAliasForDataStore in interface IAliasComputer
Parameters:
pDataStore - the data store for which the alias is computed for
pDataSet - the data set that contains this data store
Returns:
the String that is the alias name

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.