Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.jbo.server
Class PDefEntityObject

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      extended by oracle.jbo.mom.DefinitionObject
          extended by oracle.jbo.mom.PersistableDefObject
              extended by oracle.jbo.mom.PersDefBase
                  extended by oracle.jbo.server.PDefComponentObjectBase
                      extended by oracle.jbo.server.PDefRow
                          extended by oracle.jbo.server.PDefEntityObject

All Implemented Interfaces:
ResourceBundleOwner, PersonalizableDef, DefPersistable, PersistentDefinition, VariableManagerOwner, VariableManagerOwnerBase

public class PDefEntityObject
extends PDefRow

Note that there could dependency from PDefViewObject to PDefEntityObject. Suppose the PDefViewObject defines an attribute definition based on an attr coming from PDefEntityObject. When the PDefViewObject is loaded from XML, we create a ViewAttributeDefImpl on the PDefViewObject and copy the attr def values from PDefEntityObject.

If this PDefEntityObject's attribute is changed later, and nothing cuased the PDefViewObject to be reloaded from XML, the PDefViewObject may end up with stale definition. To fix this problem, Jedi code will invoke DefinitionManager::removeAllSessionDefinitions() to 'dump' all session definitions and pers definitions.

Any ADFbc client who performs similar DTRT operations, should make the same call. However, one must take care when calling removeAllSessionDefinitions() as it will remove all session defs and clear out the MDS cache.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.jbo.mom.PersistableDefObject
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType

 

Field Summary

 

Fields inherited from class oracle.jbo.mom.DefinitionObject
DEF_MDS_CLIENT_KEY, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAP

 

Fields inherited from class oracle.jbo.common.NamedObjectImpl
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX

 

Fields inherited from interface oracle.jbo.mom.xml.DefPersistable
XML_STATEMENT

 

Constructor Summary
PDefEntityObject()
           
PDefEntityObject(EntityDefImpl entityDef)
           

 

Method Summary
 AssociationDefImpl addAssocAccessor(java.lang.String accName, java.lang.String assocName, java.lang.Class javaType)
           
 AttributeDefImpl addAttribute(java.lang.String attrName, java.lang.String columnName, java.lang.Class javaType, boolean isPersistent)
           
 void addEventDef(EventDef eventDef)
           
 void addEventMapping(EventMapping eventMapping)
           
 void addTrigger(TriggerType trig, JboValidatorHints validator)
          Internal: Applications should not use this method. *
 void addValidator(JboValidatorHints validator)
           
 void applyPersonalization(java.lang.Object instance)
           
static PDefEntityObject findDefObject(java.lang.String persDefName)
           
static PDefEntityObject findDefObjectNoSub(java.lang.String persDefName)
           
 DefinitionObject findStaticDefinitionObject(java.lang.String fullName)
           
 StructureDef findStructureDefByName(java.lang.String structDefFullName)
           
 JboValidatorHints findValidator(java.lang.String name)
           
static java.lang.String[] getAllDefNames()
           
 java.lang.String getDefXMLNameSpace()
           
 java.util.ArrayList getEventDefs()
           
 java.util.ArrayList getEventMappings()
           
 java.util.ArrayList getPersTriggers(TriggerType trig)
          Internal: Applications should not use this method. *
 java.util.ArrayList getPersValidators()
           
 java.util.ArrayList getTriggers(TriggerType trig)
          Internal: Applications should not use this method. *
 java.util.ArrayList getValidators()
           
 void loadXMLAttrDefContents(DefElement elem, int index)
           
 void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
           
 JboValidatorHints lookupTrigger(TriggerType trig, java.lang.String valName)
          Internal: Applications should not use this method. *
 JboValidatorHints lookupValidator(java.lang.String valName)
           
 EventDef personalizeEventDef(java.lang.String name)
           
 EventMapping personalizeEventMapping(java.lang.String eventName, EventMapping.EventPointType type)
           
 JboValidatorHints personalizeTrigger(TriggerType trig, java.lang.String name, java.lang.String validatorType, java.lang.String validatorSubType)
          Internal: Applications should not use this method. *
 JboValidatorHints personalizeValidator(java.lang.String name, java.lang.String validatorType, java.lang.String validatorSubType)
           
protected  void processAccessors()
           
 void removeTrigger(TriggerType trig, java.lang.String valName)
          Internal: Applications should not use this method. *
 void removeValidator(java.lang.String valName)
           
 void writeChildren(DefWriter jos)
          Writes the Object's children to the Persistent storage
 void writeContents(DefWriter jos)
          Objects should write their persistence output in this method

 

Methods inherited from class oracle.jbo.server.PDefRow
addListBindingDef, addRowOperation, addScriptRowOperation, addViewAccessorDef, findAttributeDef, findListBindingDef, findRowOperationDefinition, findViewAccessorDef, getAttrDefsMap, getAttributeCount, getAttributeDef, getAttributeDefs, getAttributeDefs2, getAttributeIndexOf, getColumnNameForQuery, getHiddenAttributes, getHiddenAttributesList, getListBindingDefs, getPersonalizedAttributes, getRowOperationDefinitions, getViewAccessorDefs, hideAttribute, lookupAttributeDef, lookupListBindingDef, lookupPersonalizedAttribute, lookupRowOperationDefinition, lookupViewAccessorDef, personalizeAttribute, removeAttribute, removeHiddenAttribute, removeListBindingDef, removePersonalizedAttribute, removeRowOperation, removeViewAccessorDef, setEditable

 

Methods inherited from class oracle.jbo.server.PDefComponentObjectBase
addOperation, addScriptOperation, ensureVariableManager, findOperationDefinition, getMessageBundleClass, getOperationDefinitions, getPersonalizedVariables, getResourceBundleDef, getResourcePrefix, getVariableManager, hasPersonalizedComponentOperations, hasVariables, lookupOperationDefinition, lookupPersonalizedVariable, personalizeOperations, personalizeVariable, removeOperation, removePersonalizedVariable, setVariableManager

 

Methods inherited from class oracle.jbo.mom.PersDefBase
applyPropertiesPersonalization, deregisterDefObject, getBasePackage, getFileName, getStaticDef, getStaticDefWithCheck, getTrimmedFullName, mergePropertyMap, registerDefObject, registerSessionDefObject, removeProperty, resolveDefObject, saveXMLContents, setFullName, setFullName, setProperty, setPropertyExpression, setPropertyMap, setStaticDef

 

Methods inherited from class oracle.jbo.mom.PersistableDefObject
addDefImport, addExtendedDefObject, allocatePropertyMap, checkEditable, close, createFromXML, deregisterSessionObject, findDefImport, finishedLoading, getBaseDir, getDefImports, getDefManager, getDefWriter, getDefXMLElementTag, getEditObject, getExtendedDefObjectsInternal, getFullDirName, getFullFileName, getOrigObject, getPropertyMap, getSubstitutedNames, getXMLElementTag, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isNew, isPersonalizationEnabled, isPersonalizationEnabled, loadDefImports, objectRemoved, registerClass, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, updateChildrenList, verifyVersion, writeObject, writeVersion, writeXMLContents

 

Methods inherited from class oracle.jbo.mom.DefinitionObject
addPropertySetName, enableUpdateCheck, getBaseDefObject, getContainerDef, getContainerName, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, resolveReferences, setBaseDefObject, setBaseDefObject, setDefScope, setMdsKey, setMdsReference, setName, setObjectResolved, setParent, setPropertySetName, suppressUpdateCheck

 

Methods inherited from class oracle.jbo.common.NamedObjectImpl
getAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getResourcesFromBundle, getStringFromMessageBundle, isPropertyExpression, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setPropertiesMap, setPropertiesMap2, setProperty

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.jbo.VariableManagerOwner
getName

 

Methods inherited from interface oracle.jbo.mom.xml.DefPersistable
getFullName

 

Constructor Detail

PDefEntityObject

public PDefEntityObject()

PDefEntityObject

public PDefEntityObject(EntityDefImpl entityDef)

Method Detail

getAllDefNames

public static java.lang.String[] getAllDefNames()

findDefObjectNoSub

public static PDefEntityObject findDefObjectNoSub(java.lang.String persDefName)

findDefObject

public static PDefEntityObject findDefObject(java.lang.String persDefName)

findStaticDefinitionObject

