|
Oracle Fusion Middleware extensions for Enterprise Scheduler Service 11g Release 1 (11.1.2) E22563-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcp.migrate.modeler.BCModeler oracle.apps.fnd.applcp.migrate.modeler.AbstractBCModeler
public abstract class AbstractBCModeler
This class facilitates the implementation of BCModeler
class.
Nested Class Summary | |
---|---|
protected static interface |
AbstractBCModeler.EntityPersonalization
Personalization data for a flexfield entity. |
protected static interface |
AbstractBCModeler.SegmentValidators
Validators for a segment. |
protected static interface |
AbstractBCModeler.ValidatorOnCondition
The "on condition" of a validator. |
Nested classes/interfaces inherited from class oracle.apps.fnd.applcp.migrate.modeler.BCModeler |
---|
BCModeler.Arguments, BCModeler.CommandLineArgs, BCModeler.Option, BCModeler.Options, BCModeler.Parameter |
Field Summary | |
---|---|
protected FlexfieldDef |
_flexfieldDef
Flexfield definition. |
protected FlexfieldEntityUsage |
_flexfieldEntityUsage
Flexfield entity usage. |
protected java.lang.String |
_modelID
Modeler ID derived from the flexfield definition. |
protected FlexfieldNamespace |
_namespace
Flexfield namespace. |
protected BCModelerWriter |
_writer
Modeler writer. |
Constructor Summary | |
---|---|
protected |
AbstractBCModeler(FlexfieldNamespace namespace,
FlexfieldDef ff,
FlexfieldEntityUsage flexEntityUsage,
BCModelerWriter writer)
Constructs a modeler. |
Method Summary | |
---|---|
protected void |
addKeyAttributes(oracle.jbo.server.ViewDefImpl viewDef,
java.lang.String entityUsageName,
FlexfieldEntity flexfieldEntity,
SegmentDefList segments,
java.util.ArrayList<java.lang.String> selectAttrs)
Adds key attributes of the input entity to a view object. |
protected oracle.jbo.server.AttributeDefImpl |
addSegmentAttribute(oracle.jbo.server.ViewDefImpl viewDef,
SegmentDef seg,
java.lang.String entityUsageName,
FlexfieldEntity flexfieldEntity,
java.util.ArrayList<java.lang.String> selectAttrs,
java.util.ArrayList<java.lang.String> fromClauseItems,
java.util.ArrayList<java.lang.String> whereClauseItems,
ContextValueDef contextValueDef,
boolean useAltDiscriminator)
Adds a segment to a view object as a view attribute. |
protected oracle.jbo.server.AttributeDefImpl |
addSegmentAttributeAsViewAttribute(oracle.jbo.server.ViewDefImpl viewDef,
SegmentDef seg,
java.lang.String entityUsageName,
FlexfieldEntity flexfieldEntity,
java.util.ArrayList<java.lang.String> selectAttrs,
java.util.ArrayList<java.lang.String> fromClauseItems,
java.util.ArrayList<java.lang.String> whereClauseItems,
ContextValueDef contextValueDef,
boolean useAltDiscriminator)
Adds a segment to a view object as a view attribute. |
protected void |
addValueSetTransients(oracle.jbo.server.ViewDefImpl viewDef)
Adds transient attributes for the use of value sets. |
void |
build()
Builds the model. |
protected abstract void |
buildInternal()
Builds the model. |
protected java.util.List<oracle.jbo.server.ViewDefImpl> |
buildListDataSourceViewObjects(FlexfieldEntity flexfieldEntity)
Builds the view objects used for lists of values. |
protected static java.lang.String |
concatenate(java.util.List<java.lang.String> list,
java.lang.String delimiter)
Concatenates a list of strings together. |
protected oracle.jbo.server.ApplicationModuleDefImpl |
createApplicationModuleDefImpl(int scope,
java.lang.String name)
Creates an ApplicationModuleDefImpl object and sets the
corresponding component class. |
protected FlexfieldEntity |
createFlexfieldEntity()
Creates a flexfield entity based on the entity usage. |
protected oracle.jbo.server.ViewDefImpl |
createViewDefImpl(int scope,
java.lang.String name)
Creates a ViweDefImpl object and sets the corresponding row class and component class. |
protected AbstractBCModeler.EntityPersonalization |
getEntityPersonalization(FlexfieldEntity fe,
ContextValueDef targetContext,
boolean useAltDiscrValue)
Gets the personalization data for a flexfield entity. |
protected java.util.Map<java.lang.String,java.lang.String> |
getEntityProperties(boolean discrExists)
Gets the properties that should be set on a flexfield entity. |
protected abstract FlexfieldEntity |
getFlexfieldEntity()
Gets the flexfield entity. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getPropertyBoundValueMap(java.lang.Object discrValue,
SegmentDef seg)
Gets the map of property bound values. |
java.util.List<java.lang.String> |
getReport()
Gets the report. |
protected AbstractBCModeler.ValidatorOnCondition |
getValidatorOnCondition()
Gets the on-condition for a validator. |
protected void |
populateCommonProperties(oracle.jbo.mom.PersistableDefObject pdef,
java.lang.String runtimeVersion)
Populates common properties shared by all objects built by this modeler. |
protected void |
populateProperties(oracle.jbo.server.ApplicationModuleDefImpl amDef,
java.lang.String runtimeVersion,
java.lang.String modelType)
Populates properties shared by all application modules built by this modeler. |
protected void |
populateProperties(oracle.jbo.server.ViewDefImpl viewDef,
ContextValueDef contextValueDef,
FlexfieldEntity flexfieldEntity,
java.lang.String runtimeVersion,
java.lang.String modelType,
boolean isBaseViewDef)
Populates properties shared by all view objects built by this modeler. |
protected static void |
populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi,
UIHints uih,
boolean isRequired)
Populates the UI hints. |
protected void |
setOutputPath(java.lang.String path)
Sets the output path. |
Methods inherited from class oracle.apps.fnd.applcp.migrate.modeler.BCModeler |
---|
escapeJavaString, isDevelopmentMode, main, run, run, setAttributeControlHints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final FlexfieldNamespace _namespace
protected final FlexfieldDef _flexfieldDef
protected final FlexfieldEntityUsage _flexfieldEntityUsage
protected final BCModelerWriter _writer
protected final java.lang.String _modelID
Constructor Detail |
---|
protected AbstractBCModeler(FlexfieldNamespace namespace, FlexfieldDef ff, FlexfieldEntityUsage flexEntityUsage, BCModelerWriter writer)
namespace
- the namespaceff
- the flexfield definitionflexEntityUsage
- the entity usagewriter
- the modeler writer
java.lang.IllegalArgumentException
- if any of the arguments is nullMethod Detail |
---|
protected abstract FlexfieldEntity getFlexfieldEntity()
protected final FlexfieldEntity createFlexfieldEntity()
protected final void setOutputPath(java.lang.String path)
buildInternal
, a private ADF configuration will be generated
based on the current configuration, and this private configuration will be
set as the current.
path
- the output pathpublic final void build()
buildInternal
.
build
in class BCModeler
buildInternal()
,
setOutputPath(java.lang.String)
public java.util.List<java.lang.String> getReport()
BCModeler
getReport
in class BCModeler
protected abstract void buildInternal()
protected oracle.jbo.server.ViewDefImpl createViewDefImpl(int scope, java.lang.String name)
scope
- the scope of the objectname
- the short name of the view definition
FlexfieldViewDefImpl
,
FlexfieldViewRowImpl
,
FlexfieldViewObjectImpl
protected oracle.jbo.server.ApplicationModuleDefImpl createApplicationModuleDefImpl(int scope, java.lang.String name)
ApplicationModuleDefImpl
object and sets the
corresponding component class.
scope
- the scope of the definition objectname
- the short name of the application module
ApplicationModuleDefImpl
objectFlexfieldApplicationModuleImpl
protected java.util.Map<java.lang.String,java.lang.Object> getPropertyBoundValueMap(java.lang.Object discrValue, SegmentDef seg)
Subclasses should always call the super method first to get the common properties.
discrValue
- the discriminator valueseg
- the segment
addSegmentAttribute(oracle.jbo.server.ViewDefImpl, oracle.apps.fnd.applcp.migrate.modeler.common.SegmentDef, java.lang.String, oracle.apps.fnd.applcp.migrate.modeler.FlexfieldEntity, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList, oracle.apps.fnd.applcp.migrate.modeler.common.ContextValueDef, boolean)
protected java.util.List<oracle.jbo.server.ViewDefImpl> buildListDataSourceViewObjects(FlexfieldEntity flexfieldEntity)
flexfieldEntity
- the flexfield entity
protected static java.lang.String concatenate(java.util.List<java.lang.String> list, java.lang.String delimiter)
list
- the list of stringsdelimiter
- the delimiter
protected void addKeyAttributes(oracle.jbo.server.ViewDefImpl viewDef, java.lang.String entityUsageName, FlexfieldEntity flexfieldEntity, SegmentDefList segments, java.util.ArrayList<java.lang.String> selectAttrs)
viewDef
- the view objectentityUsageName
- the name of the entity usageflexfieldEntity
- the flexfield entitysegments
- the list of segments that will be included in this view
object. This is to check if a key attribute is already
added as a global segment; if so, it will not be added
again. This check does not involve context-sensitive
segments.selectAttrs
- the list of items in the select clause. When an
attribute is added, the corresponding item should be
added to the list as well.protected final void addValueSetTransients(oracle.jbo.server.ViewDefImpl viewDef)
addSegmentAttribute
in this class to build a view attribute
for a segment, you must includes these transient view attributes in the
same view definition.
viewDef
- the view definition where the transient attributes should
be addedaddSegmentAttribute(oracle.jbo.server.ViewDefImpl, oracle.apps.fnd.applcp.migrate.modeler.common.SegmentDef, java.lang.String, oracle.apps.fnd.applcp.migrate.modeler.FlexfieldEntity, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList, oracle.apps.fnd.applcp.migrate.modeler.common.ContextValueDef, boolean)
protected oracle.jbo.server.AttributeDefImpl addSegmentAttributeAsViewAttribute(oracle.jbo.server.ViewDefImpl viewDef, SegmentDef seg, java.lang.String entityUsageName, FlexfieldEntity flexfieldEntity, java.util.ArrayList<java.lang.String> selectAttrs, java.util.ArrayList<java.lang.String> fromClauseItems, java.util.ArrayList<java.lang.String> whereClauseItems, ContextValueDef contextValueDef, boolean useAltDiscriminator)
viewDef
- the view objectseg
- the segmententityUsageName
- the name of the entity usageflexfieldEntity
- the flexfield entityselectAttrs
- the list of items in the select clausefromClauseItems
- the list of items in the from clausewhereClauseItems
- the list of items in the where clausecontextValueDef
- the context valueuseAltDiscriminator
- true if the alternative value of the context
should be used as a discriminator value.
In such a case, the view attribute will not be
marked as a discriminator.
getPropertyBoundValue(java.lang.Object, oracle.apps.fnd.applcp.migrate.modeler.common.SegmentDef)
protected oracle.jbo.server.AttributeDefImpl addSegmentAttribute(oracle.jbo.server.ViewDefImpl viewDef, SegmentDef seg, java.lang.String entityUsageName, FlexfieldEntity flexfieldEntity, java.util.ArrayList<java.lang.String> selectAttrs, java.util.ArrayList<java.lang.String> fromClauseItems, java.util.ArrayList<java.lang.String> whereClauseItems, ContextValueDef contextValueDef, boolean useAltDiscriminator)
viewDef
- the view objectseg
- the segmententityUsageName
- the name of the entity usageflexfieldEntity
- the flexfield entityselectAttrs
- the list of items in the select clausefromClauseItems
- the list of items in the from clausewhereClauseItems
- the list of items in the where clausecontextValueDef
- the context valueuseAltDiscriminator
- true if the alternative value of the context
should be used as a discriminator value.
In such a case, the view attribute will not be
marked as a discriminator.
getPropertyBoundValue(java.lang.Object, oracle.apps.fnd.applcp.migrate.modeler.common.SegmentDef)
protected static void populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi, UIHints uih, boolean isRequired)
adi
- the segment attributeuih
- the UI hintsisRequired
- true if the segment value cannot be nullprotected void populateProperties(oracle.jbo.server.ViewDefImpl viewDef, ContextValueDef contextValueDef, FlexfieldEntity flexfieldEntity, java.lang.String runtimeVersion, java.lang.String modelType, boolean isBaseViewDef)
populateCommonProperties
before any application module
specific properties are populated.
viewDef
- the view object definitioncontextValueDef
- the context valueflexfieldEntity
- the flexfieldEntityruntimeVersion
- the runtime version; null if this information is
not availablemodelType
- the type of the model; this is generally a hint for the
design time UI. The value depends on the
implementation of the design time UI.isBaseViewDef
- true if the given view object will not inherit
any properties from another view objectpopulateCommonProperties(oracle.jbo.mom.PersistableDefObject, java.lang.String)
protected void populateProperties(oracle.jbo.server.ApplicationModuleDefImpl amDef, java.lang.String runtimeVersion, java.lang.String modelType)
populateCommonProperties
before any application module
specific properties are populated.
amDef
- the application moduleruntimeVersion
- the runtime version; null if this information is
not availablemodelType
- the type of the model; this is generally a hint for the
design time UI. The value depends on the
implementation of the design time UI.populateCommonProperties(oracle.jbo.mom.PersistableDefObject, java.lang.String)
protected void populateCommonProperties(oracle.jbo.mom.PersistableDefObject pdef, java.lang.String runtimeVersion)
pdef
- the objectruntimeVersion
- the runtime version; null if no version information
is availableprotected AbstractBCModeler.EntityPersonalization getEntityPersonalization(FlexfieldEntity fe, ContextValueDef targetContext, boolean useAltDiscrValue)
fe
- the flexfield entitytargetContext
- the context for which the entity is personalized; null if
the personalization should include all contextsuseAltDiscrValue
- if the alternative values of the discriminator
will be used to differentiate different subtypes
protected AbstractBCModeler.ValidatorOnCondition getValidatorOnCondition()
getEntityPersonalization(oracle.apps.fnd.applcp.migrate.modeler.FlexfieldEntity, oracle.apps.fnd.applcp.migrate.modeler.common.ContextValueDef, boolean)
protected java.util.Map<java.lang.String,java.lang.String> getEntityProperties(boolean discrExists)
discrExists
- if a discriminator exists
getEntityPersonalization(oracle.apps.fnd.applcp.migrate.modeler.FlexfieldEntity, oracle.apps.fnd.applcp.migrate.modeler.common.ContextValueDef, boolean)
|
Oracle Fusion Middleware extensions for Enterprise Scheduler Service 11g Release 1 (11.1.2) E22563-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |