public abstract class MetaObject extends DefObject implements ResourceBundleOwner
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
INHERIT_POLICY_DEFAULT
These constants are used to specify the inherit policy. 
 | 
static java.lang.String | 
INHERIT_POLICY_LEGACY
The inherit policy of legacy means that this MetaObject will continue to implement the
 old read-write behavior of metadata. 
 | 
static java.lang.String | 
INHERIT_POLICY_STRICT
The inherit policy of strict means the following:
 If the MetaObject is new, it will be written if the value is different from the default
 value. 
 | 
protected java.lang.Class | 
mComponentClass  | 
static boolean | 
mDebug_checkDef_throw  | 
static java.lang.String | 
PERSMERGED_BASE_PACKAGE  | 
static int | 
PUBLISH_TO_BUSINESS_EDITOR_DEFAULT  | 
static int | 
PUBLISH_TO_BUSINESS_EDITOR_FALSE  | 
static int | 
PUBLISH_TO_BUSINESS_EDITOR_TRUE  | 
static int | 
SI_CustIntoStaticDef  | 
static int | 
SI_InheritPersonalization  | 
static int | 
SI_InheritPolicy
Constants used to manage scalar value attributes. 
 | 
static int | 
SI_MessageBundleClass  | 
static int | 
SI_ResourceBundleDef  | 
static int | 
SMAX_MetaObject  | 
JIT_PACKAGE_NAME, mDebugToSkipEmptyDocForBug24949961, mEditedProperties, mEditedPropertyExprsDEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, DEF_SCOPE_USER, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAPmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXFLAG_DIRTY, FLAG_EDITABLE, FLAG_FROM_TIP, FLAG_LOAD_BASE, FLAG_LOAD_HL_DEFS, FLAG_MAJOR_VERSION_CHANGED, FLAG_MINOR_VERSION_CHANGED, FLAG_NEW, FLAG_NEW_RECURSE, FLAG_SKIP_WRITE, XML_STATEMENT| Modifier | Constructor and Description | 
|---|---|
protected  | 
MetaObject(DefinitionManager defMgr,
          int defScope)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.util.HashMap | 
adjustPropertyMapForWrite()  | 
void | 
checkEditable()  | 
protected MetaObject | 
createDefCustomizer(java.lang.String baseDefFullName)  | 
void | 
deregisterSessionObject()  | 
void | 
doneLoadingInternal()  | 
void | 
extractCustIntoPDef(PersDefBase pDef)  | 
java.lang.String | 
getDefCustomizerFullFileName()  | 
java.lang.String | 
getDefCustomizerFullName()  | 
java.lang.String | 
getDefCustomizerName()  | 
PersistableDefObject | 
getEditObject()  | 
java.lang.String | 
getEditVersionsAsString()  | 
java.lang.String | 
getInheritPersonalizationStrValue()  | 
oracle.jbo.server.InheritPersonalization | 
getInheritPersonalizationValue()  | 
java.lang.String | 
getInheritPolicyStrValue()
Returns the String value of the inherit policy, one of INHERIT_POLICY_.. 
 | 
oracle.jbo.server.InheritPolicy | 
getInheritPolicyValue()  | 
int | 
getMajorVersion()  | 
java.lang.Class | 
getMessageBundleClass()
Internal: Applications should not use this method. 
 | 
int | 
getMinorVersion()  | 
protected ResourceBundleDef | 
getMsgBundleDef(DefElement xmlElement)
getMsgBundleDef gets the ResourceBundleDef given the DefElement 
 | 
PackageDefImpl | 
getPackageDef()  | 
java.lang.String | 
getPackageName()  | 
PersDefBase | 
getPersDef()  | 
PersDefBase | 
getPersDefForEdit()  | 
PersDefBase | 
getPersDefNoUpdateCheck()  | 
MetaObject | 
getPersMergedDef()
This API returns a new MetaObject that merges metadata from the original 
 MetaObject with that from the pers def (if one exists). 
 | 
int | 
getPublishToBusinessEditorValue()  | 
ResourceBundleDef | 
getResourceBundleDef()
getResourceBundleDef gets the mResourceBundleDef value 
 | 
java.lang.String | 
getResourcePrefix()  | 
protected int | 
getScalarDirtyCount()
Returns the number of scalar value attributes in this def object. 
 | 
MetaObject | 
getStaticBaseDefObject()  | 
MetaObject | 
getStaticDef()  | 
boolean | 
isAutoMerged()  | 
boolean | 
isConvertPDef()  | 
boolean | 
isCreateEditPDef()  | 
boolean | 
isCustIntoStaticDef()  | 
boolean | 
isDefCustomizer()  | 
protected boolean | 
isDefNewBase()
Returns whether the current def object is new and is the base
 class def (not a subclass def). 
 | 
boolean | 
isDynamic()  | 
boolean | 
isEditable()  | 
boolean | 
isInheritPersonalization()
Returns whether this def should inherit personalization. 
 | 
boolean | 
isInheritPolicyLegacy()
Indicates whether the inherit policy is legacy. 
 | 
boolean | 
isInheritPolicyStrict()
Indicates whether the inherit policy is strict. 
 | 
boolean | 
isPublishToBusinessEditor()  | 
protected boolean | 
isScalarDirty(int indx)
Returns whether the scalar value identified by indx is dirty of
 not. 
 | 
protected void | 
loadDefVersions(DefElement xmlElement)  | 
protected void | 
loadResourceBundle(DefElement xmlElement)
loadResourceBundle sets the ResourceBundleDef on EntityDefImpl given the DefElement 
 | 
void | 
loadXMLContents(DefElement xmlElement,
               java.lang.String fullName)  | 
MetaObject | 
lookupDefCustomizer()  | 
MetaObject | 
lookupPublishedDefCustomizer()  | 
protected ComponentObjectImpl | 
newComponentClassInstance()  | 
protected DefinitionObject | 
objectFound()  | 
protected void | 
objectRemoved()  | 
void | 
registerDefObject()
Registers this def object with MetaObjectManager. 
 | 
void | 
registerSessionDefObject()  | 
protected void | 
resetDefResolved()  | 
abstract void | 
resolveDefObject()  | 
void | 
saveXMLContents()  | 
void | 
setCustIntoStaticDef(boolean b)  | 
void | 
setDefCustomizer(boolean b)  | 
void | 
setDefScope(int defScope)  | 
void | 
setDirty(boolean b)
This method marks the Object dirty 
 | 
void | 
setEditable(boolean b)  | 
void | 
setFullName(java.lang.String name)
Give this object a fully-qualified name. 
 | 
void | 
setInheritPersonalization(boolean b)  | 
void | 
setInheritPersonalizationStrValue(java.lang.String s)  | 
void | 
setInheritPolicyStrValue(java.lang.String s)
Sets the inherit policy. 
 | 
void | 
setMessageBundleClass(java.lang.Class collClass)
Internal: Applications should not use this method. 
 | 
void | 
setPublishToBusinessEditor(boolean b)  | 
void | 
setPublishToBusinessEditorValue(int v)  | 
void | 
setResourceBundleDef(ResourceBundleDef resourceBundleDef)
setResourceBundleDef sets the mResourceBundleDef value 
 | 
protected void | 
setScalarDirty(int indx,
              boolean b)
Sets the dirtiness flag for a scalar value attr. 
 | 
void | 
setupDefWriterFromMO(oracle.mds.core.MetadataObject mo)  | 
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 
 | 
void | 
writeXMLContents()  | 
addChildren, applyDiffChildren, callFinishedLoading, diffChildren, ensureVariableManager, finishedLoading, getAdfmConfigStartupProperty, getAllProperties, getBaseDefObject, getBooleanAdfmConfigProperty, getDefTypeId, getDefXMLNameSpace, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, isFromCustomization, loadProperties, loadVariables, resolvePropertyRaw, resolveReferences, setBaseDefObject, setBaseDefObject, setDefForComponent, setName, setParent, unsetDefForComponentaddDefImport, addExtendedDefObject, addSavedDocName, allocatePDef, allocatePropertyMap, allocatePropertyMapForEdits, applyDiffContents, baseIsWriteObject, beginDiffObjects, buildChildName, buildFileName, checkEditableWithDefWriter, checkStructWithOld, close, createEditPDef, createFromXML, deregisterDefObject, deregisterHLDef, diffChildrenHLDefs, diffChildrenProperties, diffContents, diffObjects, ensureDifferDetails, ensureDifferSkip, findDefImport, forgetChanges, getBaseDir, getBasePackage, getChildren, getDefImports, getDefManager, getDefTypeName, getDefWriter, getDefXMLElementTag, getDifferSkip, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getHLDefMap, getIdentificationAttributeName, getMergeableFullName, getMergeableName, getOrigObject, getPropertyMap, getPropertyNamesSet, getSavedDocNames, getSessionSyncLock, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, includeCustomizationLayerInfo, isCustomizationEnabled, isCustomizationEnabled, isDirty, isFromTip, isLoadBase, isLoadHLDefs, isMajorVersionChanged, isMinorVersionChanged, isNew, isNewRecurse, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, isSaveToJSON, isSkipWrite, isWriteObject, loadDefImports, loadDefObject, loadXMLContentsNoResolve, lockDefinitionContext, lookupHLDef, makeNew, mergeChanges, mergeEditedPropertiesForJSON, mergePropertyMap, postSaveContents, readJSONObject, reapplyChanges, registerClass, registerHLDef, registerSiteDefObject, reloadFromXMLContents, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveJSONContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setEditableFlag, setEditableObject, setForRuntime, setFullNameInternal, setLoadBase, setLoadHLDefs, setMajorVersionChanged, setNew, setNewRecurse, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setSkipWrite, setWholeDefDirty, setWholeDefNew, staticUpdateChildrenList, transferDefChangesInto, unlockDefinitionContext, updateChildObject, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeHeaderForNew, writeJSONContents, writeObject, writeVersionaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getMdsReferenceName, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isComponentDefinition, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, objectInserted, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyExprEval, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, hasProperty, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setProperty, setPropertyExpressionMap, setRawPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetFullNamegetProperty, removeProperty, setPropertypublic static final java.lang.String PERSMERGED_BASE_PACKAGE
public static final int SI_InheritPolicy
public static final int SI_InheritPersonalization
public static final int SI_CustIntoStaticDef
public static final int SI_MessageBundleClass
public static final int SI_ResourceBundleDef
public static final int SMAX_MetaObject
public static final java.lang.String INHERIT_POLICY_DEFAULT
public static final java.lang.String INHERIT_POLICY_LEGACY
public static final java.lang.String INHERIT_POLICY_STRICT
public static final int PUBLISH_TO_BUSINESS_EDITOR_DEFAULT
public static final int PUBLISH_TO_BUSINESS_EDITOR_TRUE
public static final int PUBLISH_TO_BUSINESS_EDITOR_FALSE
@Concealed public static boolean mDebug_checkDef_throw
protected java.lang.Class mComponentClass
protected MetaObject(DefinitionManager defMgr, int defScope)
public void setDefScope(int defScope)
setDefScope in class DefinitionObjectpublic void checkEditable()
checkEditable in class PersistableDefObjectprotected MetaObject createDefCustomizer(java.lang.String baseDefFullName)
public PersistableDefObject getEditObject()
getEditObject in class PersistableDefObjectpublic boolean isEditable()
isEditable in class PersistableDefObjectpublic void setEditable(boolean b)
setEditable in class PersistableDefObjectpublic boolean isCreateEditPDef()
isCreateEditPDef in class PersistableDefObjectpublic void extractCustIntoPDef(PersDefBase pDef)
extractCustIntoPDef in class PersistableDefObjectprotected DefinitionObject objectFound()
objectFound in class DefinitionObjectprotected void objectRemoved()
objectRemoved in class PersistableDefObjectpublic void setDirty(boolean b)
DefPersistablesetDirty in interface DefPersistablesetDirty in class PersistableDefObjectb - If true the Object is marked Dirty.protected boolean isDefNewBase()
protected int getScalarDirtyCount()
protected boolean isScalarDirty(int indx)
indx - the scalar value attr index.  It should be one of the
             SI_.. constantsprotected void setScalarDirty(int indx,
                              boolean b)
indx - the scalar value attr index.  It should be one of the
             SI_.. constantsb - the new dirtiness flagpublic boolean isAutoMerged()
isAutoMerged in class PersistableDefObjectpublic java.lang.String getDefCustomizerName()
public java.lang.String getDefCustomizerFullName()
public java.lang.String getDefCustomizerFullFileName()
public MetaObject lookupPublishedDefCustomizer()
public MetaObject lookupDefCustomizer()
public PackageDefImpl getPackageDef()
public java.lang.String getPackageName()
@Concealed protected ComponentObjectImpl newComponentClassInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic PersDefBase getPersDef()
public PersDefBase getPersDefForEdit()
public MetaObject getPersMergedDef()
The merged def will be registered into the definition manager with the following name pattern:
   persmerged.<original-full-def-name>
 
 These defs are created as session defs and managed as session defs.
 
 
 If the original def does not have a pers def, null will return.
 