public DefinitionObject findStaticDefinitionObject(java.lang.String fullName)
Specified by:
findStaticDefinitionObject in interface PersonalizableDef
Specified by:
findStaticDefinitionObject in class PersDefBase

getValidators

public java.util.ArrayList getValidators()

findValidator

public JboValidatorHints findValidator(java.lang.String name)

lookupValidator

public JboValidatorHints lookupValidator(java.lang.String valName)

addValidator

public void addValidator(JboValidatorHints validator)

removeValidator

public void removeValidator(java.lang.String valName)

getPersValidators

public java.util.ArrayList getPersValidators()

personalizeValidator

public JboValidatorHints personalizeValidator(java.lang.String name,
                                              java.lang.String validatorType,
                                              java.lang.String validatorSubType)

getTriggers

public java.util.ArrayList getTriggers(TriggerType trig)
Internal: Applications should not use this method. *
For internal use only. Application developers should not use this

lookupTrigger

public JboValidatorHints lookupTrigger(TriggerType trig,
                                       java.lang.String valName)
Internal: Applications should not use this method. *
For internal use only. Application developers should not use this

addTrigger

public void addTrigger(TriggerType trig,
                       JboValidatorHints validator)
Internal: Applications should not use this method. *
For internal use only. Application developers should not use this

removeTrigger

public void removeTrigger(TriggerType trig,
                          java.lang.String valName)
Internal: Applications should not use this method. *
For internal use only. Application developers should not use this

getPersTriggers

public java.util.ArrayList getPersTriggers(TriggerType trig)
Internal: Applications should not use this method. *
For internal use only. Application developers should not use this

personalizeTrigger

public JboValidatorHints personalizeTrigger(TriggerType trig,
                                            java.lang.String name,
                                            java.lang.String validatorType,
                                            java.lang.String validatorSubType)
Internal: Applications should not use this method. *
For internal use only. Application developers should not use this

getEventDefs

public java.util.ArrayList getEventDefs()

getEventMappings

public java.util.ArrayList getEventMappings()

addEventDef

public void addEventDef(EventDef eventDef)

personalizeEventDef

public EventDef personalizeEventDef(java.lang.String name)

addEventMapping

public void addEventMapping(EventMapping eventMapping)

personalizeEventMapping

public EventMapping personalizeEventMapping(java.lang.String eventName,
                                            EventMapping.EventPointType type)

addAssocAccessor

public AssociationDefImpl addAssocAccessor(java.lang.String accName,
                                           java.lang.String assocName,
                                           java.lang.Class javaType)

addAttribute

public AttributeDefImpl addAttribute(java.lang.String attrName,
                                     java.lang.String columnName,
                                     java.lang.Class javaType,
                                     boolean isPersistent)

findStructureDefByName

public StructureDef findStructureDefByName(java.lang.String structDefFullName)

processAccessors

protected void processAccessors()
Specified by:
processAccessors in class PDefRow

applyPersonalization

public void applyPersonalization(java.lang.Object instance)
Specified by:
applyPersonalization in interface PersonalizableDef
Specified by:
applyPersonalization in class PersDefBase

writeChildren

public void writeChildren(DefWriter jos)
Description copied from interface: PersistentDefinition
Writes the Object's children to the Persistent storage
Specified by:
writeChildren in interface PersistentDefinition
Overrides:
writeChildren in class PDefRow
Parameters:
jos - the Output storage for persistence

writeContents

public void writeContents(DefWriter jos)
Description copied from interface: PersistentDefinition
Objects should write their persistence output in this method
Specified by:
writeContents in interface PersistentDefinition
Overrides:
writeContents in class PersDefBase
Parameters:
jos - the Output storage for persistence

loadXMLContents

public void loadXMLContents(DefElement xmlElement,
                            java.lang.String fullName)
Overrides:
loadXMLContents in class PersDefBase

loadXMLAttrDefContents

public void loadXMLAttrDefContents(DefElement elem,
                                   int index)

getDefXMLNameSpace

public java.lang.String getDefXMLNameSpace()
Specified by:
getDefXMLNameSpace in interface PersistentDefinition
Overrides:
getDefXMLNameSpace in class PersistableDefObject

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


Copyright © 1997, 2011, Oracle. All rights reserved.