|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.flex.runtime.util.BCModeler oracle.apps.fnd.applcore.flex.runtime.util.AbstractBCModeler
public abstract class AbstractBCModeler
This class facilitates the implementation of BCModeler
class.
Nested Class Summary | |
---|---|
protected static class |
AbstractBCModeler.BIEntity
A BI entity. |
protected static class |
AbstractBCModeler.BIValueLinkInfo
Information of a link to another entity or view object. |
protected static class |
AbstractBCModeler.BIViewUsageInfo
Information of BI view usages. |
protected static class |
AbstractBCModeler.FlattenedModel
A flattened model. |
protected static class |
AbstractBCModeler.FlattenedSegment
A flattened segment. |
protected static class |
AbstractBCModeler.IntegerSequence
A class that produces unique names by appending an integer to the name. |
protected class |
AbstractBCModeler.P13nModeler
Modeler interface for creating flexfield entity personalization. |
static interface |
AbstractBCModeler.SegmentAttrElements
Internal Use Only. |
protected static interface |
AbstractBCModeler.SegmentAttributeInfo
Information about a segment attribute. |
protected static interface |
AbstractBCModeler.TokenWrapper
An interface that wraps a token before it is concatenated with other tokens. |
Nested classes/interfaces inherited from class oracle.apps.fnd.applcore.flex.runtime.util.BCModeler |
---|
BCModeler.Arguments, BCModeler.Option, BCModeler.Options, BCModeler.Parameter, BCModeler.ProgressStage |
Field Summary | |
---|---|
protected java.util.Map<BCModeler.Option,java.lang.Object> |
_configuration
The configuration for the entity usage. |
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 ServiceEnabler |
_serviceEnabler
The service enabler. |
protected BCModelerWriter |
_writer
Modeler writer. |
protected static java.lang.String |
BI_ENTITY_ALIAS
|
protected static java.lang.String |
BI_EO_USAGE_NAME
|
protected static AbstractBCModeler.TokenWrapper |
SQL_STRING_WRAPPER
A SQL String wrapper. |
Constructor Summary | |
---|---|
protected |
AbstractBCModeler(FlexfieldNamespace namespace,
FlexfieldDef ff,
FlexfieldEntityUsage flexEntityUsage,
BCModelerWriter writer,
java.util.Map<BCModeler.Option,java.lang.Object> configuration)
Constructs a modeler. |
Method Summary | |
---|---|
protected java.util.List<AbstractBCModeler.FlattenedSegment> |
addBIPrimaryKeys(java.util.List<AbstractBCModeler.FlattenedSegment> list)
Adds primary key attributes to a flattened segment list. |
protected AbstractBCModeler.FlattenedSegment |
addBISegmentProperties(AbstractBCModeler.FlattenedSegment fs)
Adds properties to a flattened segment. |
protected void |
addContextNameToResourceBundle(java.lang.String bundleOwnerName,
ContextValueDef cvd)
Adds the context name to the resource bundle. |
protected oracle.jbo.server.AttributeDefImpl |
addEntityTransientAttribute(oracle.jbo.server.EntityDefImpl eoDef,
java.lang.String attributeName,
java.lang.Class javaType)
Adds transient attribute for the entity object. |
protected void |
addEntityValueSetCustomProperties(SegmentDef seg,
oracle.jbo.server.AttributeDefImpl adi)
Setup of custom properties for EFF entity attributes to be used later for value set processing in view object. |
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 AbstractBCModeler.SegmentAttributeInfo |
addSegmentAttr(oracle.jbo.server.ViewDefImpl viewDef,
SegmentDef seg,
AbstractBCModeler.IntegerSequence aliasSeq,
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 |
addSegmentAttribute(oracle.jbo.server.ViewDefImpl viewDef,
SegmentDef seg,
AbstractBCModeler.IntegerSequence aliasSeq,
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)
Deprecated. Use #addSegmentAttr instead. |
protected void |
addValueSetParameterTransients(oracle.jbo.server.ViewDefImpl viewDef,
SegmentDefList segments)
Adds transient attributes for flexfield parameters used in the value sets of a list of segments. |
protected void |
addValueSetTransients(oracle.jbo.server.ViewDefImpl viewDef)
Adds transient attributes for the use of value sets. |
void |
build()
Builds the model. |
protected void |
buildBIApplicationModule(AbstractBCModeler.BIViewUsageInfo vuInfo,
AbstractBCModeler.FlattenedModel flattenedModel)
Builds a BI application module. |
protected void |
buildBIAssociation(oracle.jbo.server.EntityDefImpl entityDef,
AbstractBCModeler.BIValueLinkInfo info)
Builds a BI entity association. |
protected AbstractBCModeler.BIEntity |
buildBIEntity(java.util.List<AbstractBCModeler.FlattenedSegment> segments,
AbstractBCModeler.FlattenedSegment concatSeg,
java.lang.String aliasName)
Builds a BI entity. |
protected AbstractBCModeler.BIEntity |
buildBIEntity(java.util.List<AbstractBCModeler.FlattenedSegment> segments,
java.lang.String aliasName)
Builds a BI entity. |
protected AbstractBCModeler.BIValueLinkInfo |
buildBIValueLink(AbstractBCModeler.FlattenedSegment fseg,
java.lang.String preferredInstanceName)
Builds a link to the view object that provides the value. |
protected AbstractBCModeler.BIViewUsageInfo |
buildBIViewDefAndViewLinks(AbstractBCModeler.BIEntity biEntity,
java.util.List<AbstractBCModeler.FlattenedSegment> segments)
Builds a BI view definition based on an entity and create view links based on the segment information. |
protected void |
buildBIViewLink(oracle.jbo.server.ViewDefImpl viewDef,
AbstractBCModeler.BIValueLinkInfo info)
Builds a BI view link. |
protected abstract void |
buildInternal()
Builds the model. |
protected void |
buildListDataSourceViewObjects(FlexfieldEntity flexfieldEntity)
Builds the view objects used for lists of values. |
protected AbstractBCModeler.SegmentAttributeInfo |
buildSegmentAttr(oracle.jbo.server.ViewDefImpl viewDef,
SegmentDef seg,
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,
oracle.jbo.server.AttributeDefImpl adi)
This is a complex process which involves adding transient attributes, view accessors, list bindings, and anything that is required for the segment to function properly at runtime. |
protected static java.lang.String |
concatenate(java.util.List<java.lang.String> list,
java.lang.String delimiter)
Concatenates a list of strings together. |
protected static java.lang.String |
concatenate(java.util.List<java.lang.String> list,
java.lang.String delimiter,
AbstractBCModeler.TokenWrapper wrapper)
Concatenates a list of Strings together. |
static AbstractBCModeler.SegmentAttrElements |
copySegmentAttrElements(oracle.jbo.server.ViewDefImpl srcViewDef,
oracle.jbo.server.AttributeDefImpl srcAttrDef,
oracle.jbo.server.ViewDefImpl dstViewDef,
oracle.jbo.server.AttributeDefImpl dstAttrDef,
java.util.Map<java.lang.String,java.lang.String> attrNameMap)
Internal Use Only. |
protected static void |
copyTypeInfoFromEntity(AbstractBCModeler.FlattenedSegment fs,
oracle.jbo.AttributeDef adi)
Copy the necessary type information from an attribute definition to a flattened segment definition. |
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 static java.lang.String |
escapeSQLString(java.lang.String s)
Prepares a String for being used as a SQL String literal. |
protected static java.lang.String |
getAlias(java.lang.String name,
AbstractBCModeler.IntegerSequence intSeq)
Constructs a SQL alias by shortening the name and append a sequence number. |
protected AbstractBCModeler.BIValueLinkInfo |
getBIAssociationInfo(AbstractBCModeler.BIEntity biEntity,
AbstractBCModeler.FlattenedSegment fs)
Gets the BI association info. |
protected AbstractBCModeler.FlattenedSegment |
getBIConcatenatedSegments(java.lang.String tableAlias,
boolean includeGlobals)
Gets the segment that represents the concatenated segment values. |
protected java.util.List<java.lang.String> |
getBIEqualizationLabels(SegmentDef seg)
Gest the list of BI equalization labels for a segment. |
protected java.lang.String |
getBIModelType()
Gets the value of property FND_ACFF_Type for BI objects. |
protected java.lang.String |
getBITransactionAMDefFullName()
Gets the full name of the application module definition of the main model. |
protected AbstractBCModeler.FlattenedModel |
getCachedBIFlattenedModel(boolean useDiscrAltKeyForSummary)
Gets the cached flattened model for BI. |
protected java.util.Map<java.lang.Object,java.lang.String> |
getDiscrValueToViewObjectMap()
Gets the map from discriminator values to full names of the corresponding view definitions. |
protected java.lang.Class |
getEntityAttributeType(SegmentDef seg)
|
protected int |
getEstimatedListObjWriteCount()
Gets the estimated number of list objects to be created or updated. |
protected abstract FlexfieldEntity |
getFlexfieldEntity()
Gets the flexfield entity. |
java.util.List<java.lang.String> |
getPackages()
Gets the list of packages that will be created or updated. |
protected LOVDef.PropertyBoundValue |
getPropertyBoundValue(java.lang.Object discrValue,
SegmentDef seg)
|
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 oracle.apps.fnd.applcore.flex.runtime.util.ResourceBundleBuilder |
getResourceBundleBuilder(java.lang.String srcDefFullName)
Gets the resource bundle builder for an object. |
protected java.lang.Class |
getResourceBundleClass()
Gets the resource bundle class. |
java.lang.String |
getVersion()
Gets the version of this modeler. |
protected boolean |
isBIRequired(SegmentDef biDisabledGlobalSeg)
Returns true if a segment is BI-disabled but required to be included in the final model. |
protected boolean |
isDebugMode()
Returns true if this modeler should run in debug mode. |
protected boolean |
isValueSetValueDisplaySupported()
Returns true if the model should support the use of "display values" for ID-based and translatable value sets. |
protected AbstractBCModeler.P13nModeler |
newP13nModeler()
Creates a new modeler for creating entity personalization. |
protected void |
personalizeEffEntity(FlexfieldEntity fe,
ContextValueDef targetContext,
boolean useAltDiscrValue)
Personalizes flexfield entity directly within the definition. |
protected void |
personalizeFlexfieldEntity(FlexfieldEntity fe,
ContextValueDef targetContext,
boolean useAltDiscrValue,
BCModelerWriter writer,
boolean queued)
Personalizes flexfield entity. |
protected void |
populateBIAMProperties(oracle.jbo.server.ApplicationModuleDefImpl amDef)
Populates BI AM properties. |
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 |
populateDiscrViewObjectMap(oracle.jbo.server.ViewDefImpl viewDef)
Populates the discr-value-to-view-object map as custom properties. |
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 void |
populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi,
oracle.jbo.server.RowDef rowDef,
ContextValueDef context,
SegmentDef segDef)
Populates the UI hints for a segment of a particular context. |
protected void |
populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi,
SegmentDef segDef,
boolean isRequired,
java.lang.String bundleOwnerName)
Populates the UI hints. |
protected static void |
populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi,
UIHints uih,
boolean isRequired)
Deprecated. |
protected void |
populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi,
UIHints uih,
boolean isRequired,
java.lang.String bundleOwnerName)
Deprecated. |
protected void |
setDebugMode(boolean b)
Sets whether this modeler should run in debug mode. |
protected void |
setResourceBundleClass(oracle.jbo.server.ViewDefImpl vdi)
Sets the resource bundle class for a view definition. |
Methods inherited from class oracle.apps.fnd.applcore.flex.runtime.util.BCModeler |
---|
escapeJavaString, getFactory, getFactory, isDevelopmentMode, main, notifyAction, notifyProgress, notifyProgress, run, run, run |
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
protected final java.util.Map<BCModeler.Option,java.lang.Object> _configuration
protected final ServiceEnabler _serviceEnabler
protected static final AbstractBCModeler.TokenWrapper SQL_STRING_WRAPPER
protected static final java.lang.String BI_EO_USAGE_NAME
protected static final java.lang.String BI_ENTITY_ALIAS
Constructor Detail |
---|
protected AbstractBCModeler(FlexfieldNamespace namespace, FlexfieldDef ff, FlexfieldEntityUsage flexEntityUsage, BCModelerWriter writer, java.util.Map<BCModeler.Option,java.lang.Object> configuration)
namespace
- the namespaceff
- the flexfield definitionflexEntityUsage
- the entity usagewriter
- the modeler writerconfiguration
- the entity usage configuration
java.lang.IllegalArgumentException
- if any of the arguments is nullMethod Detail |
---|
public java.lang.String getVersion()
BCModeler
getVersion
in class BCModeler
public java.util.List<java.lang.String> getPackages()
BCModeler
getPackages
in class BCModeler
BCModeler.run(Arguments)
protected abstract FlexfieldEntity getFlexfieldEntity()
protected final FlexfieldEntity createFlexfieldEntity()
protected final void setDebugMode(boolean b)
b
- true if this modeler should run in debug modeprotected final boolean isDebugMode()
public final void build()
buildInternal
.
build
in class BCModeler
buildInternal()
public java.util.List<java.lang.String> getReport()
BCModeler
getReport
in class BCModeler
protected abstract void buildInternal()
protected int getEstimatedListObjWriteCount()
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.applcore.flex.runtime.util.common.SegmentDef, oracle.apps.fnd.applcore.flex.runtime.util.AbstractBCModeler.IntegerSequence, java.lang.String, oracle.apps.fnd.applcore.flex.runtime.util.FlexfieldEntity, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList, oracle.apps.fnd.applcore.flex.runtime.util.common.ContextValueDef, boolean)
protected LOVDef.PropertyBoundValue getPropertyBoundValue(java.lang.Object discrValue, SegmentDef seg)
protected final void buildListDataSourceViewObjects(FlexfieldEntity flexfieldEntity)
flexfieldEntity
- the flexfield entity (null for Eff case)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 static java.lang.String concatenate(java.util.List<java.lang.String> list, java.lang.String delimiter, AbstractBCModeler.TokenWrapper wrapper)
list
- the list of Stringsdelimiter
- the delimiterwrapper
- the wrapper that wraps each String in the list
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 oracle.jbo.server.AttributeDefImpl addSegmentAttribute(oracle.jbo.server.ViewDefImpl viewDef, SegmentDef seg, AbstractBCModeler.IntegerSequence aliasSeq, 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 segmentaliasSeq
- the sequence used to construct the alias names; null if
alias names should not be setentityUsageName
- 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.applcore.flex.runtime.util.common.SegmentDef)
,
addSegmentAttr(oracle.jbo.server.ViewDefImpl, oracle.apps.fnd.applcore.flex.runtime.util.common.SegmentDef, oracle.apps.fnd.applcore.flex.runtime.util.AbstractBCModeler.IntegerSequence, java.lang.String, oracle.apps.fnd.applcore.flex.runtime.util.FlexfieldEntity, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList, oracle.apps.fnd.applcore.flex.runtime.util.common.ContextValueDef, boolean)
protected AbstractBCModeler.SegmentAttributeInfo addSegmentAttr(oracle.jbo.server.ViewDefImpl viewDef, SegmentDef seg, AbstractBCModeler.IntegerSequence aliasSeq, 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 segmentaliasSeq
- the sequence used to construct the alias names; null if
alias names should not be setentityUsageName
- 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.applcore.flex.runtime.util.common.SegmentDef)
public static AbstractBCModeler.SegmentAttrElements copySegmentAttrElements(oracle.jbo.server.ViewDefImpl srcViewDef, oracle.jbo.server.AttributeDefImpl srcAttrDef, oracle.jbo.server.ViewDefImpl dstViewDef, oracle.jbo.server.AttributeDefImpl dstAttrDef, java.util.Map<java.lang.String,java.lang.String> attrNameMap)
Copies the segment information including the associated elements such as view accessors, list bindings, etc. from one view attribute to another. Any extra transient attributes required for the source view attribute to function will also be added to the destination view definition.
Note that this method does not copy the discrColumn
flag
or the default value of the source view attribute to the destination.
This method does not copy objects referenced by the source view attribute.
For example, if a view accessor is associated with the source attribute,
you must ensure that the view object accessed by the view accessor is
also accessible by the destination view object.
srcViewDef
- the source view definitionsrcAttrDef
- the source view attributedstViewDef
- the destination view definitiondstAttrDef
- the destination attributeattrNameMap
- the mapping from the source view attribute names to the
destination view attribute names. This map does not
have to include all attributes, but if the given
source view attribute depends on another view
attribute, this map must provide the new name of the
dependent attribute; otherwise an exception will be
thrown.
java.lang.IllegalArgumentException
- if any of the arguments is null, or
if the source does not have enough informationprotected AbstractBCModeler.SegmentAttributeInfo buildSegmentAttr(oracle.jbo.server.ViewDefImpl viewDef, SegmentDef seg, 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, oracle.jbo.server.AttributeDefImpl adi)
viewDef
- the view objectseg
- the segmentflexfieldEntity
- 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.adi
- the attribute def impl corresponding to this segment
getPropertyBoundValue(java.lang.Object, oracle.apps.fnd.applcore.flex.runtime.util.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 null@Deprecated protected void populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi, UIHints uih, boolean isRequired, java.lang.String bundleOwnerName)
adi
- the segment attributeuih
- the UI hintsisRequired
- true if the segment value cannot be nullbundleOwnerName
- the full name of the owner of the resource bundle
to be used; null if no resource bundle should be
used. The owner is usually a view or entity
definition.protected void populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi, SegmentDef segDef, boolean isRequired, java.lang.String bundleOwnerName)
adi
- the segment attributesegDef
- the segment definitionisRequired
- true if the segment value cannot be nullbundleOwnerName
- the full name of the owner of the resource bundle
to be used; null if no resource bundle should be
used. The owner is usually a view or entity
definition.protected void populateSegmentUIHints(oracle.jbo.server.AttributeDefImpl adi, oracle.jbo.server.RowDef rowDef, ContextValueDef context, SegmentDef segDef)
adi
- the attribute definition of the segmentrowDef
- the definition object that the attribute belongs tocontext
- the contextsegDef
- the segment definitionprotected oracle.apps.fnd.applcore.flex.runtime.util.ResourceBundleBuilder getResourceBundleBuilder(java.lang.String srcDefFullName)
srcDefFullName
- the full name of the object
protected void addContextNameToResourceBundle(java.lang.String bundleOwnerName, ContextValueDef cvd)
bundleOwnerName
- the name of the bundle ownercvd
- the contextprotected java.util.Map<java.lang.Object,java.lang.String> getDiscrValueToViewObjectMap()
FlexfieldNamespace
object to construct the view definition
full names, and calls ContextValueDef#getValue()
to obtain
the discriminator value. Subclasses should override this method if the
naming of the view objects is different, or the alternative values should
be used.
This method is invoked by populateDiscrViewObjectMap
.
populateDiscrViewObjectMap(ViewDefImpl)
protected void populateDiscrViewObjectMap(oracle.jbo.server.ViewDefImpl viewDef)
OAViewObjecTImpl#findViewDefFromDiscrVals
in case "lazy
loading" is turned on.
viewDef
- the view definition where the map should be storedprotected 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.P13nModeler newP13nModeler()
protected void personalizeFlexfieldEntity(FlexfieldEntity fe, ContextValueDef targetContext, boolean useAltDiscrValue, BCModelerWriter writer, boolean queued)
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 subtypeswriter
- the writerqueued
- true if the update does not need to be committed immediatelyprotected void personalizeEffEntity(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 subtypesprotected java.lang.Class getResourceBundleClass()
protected final void setResourceBundleClass(oracle.jbo.server.ViewDefImpl vdi)
getResourceBundleClass
.
vdi
- the view definitiongetResourceBundleClass()
protected boolean isValueSetValueDisplaySupported()
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.applcore.flex.runtime.util.common.SegmentDef, oracle.apps.fnd.applcore.flex.runtime.util.AbstractBCModeler.IntegerSequence, java.lang.String, oracle.apps.fnd.applcore.flex.runtime.util.FlexfieldEntity, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList, oracle.apps.fnd.applcore.flex.runtime.util.common.ContextValueDef, boolean)
protected final void addValueSetParameterTransients(oracle.jbo.server.ViewDefImpl viewDef, SegmentDefList segments)
viewDef
- the view definitionsegments
- the list of segmentsprotected oracle.jbo.server.AttributeDefImpl addEntityTransientAttribute(oracle.jbo.server.EntityDefImpl eoDef, java.lang.String attributeName, java.lang.Class javaType)
eoDef
- the entity objectattributeName
- name of the attributejavaType
- java type of the attribute
protected java.lang.Class getEntityAttributeType(SegmentDef seg)
protected void addEntityValueSetCustomProperties(SegmentDef seg, oracle.jbo.server.AttributeDefImpl adi)
seg
- EFF segment defadi
- EFF entity attribute def implprotected java.util.List<java.lang.String> getBIEqualizationLabels(SegmentDef seg)
seg
- the segment
#getBIFlattenedSegments
protected java.util.List<AbstractBCModeler.FlattenedSegment> addBIPrimaryKeys(java.util.List<AbstractBCModeler.FlattenedSegment> list)
list
- the list of flattened segments
getBIFlattenedModel(java.lang.String, boolean)
protected static void copyTypeInfoFromEntity(AbstractBCModeler.FlattenedSegment fs, oracle.jbo.AttributeDef adi)
fs
- the flattened segment definitionadi
- the attribute definitionprotected static java.lang.String getAlias(java.lang.String name, AbstractBCModeler.IntegerSequence intSeq)
name
- the nameintSeq
- the sequence generator
AbstractBCModeler.IntegerSequence
protected AbstractBCModeler.FlattenedSegment getBIConcatenatedSegments(java.lang.String tableAlias, boolean includeGlobals)
tableAlias
- the table alias for the segment columnsincludeGlobals
- true if the global segments should be part of the
concatenated String
protected static java.lang.String escapeSQLString(java.lang.String s)
s
- the string to be escaped
protected AbstractBCModeler.FlattenedModel getCachedBIFlattenedModel(boolean useDiscrAltKeyForSummary)
getBIFlattenedModel
is called to create the flattened model
and then the flattened model is placed in the cache.
useDiscrAltKeyForSummary
- true if the alternate keys of discriminator
values should be used in the summary
protected boolean isBIRequired(SegmentDef biDisabledGlobalSeg)
biDisabledGlobalSeg
- the segment to check
protected AbstractBCModeler.FlattenedSegment addBISegmentProperties(AbstractBCModeler.FlattenedSegment fs)
fs
- the flattened segment
protected AbstractBCModeler.BIValueLinkInfo buildBIValueLink(AbstractBCModeler.FlattenedSegment fseg, java.lang.String preferredInstanceName)
fseg
- the flattened segment.preferredInstanceName
- the preferred name of the instance
protected AbstractBCModeler.BIEntity buildBIEntity(java.util.List<AbstractBCModeler.FlattenedSegment> segments, java.lang.String aliasName)
segments
- the segments to be included in the entityaliasName
- the alias name
protected AbstractBCModeler.BIEntity buildBIEntity(java.util.List<AbstractBCModeler.FlattenedSegment> segments, AbstractBCModeler.FlattenedSegment concatSeg, java.lang.String aliasName)
segments
- the segments to be included in the entityconcatSeg
- the concatenated segment valuesaliasName
- the alias name
protected AbstractBCModeler.BIValueLinkInfo getBIAssociationInfo(AbstractBCModeler.BIEntity biEntity, AbstractBCModeler.FlattenedSegment fs)
biEntity
- the BI entityfs
- the flattened segment
protected java.lang.String getBIModelType()
protected java.lang.String getBITransactionAMDefFullName()
protected void populateBIAMProperties(oracle.jbo.server.ApplicationModuleDefImpl amDef)
amDef
- the AM definitionprotected AbstractBCModeler.BIViewUsageInfo buildBIViewDefAndViewLinks(AbstractBCModeler.BIEntity biEntity, java.util.List<AbstractBCModeler.FlattenedSegment> segments)
biEntity
- the BIEntity objectsegments
- the segment information
protected void buildBIViewLink(oracle.jbo.server.ViewDefImpl viewDef, AbstractBCModeler.BIValueLinkInfo info)
viewDef
- the view definitioninfo
- the view link informationprotected void buildBIAssociation(oracle.jbo.server.EntityDefImpl entityDef, AbstractBCModeler.BIValueLinkInfo info)
entityDef
- the entity definitioninfo
- the association informationprotected void buildBIApplicationModule(AbstractBCModeler.BIViewUsageInfo vuInfo, AbstractBCModeler.FlattenedModel flattenedModel)
vuInfo
- the BI view usage information
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |