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 AbstractPartitionHelper

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.extract.util.taxonomy.AbstractPartitionHelper
All Implemented Interfaces:
PartitionHelper
Direct Known Subclasses:
AttributePartitionHelper, SinglePartitionHelperImpl, TaxonomyPartitionHelper

public abstract class AbstractPartitionHelper
extends java.lang.Object
implements PartitionHelper

This is the abstract base class for all PartionHelper implementation classes. Handles any generic methods to all implementations.


Field Summary
protected  java.lang.String currentPartitionValue
           
protected  oracle.jbo.AttributeDef partitionKeyAttribDef
           
protected  oracle.jbo.ApplicationModule theAM
           
protected  oracle.jbo.ViewObject theVO
           
 
Fields inherited from interface oracle.apps.fnd.applseed.rt.extract.util.taxonomy.PartitionHelper
APPLICATION_ID_ATTR, MODULE_ID_ATTR
 
Constructor Summary
AbstractPartitionHelper()
           
 
Method Summary
 java.lang.String getCurrentPartitionValue()
          Get the current partitioning value.
 PartitionKeyMap getLBAPartitionKeyMap(PartitionKeyMap productKeyMap)
          Get the PartitionKeyMap of all seed enabled LBAs for the given list of Products.
 oracle.jbo.ViewObject getPartitioningVO()
          Get the partition vo used.
 java.lang.String getPartitionKeyAttribName()
          Get the partition key id attribute name, eg ModuleId or ApplicationId.
abstract  PartitionKeyMap getPartitionKeyValues()
          Get the partition key value map found for the current view object.
abstract  PartitionKeyMap getPartitionKeyValues(java.util.Collection<java.lang.String> partitionIds, java.util.Collection<java.lang.String> partitionNames)
          Get the partition key value map from the passed list of partitionId and/or partitionName values.
abstract  java.lang.String getPath(java.lang.String keyValue)
          Get the taxonomy path for the named partition key value.
 java.lang.String getProductCode(java.lang.String keyValue)
          Get the Product Code for the key value.
protected  java.lang.String getProductOwnerName()
          Get the product owner name as per the AM package name.
 PartitionKeyMap getProductPartitionKeyMap()
          Get the PartitionKeyMap for available Products.
protected  void setCurrentPartitionValue(java.lang.String value)
          Set the partitioning value for this PartitionHelper impl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theAM

protected oracle.jbo.ApplicationModule theAM

theVO

protected oracle.jbo.ViewObject theVO

currentPartitionValue

protected java.lang.String currentPartitionValue

partitionKeyAttribDef

protected oracle.jbo.AttributeDef partitionKeyAttribDef
Constructor Detail

AbstractPartitionHelper

public AbstractPartitionHelper()
Method Detail

getPartitionKeyAttribName

public java.lang.String getPartitionKeyAttribName()
Get the partition key id attribute name, eg ModuleId or ApplicationId.

Specified by:
getPartitionKeyAttribName in interface PartitionHelper
Returns:
String partition key attribute name, empty string if not partitioning

getCurrentPartitionValue

public java.lang.String getCurrentPartitionValue()
Get the current partitioning value. Represents the value of the current partition helper

Specified by:
getCurrentPartitionValue in interface PartitionHelper
Returns:
String partitioning value

setCurrentPartitionValue

protected void setCurrentPartitionValue(java.lang.String value)
Set the partitioning value for this PartitionHelper impl.

Parameters:
value - String current partitioning key value

getPartitioningVO

public oracle.jbo.ViewObject getPartitioningVO()
Get the partition vo used.

Specified by:
getPartitioningVO in interface PartitionHelper
Returns:
ViewObject

getProductOwnerName

protected java.lang.String getProductOwnerName()
Get the product owner name as per the AM package name.

Returns:
String product owner

getPartitionKeyValues

public abstract PartitionKeyMap getPartitionKeyValues()
Get the partition key value map found for the current view object.

Specified by:
getPartitionKeyValues in interface PartitionHelper
Returns:
PartitionKeyMap map of partition key values

getPartitionKeyValues

public abstract PartitionKeyMap getPartitionKeyValues(java.util.Collection<java.lang.String> partitionIds,
                                                      java.util.Collection<java.lang.String> partitionNames)
Get the partition key value map from the passed list of partitionId and/or partitionName values. If both null/empty, builds complete list from all available partition key values in vo.

Specified by:
getPartitionKeyValues in interface PartitionHelper
Parameters:
partitionIds - Collection of String partition id values, eg ModuleId or ApplicationId values
partitionNames - Collection of String partition names, App or LBA, eg FND
Returns:
PartitionKeyMap built from passed values or all available values if none

getPath

public abstract java.lang.String getPath(java.lang.String keyValue)
Get the taxonomy path for the named partition key value.

Specified by:
getPath in interface PartitionHelper
Parameters:
keyValue - taxonomy partition key value
Returns:
String taxonomy path built to the pre-defined taxonomy top node null if not found or invalid format

getProductCode

public java.lang.String getProductCode(java.lang.String keyValue)
Get the Product Code for the key value. Default implementation is to return the Product owner from the AM package. Taxonomy implementation should overwrite this get the Taxonomy Product Code.

Specified by:
getProductCode in interface PartitionHelper
Parameters:
keyValue - Taxonomy key value, unused for non-Taxonomy implementations
Returns:
String Product owner name

getProductPartitionKeyMap

public PartitionKeyMap getProductPartitionKeyMap()
Get the PartitionKeyMap for available Products. Default implementation to simply return the partition key values map. Taxonomy implementation should overwrite this to return Taxonomy Product values.

Specified by:
getProductPartitionKeyMap in interface PartitionHelper
Returns:
PartitionKeyMap

getLBAPartitionKeyMap

public PartitionKeyMap getLBAPartitionKeyMap(PartitionKeyMap productKeyMap)
Get the PartitionKeyMap of all seed enabled LBAs for the given list of Products. Default behavior return empty map, should be implemented only for ModuleId helper.

Specified by:
getLBAPartitionKeyMap in interface PartitionHelper
Parameters:
productKeyMap - PartitionKeyMap contianing productss to find LBAs for
Returns:
PartitionKeyMap for the seed enabled LBAs belonging to each product

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

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.