Skip navigation links
oracle.jbo.server
Class PDefEntityObject
java.lang.Object
oracle.jbo.common.NamedObjectImpl
oracle.jbo.mom.DefinitionObject
oracle.jbo.mom.PersistableDefObject
oracle.jbo.mom.PersDefBase
oracle.jbo.server.PDefComponentObjectBase
oracle.jbo.server.PDefRow
oracle.jbo.server.PDefEntityObject
- All Implemented Interfaces:
- ResourceBundleOwner, DiffMergeable, 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. Additionally Jedi ensures that PDefViewObject mirrors attribute level customizations done on the PDefEntityObject's personalized attributes so that runtime does not forget loading these personalizations.
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.
Fields inherited from class oracle.jbo.mom.DefinitionObject |
DEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAP |
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 |
applyDiffChildren(DifferDetails dif, DiffResolver resolver)
|
void |
applyDiffContents(DifferDetails dif, DiffResolver resolver)
|
void |
applyPersonalization(int mode, java.lang.Object instance)
|
DifferDetails |
diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
|
DifferDetails |
diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
|
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.lang.String |
getEditVersionsAsString()
|
java.util.ArrayList |
getEventDefs()
|
java.util.ArrayList |
getEventMappings()
|
oracle.jbo.server.InheritPersonalization |
getInheritPersonalizationValue()
|
protected int |
getLoadSubclassLevel()
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
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()
|
protected void |
loadDefVersions(DefElement xmlElement)
|
void |
loadXMLAttrDefContents(DefElement elem, int index)
|
void |
loadXMLContents(DefElement xmlElement, java.lang.String fullName)
|
JboValidatorHints |
lookupPersTrigger(TriggerType trig, java.lang.String valName)
|
JboValidatorHints |
lookupPersValidator(java.lang.String valName)
|
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()
|
boolean |
removeEventDef(java.lang.String name)
|
boolean |
removeEventMapping(java.lang.String name)
|
boolean |
removePayloadItem(java.lang.String eventDefName, java.lang.String attrName)
Removes the specified event payload item from this entity object, if it is present. |
boolean |
removePersTrigger(TriggerType trig, java.lang.String valName)
|
boolean |
removePersValidator(java.lang.String valName)
|
void |
removeTrigger(TriggerType trig, java.lang.String valName)
Internal: Applications should not use this method. * |
void |
removeValidator(java.lang.String valName)
|
void |
setBatchThreshold(int num)
|
void |
setInheritPersonalizationStrValue(java.lang.String s)
|
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, getChildDefOwner, 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 |
applyPersonalization, applyPropertiesPersonalization, deregisterDefObject, getBasePackage, getFileName, getStaticDef, getStaticDefWithCheck, getTrimmedFullName, hasStaticDefElem, isAuditEnabled, isAuditEnabled, isDeprecated, loadSubclassXMLContents, mergePropertyMap, raiseCustomAuditEvent, registerDefObject, registerSessionDefObject, removeProperty, resolveDefObject, saveXMLContents, setDefinitionState, setFullName, setFullName, setProperty, setPropertyExpression, setPropertyMap, setStaticDef |
Methods inherited from class oracle.jbo.mom.PersistableDefObject |
addDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, diffObjects, ensureDifferDetails, findDefImport, finishedLoading, getBaseDir, getDefImports, getDefManager, getDefWriter, getDefXMLElementTag, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getExtendedDefObjectsInternal, getFullDirName, getFullFileName, getOrigObject, getPropertyMap, getSessionSyncLock, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, lockDefinitionContext, mergeChanges, objectRemoved, reapplyChanges, registerClass, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditableFlag, setEditableObject, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setupDefWriterFromMO, staticUpdateChildrenList, unlockDefinitionContext, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeObject, writeVersion, writeXMLContents |
Methods inherited from class oracle.jbo.mom.DefinitionObject |
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getBaseDefObject, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, 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, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, 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 |
PDefEntityObject
public PDefEntityObject()
PDefEntityObject
public PDefEntityObject(EntityDefImpl entityDef)
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)
lookupPersValidator
public JboValidatorHints lookupPersValidator(java.lang.String valName)
removePersValidator
public boolean removePersValidator(java.lang.String valName)
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
lookupPersTrigger
public JboValidatorHints lookupPersTrigger(TriggerType trig,
java.lang.String valName)
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
removePersTrigger
public boolean removePersTrigger(TriggerType trig,
java.lang.String valName)
getEventDefs
public java.util.ArrayList getEventDefs()
addEventDef
public void addEventDef(EventDef eventDef)
removeEventDef
public boolean removeEventDef(java.lang.String name)
personalizeEventDef
public EventDef personalizeEventDef(java.lang.String name)
getEventMappings
public java.util.ArrayList getEventMappings()
addEventMapping
public void addEventMapping(EventMapping eventMapping)
removeEventMapping
public boolean removeEventMapping(java.lang.String name)
personalizeEventMapping
public EventMapping personalizeEventMapping(java.lang.String eventName,
EventMapping.EventPointType type)
removePayloadItem
public boolean removePayloadItem(java.lang.String eventDefName,
java.lang.String attrName)
- Removes the specified event payload item from this entity object, if it is present.
-
- Parameters:
eventDefName
- the name of the event containing the payload item
attrName
- the name of the payload item to be removed
- Returns:
false
if the event or payload item was not found
addAssocAccessor
public AssociationDefImpl addAssocAccessor(java.lang.String accName,
java.lang.String assocName,
java.lang.Class javaType)
setBatchThreshold
public void setBatchThreshold(int num)
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(int mode,
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 PDefComponentObjectBase
-
- Parameters:
jos
- the Output storage for persistence
loadXMLContents
public void loadXMLContents(DefElement xmlElement,
java.lang.String fullName)
loadXMLAttrDefContents
public void loadXMLAttrDefContents(DefElement elem,
int index)
diffChildren
public DifferDetails diffChildren(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails)
-
- Specified by:
diffChildren
in interface DiffMergeable
- Overrides:
diffChildren
in class PDefRow
diffContents
public DifferDetails diffContents(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails)
-
- Specified by:
diffContents
in interface DiffMergeable
applyDiffChildren
public void applyDiffChildren(DifferDetails dif,
DiffResolver resolver)
-
- Specified by:
applyDiffChildren
in interface DiffMergeable
- Overrides:
applyDiffChildren
in class PDefRow
getInheritPersonalizationValue
public oracle.jbo.server.InheritPersonalization getInheritPersonalizationValue()
setInheritPersonalizationStrValue
public void setInheritPersonalizationStrValue(java.lang.String s)
getLoadSubclassLevel
protected int getLoadSubclassLevel()
getEditVersionsAsString
public java.lang.String getEditVersionsAsString()
-
- Overrides:
getEditVersionsAsString
in class PersistableDefObject
getMajorVersion
public int getMajorVersion()
-
- Overrides:
getMajorVersion
in class PersistableDefObject
getMinorVersion
public int getMinorVersion()
-
- Overrides:
getMinorVersion
in class PersistableDefObject
loadDefVersions
protected void loadDefVersions(DefElement xmlElement)
getDefXMLNameSpace
public java.lang.String getDefXMLNameSpace()
-
- Specified by:
getDefXMLNameSpace
in interface PersistentDefinition
- Overrides:
getDefXMLNameSpace
in class PersistableDefObject
applyDiffContents
public void applyDiffContents(DifferDetails dif,
DiffResolver resolver)
-
- Specified by:
applyDiffContents
in interface DiffMergeable
- Overrides:
applyDiffContents
in class PersistableDefObject
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.