Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

oracle.apps.fnd.applcp.migrate.modeler.common
Class FlexfieldDefManagerImpl

java.lang.Object
  extended by oracle.apps.fnd.applcp.migrate.modeler.common.FlexfieldDefManager
      extended by oracle.apps.fnd.applcp.migrate.modeler.common.FlexfieldDefManagerImpl
Direct Known Subclasses:
DescriptiveFlexfieldDefManager, KeyFlexfieldDefManager

public class FlexfieldDefManagerImpl
extends FlexfieldDefManager

Standard implementation of FlexfieldDefManager. In this implementation, the calls to the abstract methods defined in FlexfieldDefManager are deferred to those in the concrete subclasses depending on the metadata type.


Nested Class Summary
protected static class FlexfieldDefManagerImpl._ContextValueDef
          A simple implementation of ContextValueDef.
protected static class FlexfieldDefManagerImpl.SegmentDefArrayList
          A SegmentDefList implementation that uses an ArrayList as the storage.
 
Field Summary
protected  oracle.apps.fnd.applcp.migrate.modeler.common.ServiceProvider _serviceProvider
           
 
Constructor Summary
FlexfieldDefManagerImpl(oracle.apps.fnd.applcp.migrate.modeler.common.ServiceProvider sp)
          Constructs a FlexfieldDefManagerImpl instance.
FlexfieldDefManagerImpl(java.lang.String connectionURL)
          Constructs a FlexfieldDefManagerImpl instance.
 
Method Summary
protected static java.util.List<FlexfieldEntityUsage> getEntityUsages(FlexfieldTableUsage tableUsage, FlexfieldDefManager defManager, oracle.jbo.RowIterator entityUsageIterator, java.lang.String targetEntityDefFullName)
          Gets the list of entity usages.
 FlexfieldDef getFlexfieldDef(FlexfieldTableUsage tableUsageRef)
          Gets the definition of a table usage of a flexfield.
protected  FlexfieldDef getFlexfieldDefInternal(FlexfieldTableUsage tableUsageRef)
          Gets the definition of a table usage of a flexfield.
 FlexfieldEntityUsage getFlexfieldEntityUsage(FlexfieldTableUsage tableUsageRef, java.lang.String entityDefFullName)
          Gets a flexfield entity usage.
protected  FlexfieldEntityUsage getFlexfieldEntityUsageInternal(FlexfieldTableUsage tableUsageRef, java.lang.String entityDefFullName)
          Gets a flexfield entity usage.
protected static Validator getValidator(SegmentDef seg, oracle.jbo.Row vsRow, java.util.Map<java.lang.String,ValueSetDef> valueSetCache, boolean valueSetRequired)
          Gets validation information.
protected static void resolveReferenceSegment(SegmentDefList segList)
          Resolves the references to the peer segments.
protected static void setUIControlType(SegmentDefImpl seg)
          Sets the UI control type for a segment.
 
Methods inherited from class oracle.apps.fnd.applcp.migrate.modeler.common.FlexfieldDefManager
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_serviceProvider

protected final oracle.apps.fnd.applcp.migrate.modeler.common.ServiceProvider _serviceProvider
Constructor Detail

FlexfieldDefManagerImpl

public FlexfieldDefManagerImpl(java.lang.String connectionURL)
Constructs a FlexfieldDefManagerImpl instance.

Parameters:
connectionURL - the connection to the flexfield repository

FlexfieldDefManagerImpl

public FlexfieldDefManagerImpl(oracle.apps.fnd.applcp.migrate.modeler.common.ServiceProvider sp)
Constructs a FlexfieldDefManagerImpl instance.

Parameters:
sp - the flexfield service provider
Method Detail

getFlexfieldDef

public final FlexfieldDef getFlexfieldDef(FlexfieldTableUsage tableUsageRef)
Description copied from class: FlexfieldDefManager
Gets the definition of a table usage of a flexfield.

Specified by:
getFlexfieldDef in class FlexfieldDefManager
Parameters:
tableUsageRef - the reference to the table usage
Returns:
the flexfield definition; null if not found

getFlexfieldEntityUsage

public final FlexfieldEntityUsage getFlexfieldEntityUsage(FlexfieldTableUsage tableUsageRef,
                                                          java.lang.String entityDefFullName)
Description copied from class: FlexfieldDefManager
Gets a flexfield entity usage.

Specified by:
getFlexfieldEntityUsage in class FlexfieldDefManager
Parameters:
tableUsageRef - the reference to the table usage
entityDefFullName - the full name of the entity definition
Returns:
the flexfield entity usage; null if not found

getFlexfieldDefInternal

protected FlexfieldDef getFlexfieldDefInternal(FlexfieldTableUsage tableUsageRef)
Gets the definition of a table usage of a flexfield.

Parameters:
tableUsageRef - the reference to the table usage
Returns:
the flexfield definition; null if not found
Throws:
java.lang.IllegalArgumentException - if the given table usage reference is null

getFlexfieldEntityUsageInternal

protected FlexfieldEntityUsage getFlexfieldEntityUsageInternal(FlexfieldTableUsage tableUsageRef,
                                                               java.lang.String entityDefFullName)
Gets a flexfield entity usage.

Parameters:
tableUsageRef - the reference to the table usage
entityDefFullName - the full name of the entity definition
Returns:
the flexfield entity usage; null if not found
Throws:
java.lang.IllegalArgumentException - if the given table usage reference is null, or the given entity name is null

getEntityUsages

protected static java.util.List<FlexfieldEntityUsage> getEntityUsages(FlexfieldTableUsage tableUsage,
                                                                      FlexfieldDefManager defManager,
                                                                      oracle.jbo.RowIterator entityUsageIterator,
                                                                      java.lang.String targetEntityDefFullName)
Gets the list of entity usages.

Parameters:
tableUsage - the table usage that contains the entity usages
defManager - the definition manager that calls this method
entityUsageIterator - the iterator of the entity usage list
targetEntityDefName - the entity definitio name of the usage to be found; null if all usages should be returned
Returns:
the list of entity usages; empty list if no usage is found

setUIControlType

protected static void setUIControlType(SegmentDefImpl seg)
Sets the UI control type for a segment. This method will use the control type defined in the value set definition. If the value set definition does not specify a control type, the control type will be determined based on the value type.

Parameters:
seg - the segment

getValidator

protected static Validator getValidator(SegmentDef seg,
                                        oracle.jbo.Row vsRow,
                                        java.util.Map<java.lang.String,ValueSetDef> valueSetCache,
                                        boolean valueSetRequired)
                                 throws SegmentDefException
Gets validation information.

Parameters:
seg - the segment
vsRow - the value set row
valueSetCache - the value set cache
valueSetRequired - true if this segment must use a value set
Returns:
the validator that represents the value set
Throws:
SegmentDefException - if any error occurs

resolveReferenceSegment

protected static void resolveReferenceSegment(SegmentDefList segList)
                                       throws SegmentDefException
Resolves the references to the peer segments. This method must be called to resolve any references to the peer segments in the value set usages.

Parameters:
segList - the segment list
Throws:
SegmentDefException - if any error occurs

Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

Copyright © 2011 Oracle. All Rights Reserved.