Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.extract.util.taxonomy
Class AttributePartitionHelper

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.extract.util.taxonomy.AbstractPartitionHelper
      extended by oracle.apps.fnd.applseed.rt.extract.util.taxonomy.AttributePartitionHelper
All Implemented Interfaces:
PartitionHelper

public class AttributePartitionHelper
extends AbstractPartitionHelper

This class implements PartitionHelper for non-Taxonomy Attributes. Created with an AttributeDef to serve as the Partition Key, and the VO that attribute exists on.


Field Summary
 
Fields inherited from class oracle.apps.fnd.applseed.rt.extract.util.taxonomy.AbstractPartitionHelper
currentPartitionValue, partitionKeyAttribDef, theAM, theVO
 
Fields inherited from interface oracle.apps.fnd.applseed.rt.extract.util.taxonomy.PartitionHelper
APPLICATION_ID_ATTR, MODULE_ID_ATTR
 
Constructor Summary
AttributePartitionHelper(java.lang.String attr, oracle.jbo.ApplicationModule am, oracle.jbo.ViewObject vo)
          Constructor.
 
Method Summary
 PartitionKeyMap getPartitionKeyValues()
          Get the map of partition key attribute values.
 PartitionKeyMap getPartitionKeyValues(java.util.Collection<java.lang.String> partitionIds, java.util.Collection<java.lang.String> partitionNames)
          Get partition key values for passed ids or names.
 java.lang.String getPath(java.lang.String keyValue)
          Get path for this key value.
 
Methods inherited from class oracle.apps.fnd.applseed.rt.extract.util.taxonomy.AbstractPartitionHelper
getCurrentPartitionValue, getLBAPartitionKeyMap, getPartitioningVO, getPartitionKeyAttribName, getProductCode, getProductOwnerName, getProductPartitionKeyMap, setCurrentPartitionValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributePartitionHelper

public AttributePartitionHelper(java.lang.String attr,
                                oracle.jbo.ApplicationModule am,
                                oracle.jbo.ViewObject vo)
Constructor.

Parameters:
attr - String attribute name to serve as the partition key
vo - ViewObject containing the attr
Throws:
java.lang.RuntimeException - when attr does not exist on vo
Method Detail

getPartitionKeyValues

public PartitionKeyMap getPartitionKeyValues()
Get the map of partition key attribute values. Iterate the view rows, build list of all unique partition keys found.

Specified by:
getPartitionKeyValues in interface PartitionHelper
Specified by:
getPartitionKeyValues in class AbstractPartitionHelper
Returns:
ParitionKeyMap

getPartitionKeyValues

public PartitionKeyMap getPartitionKeyValues(java.util.Collection<java.lang.String> partitionIds,
                                             java.util.Collection<java.lang.String> partitionNames)
Get partition key values for passed ids or names. Used for command line parm passing. For Attriubte partitioning, Ids and Name values are equivilent.

Specified by:
getPartitionKeyValues in interface PartitionHelper
Specified by:
getPartitionKeyValues in class AbstractPartitionHelper
Parameters:
partitionIds - id values of the partitioning key
partitionNames - name names of the partitioning key
Returns:
PartitionKeyMap map containing partition value to its key value

getPath

public java.lang.String getPath(java.lang.String keyValue)
Get path for this key value. AttributeHelper nodes are assumed to be exclusive extract child nodes, so attempt to get the path of the driver node.

Specified by:
getPath in interface PartitionHelper
Specified by:
getPath in class AbstractPartitionHelper
Parameters:
keyValue - String partition key value
Returns:
String driver owner path, empty string if not known yet

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.