To build the merged def, this API creates a new copy of the def object in memory by loading the definition document. One important distinction here is that when the doc is loaded for a merged def, def resolution is skipped (done only after the pers def is applied). After load, the pers def is applied to the copy, is resolved, and registered in the def mgr.
null if the def does
         not have a pers def.public PersDefBase getPersDefNoUpdateCheck()
@Concealed public boolean isConvertPDef()
@Concealed public void doneLoadingInternal()
public boolean isDynamic()
public void setMessageBundleClass(java.lang.Class collClass)
Sets the implementation class for this Object's Message Bundle class.
collClass - the message bundle implementation class.public java.lang.Class getMessageBundleClass()
Returns the class of the reference object.
getMessageBundleClass in interface VariableManagerOwnerBasepublic abstract void resolveDefObject()
protected void resetDefResolved()
public void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
loadXMLContents in class PersistableDefObjectpublic void registerDefObject()
 This method should be called after the def object is
 all set up and after resolveDefObject()
 is called.
registerDefObject in class PersistableDefObjectpublic void registerSessionDefObject()
registerSessionDefObject in class PersistableDefObjectpublic void deregisterSessionObject()
deregisterSessionObject in class PersistableDefObjectpublic ResourceBundleDef getResourceBundleDef()
getResourceBundleDef in interface ResourceBundleOwnergetResourceBundleDef in interface VariableManagerOwnerBasepublic java.lang.String getResourcePrefix()
getResourcePrefix in interface ResourceBundleOwnerpublic void setResourceBundleDef(ResourceBundleDef resourceBundleDef)
resourceBundleDef - ResourceBundleDefprotected void loadResourceBundle(DefElement xmlElement)
xmlElement - DefElementpublic java.lang.String getEditVersionsAsString()
getEditVersionsAsString in class PersistableDefObjectpublic int getMajorVersion()
getMajorVersion in class PersistableDefObjectpublic int getMinorVersion()
getMinorVersion in class PersistableDefObjectprotected void loadDefVersions(DefElement xmlElement)
protected ResourceBundleDef getMsgBundleDef(DefElement xmlElement)
xmlElement - DefElementpublic boolean isInheritPolicyLegacy()
public boolean isInheritPolicyStrict()
isInheritPolicyStrict in class PersistableDefObjectpublic oracle.jbo.server.InheritPolicy getInheritPolicyValue()
public java.lang.String getInheritPolicyStrValue()
public void setInheritPolicyStrValue(java.lang.String s)
s - the String value of the new inherit policypublic boolean isInheritPersonalization()
public void setInheritPersonalization(boolean b)
public oracle.jbo.server.InheritPersonalization getInheritPersonalizationValue()
public java.lang.String getInheritPersonalizationStrValue()
public void setInheritPersonalizationStrValue(java.lang.String s)
public boolean isPublishToBusinessEditor()
public void setPublishToBusinessEditor(boolean b)
public MetaObject getStaticBaseDefObject()
public int getPublishToBusinessEditorValue()
public void setPublishToBusinessEditorValue(int v)
public MetaObject getStaticDef()
public boolean isDefCustomizer()
public void setDefCustomizer(boolean b)
public boolean isCustIntoStaticDef()
public void setCustIntoStaticDef(boolean b)
protected java.util.HashMap adjustPropertyMapForWrite()
adjustPropertyMapForWrite in class PersistableDefObjectpublic void setupDefWriterFromMO(oracle.mds.core.MetadataObject mo)
setupDefWriterFromMO in class PersistableDefObjectpublic void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class DefObjectjos - the Output storage for persistencepublic void writeXMLContents()
writeXMLContents in class PersistableDefObjectpublic void saveXMLContents()
saveXMLContents in class PersistableDefObjectpublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionwriteContents in class PersistableDefObjectjos - the Output storage for persistencepublic void setFullName(java.lang.String name)
NamedObjectImplsetFullName in class PersistableDefObjectname - this object's fully-qualified name;
 the package name concatenated with the class name.