Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.flex.runtime.util.common.category
Class CategoryJboCreator

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.category.CategoryJboCreator
Direct Known Subclasses:
CategoryContextJboCreator

public class CategoryJboCreator
extends java.lang.Object

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/applcore/applications/FlexModeler/Model/src/oracle/apps/fnd/applcore/flex/runtime/util/common/category/CategoryJboCreator.java /main/122 2010/11/10 21:33:38 kkapani Exp $
Author:
ssarnoba

Field Summary
protected static java.lang.String EFF_CATEGORY_CODE
           
protected static java.lang.String EFF_CONTEXT_CODE
           
protected static java.lang.String EFF_CONTEXT_SEGMENT_CODE
           
protected static java.lang.String EFF_CONTEXT_SEGMENT_NAME
           
protected static java.lang.String EFF_CONTEXT_USAGE
           
protected static java.lang.String EFF_CONTEXT_VO_ATTR_NAME
           
protected static java.lang.String EFF_CONTEXT_VO_FULL_NAME
           
protected static java.lang.String EFF_FLEX_USAGE_CODE
           
 
Constructor Summary
CategoryJboCreator()
           
 
Method Summary
protected static void addAllSubtypesOfMainPathCategoriesIncludingSiblings(CategoryDef cDefLeaf)
           
protected static void addPropertyToVoDef(oracle.jbo.server.ViewDefImpl voDef, java.lang.String propertyName, java.lang.String propertyValue)
           
static void buildCategoryArtifactsWithoutPersisting(CategoryDef cDef)
           
static oracle.jbo.server.ApplicationModuleDefImpl defineApplicationModule(java.lang.String amDefFullName, java.lang.String baseApplicationModulePdefFullName, Persistables persistables, int functionCode, CategoryDef cDef, java.lang.String shippedEffAmDefFullName, java.lang.String effGroupCode)
           
static void deleteCategoryAndAncestorsArtifacts(CategoryDef cDef, java.util.Map<java.lang.Integer,java.util.Set<PreviouslyModeledCategory>> functionCodeToPreviouslyModeledCategories, boolean delayCategoryInvariantPersisting)
           
static oracle.jbo.ApplicationModule deleteCategoryAndAncestorsArtifacts(java.lang.String applicationId, java.lang.String leafCategoryCode, java.lang.String dffCode, ApplicationResources connUrl, EffCustomizations customizations, CategoryConfig categoryConfig, java.util.Map<java.lang.Integer,java.util.Set<PreviouslyModeledCategory>> functionCodeToPreviouslyModeledCategories, boolean delayCategoryInvariantPersisting)
           
static void deRegisterDef(oracle.jbo.mom.PersistableDefObject def)
          This api is de registers the definition, so theat the definition can be garbage collected.
static void deRegisterDef(oracle.jbo.mom.PersistableDefObject def, boolean deregisterParents)
           
protected static void determineOtherDescendantCategoryDefs(CategoryDef commonParentCategoryOfAllSiblings, CategoryDef excludedChildCategoryDef)
          Finds out all the child categories (direct and indirect) of the common parent category, excluding 'excludedChildCategoryDef' and its child categories
static void initPDefApplicationModuleHolderPool()
           
protected static boolean isDeclarative(oracle.jbo.server.ViewDefImpl csCategoryVo)
           
static boolean isDisplayAttr(oracle.jbo.AttributeDef superVoAttr)
           
protected static boolean isSqlDerivedAttr(oracle.jbo.AttributeDef eoAttrDef)
           
static boolean isTransientAttr(oracle.jbo.AttributeDef eoAttrDef)
           
static void persistCategoryArtifacts(boolean persistAms, boolean isLeafLevelCategory, CategoryDef cDef, boolean persistCategoryInvariantJbos, boolean persistCategoryVariantJbos)
           
protected static void persistCategoryInvariantAmPersonalizations(Persistables persistables, CategoryDef cDef, int functionCode)
           
static void persistCategoryInvariantArtifacts(CategoryDef leafCategoryDef, boolean isLeafLevelCategory)
           
static void persistCategoryVariantArtifacts(CategoryDef cDef, boolean isLeafLevelCategory)
           
static void persistDefObject(oracle.jbo.mom.PersistableDefObject def, CategoryDef cDef, int functionCode)
           
static void persistPDefApplicationModuleHolderPool()
           
static void resetPDefApplicationModuleHolderPool()
           
static void restoreOtherDescendantContentsInCommonParentCategoryJbos(java.util.List<CategoryDef> otherDescendantCdefs, CategoryDef excludedChildCategoryDef)
          This is NOT recursive.
protected static void setCategoryInvariantDeclarativeVoCategoryIsModeled(oracle.jbo.server.ViewDefImpl voDef, java.lang.String categoryCode)
           
protected static void setVersionUsingSourceDef(oracle.jbo.mom.PersistableDefObject targetDefObject, oracle.jbo.mom.PersistableDefObject sourceDefObject)
           
static void writeDef(oracle.jbo.mom.PersistableDefObject def)
           
protected static void wsBuildCategoryJbos(CategoryDef cDef)
           
protected static void wsPersistVoPdefs(CategoryDef cDef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EFF_CONTEXT_VO_FULL_NAME

protected static final java.lang.String EFF_CONTEXT_VO_FULL_NAME
See Also:
Constant Field Values

EFF_CONTEXT_VO_ATTR_NAME

protected static final java.lang.String EFF_CONTEXT_VO_ATTR_NAME
See Also:
Constant Field Values

EFF_CONTEXT_USAGE

protected static final java.lang.String EFF_CONTEXT_USAGE
See Also:
Constant Field Values

EFF_CONTEXT_CODE

protected static final java.lang.String EFF_CONTEXT_CODE
See Also:
Constant Field Values

EFF_CONTEXT_SEGMENT_CODE

protected static final java.lang.String EFF_CONTEXT_SEGMENT_CODE
See Also:
Constant Field Values

EFF_CONTEXT_SEGMENT_NAME

protected static final java.lang.String EFF_CONTEXT_SEGMENT_NAME
See Also:
Constant Field Values

EFF_FLEX_USAGE_CODE

protected static final java.lang.String EFF_FLEX_USAGE_CODE
See Also:
Constant Field Values

EFF_CATEGORY_CODE

protected static final java.lang.String EFF_CATEGORY_CODE
See Also:
Constant Field Values
Constructor Detail

CategoryJboCreator

public CategoryJboCreator()
Method Detail

buildCategoryArtifactsWithoutPersisting

public static void buildCategoryArtifactsWithoutPersisting(CategoryDef cDef)

defineApplicationModule

public static oracle.jbo.server.ApplicationModuleDefImpl defineApplicationModule(java.lang.String amDefFullName,
                                                                                 java.lang.String baseApplicationModulePdefFullName,
                                                                                 Persistables persistables,
                                                                                 int functionCode,
                                                                                 CategoryDef cDef,
                                                                                 java.lang.String shippedEffAmDefFullName,
                                                                                 java.lang.String effGroupCode)
Parameters:
amDefFullName -
baseApplicationModulePdefFullName -
Returns:

setVersionUsingSourceDef

protected static void setVersionUsingSourceDef(oracle.jbo.mom.PersistableDefObject targetDefObject,
                                               oracle.jbo.mom.PersistableDefObject sourceDefObject)
Parameters:
targetDefObject - - where the version number gets written to
sourceDefObject - - where the version number gets copied from

persistDefObject

public static void persistDefObject(oracle.jbo.mom.PersistableDefObject def,
                                    CategoryDef cDef,
                                    int functionCode)
Parameters:
def -
Since:
2008-08-01

persistCategoryArtifacts

public static void persistCategoryArtifacts(boolean persistAms,
                                            boolean isLeafLevelCategory,
                                            CategoryDef cDef,
                                            boolean persistCategoryInvariantJbos,
                                            boolean persistCategoryVariantJbos)

persistCategoryInvariantAmPersonalizations

protected static void persistCategoryInvariantAmPersonalizations(Persistables persistables,
                                                                 CategoryDef cDef,
                                                                 int functionCode)

deleteCategoryAndAncestorsArtifacts

public static void deleteCategoryAndAncestorsArtifacts(CategoryDef cDef,
                                                       java.util.Map<java.lang.Integer,java.util.Set<PreviouslyModeledCategory>> functionCodeToPreviouslyModeledCategories,
                                                       boolean delayCategoryInvariantPersisting)

isTransientAttr

public static boolean isTransientAttr(oracle.jbo.AttributeDef eoAttrDef)

isSqlDerivedAttr

protected static boolean isSqlDerivedAttr(oracle.jbo.AttributeDef eoAttrDef)

persistCategoryVariantArtifacts

public static void persistCategoryVariantArtifacts(CategoryDef cDef,
                                                   boolean isLeafLevelCategory)

deleteCategoryAndAncestorsArtifacts

public static oracle.jbo.ApplicationModule deleteCategoryAndAncestorsArtifacts(java.lang.String applicationId,
                                                                               java.lang.String leafCategoryCode,
                                                                               java.lang.String dffCode,
                                                                               ApplicationResources connUrl,
                                                                               EffCustomizations customizations,
                                                                               CategoryConfig categoryConfig,
                                                                               java.util.Map<java.lang.Integer,java.util.Set<PreviouslyModeledCategory>> functionCodeToPreviouslyModeledCategories,
                                                                               boolean delayCategoryInvariantPersisting)

persistCategoryInvariantArtifacts

public static void persistCategoryInvariantArtifacts(CategoryDef leafCategoryDef,
                                                     boolean isLeafLevelCategory)

wsBuildCategoryJbos

protected static void wsBuildCategoryJbos(CategoryDef cDef)

wsPersistVoPdefs

protected static void wsPersistVoPdefs(CategoryDef cDef)

restoreOtherDescendantContentsInCommonParentCategoryJbos

public static void restoreOtherDescendantContentsInCommonParentCategoryJbos(java.util.List<CategoryDef> otherDescendantCdefs,
                                                                            CategoryDef excludedChildCategoryDef)
This is NOT recursive. We get a flat list of all descendants and add the subtypes through the ancestor trail.


isDeclarative

protected static boolean isDeclarative(oracle.jbo.server.ViewDefImpl csCategoryVo)

determineOtherDescendantCategoryDefs

protected static void determineOtherDescendantCategoryDefs(CategoryDef commonParentCategoryOfAllSiblings,
                                                           CategoryDef excludedChildCategoryDef)
Finds out all the child categories (direct and indirect) of the common parent category, excluding 'excludedChildCategoryDef' and its child categories


setCategoryInvariantDeclarativeVoCategoryIsModeled

protected static void setCategoryInvariantDeclarativeVoCategoryIsModeled(oracle.jbo.server.ViewDefImpl voDef,
                                                                         java.lang.String categoryCode)

addPropertyToVoDef

protected static void addPropertyToVoDef(oracle.jbo.server.ViewDefImpl voDef,
                                         java.lang.String propertyName,
                                         java.lang.String propertyValue)

isDisplayAttr

public static boolean isDisplayAttr(oracle.jbo.AttributeDef superVoAttr)

addAllSubtypesOfMainPathCategoriesIncludingSiblings

protected static void addAllSubtypesOfMainPathCategoriesIncludingSiblings(CategoryDef cDefLeaf)

initPDefApplicationModuleHolderPool

public static void initPDefApplicationModuleHolderPool()

resetPDefApplicationModuleHolderPool

public static void resetPDefApplicationModuleHolderPool()

persistPDefApplicationModuleHolderPool

public static void persistPDefApplicationModuleHolderPool()

deRegisterDef

public static void deRegisterDef(oracle.jbo.mom.PersistableDefObject def)
This api is de registers the definition, so theat the definition can be garbage collected. Should be ideally called on definitions which would no longer be needed

Parameters:
def - - the definition which needs to be de registered.
deregisterParents - - Flag to deregister the parent definition.

deRegisterDef

public static void deRegisterDef(oracle.jbo.mom.PersistableDefObject def,
                                 boolean deregisterParents)

writeDef

public static void writeDef(oracle.jbo.mom.PersistableDefObject def)

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.