public class PersistableDefObject extends DefinitionObject implements DefPersistable, DiffMergeable
Modifier and Type | Class and Description |
---|---|
static class |
PersistableDefObject.CustomizationType |
static class |
PersistableDefObject.PersonalizationType |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
mEditedProperties |
protected java.util.Map |
mEditedPropertyExprs |
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
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX
XML_STATEMENT
Modifier | Constructor and Description |
---|---|
protected |
PersistableDefObject() |
|
PersistableDefObject(DefinitionManager defMgr,
int defScope) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
addDefImport(java.lang.String defName,
boolean doFind) |
protected void |
addExtendedDefObject(DefinitionObject extendedDefObject) |
protected java.util.HashMap |
adjustPropertyMapForWrite() |
protected java.util.Map |
allocatePropertyMap()
For internal framework use only.
|
protected java.util.Map |
allocatePropertyMapForEdits()
For internal framework use only.
|
void |
applyDiffChildren(DifferDetails dif,
DiffResolver resolver) |
void |
applyDiffContents(DifferDetails dif,
DiffResolver resolver) |
void |
checkEditable() |
void |
checkStructWithOld(PersistableDefObject pOldDef) |
void |
close() |
static PersistableDefObject |
createFromXML(int defScope,
DefinitionManager defMgr,
java.lang.String fullName,
java.lang.String metaObjectName,
DefElement elem,
DefinitionObject staticDef) |
void |
deregisterSessionObject() |
DifferDetails |
diffChildren(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails) |
DifferDetails |
diffContents(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails) |
DifferDetails |
diffObjects(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails) |
DifferDetails |
ensureDifferDetails(DifferDetails difDetails) |
protected java.lang.Object |
findDefImport(java.lang.String defName) |
protected void |
finishedLoading() |
java.lang.String |
getBaseDir() |
java.lang.String |
getBasePackage() |
java.util.List |
getDefImports() |
DefinitionManager |
getDefManager() |
DefWriter |
getDefWriter() |
java.lang.String |
getDefXMLElementTag() |
java.lang.String |
getDefXMLNameSpace() |
java.util.HashMap |
getEditedPropertiesMap()
For internal framework use only.
|
protected java.util.HashMap |
getEditedPropertyExpressionsMap()
For internal framework use only.
|
protected java.util.Map |
getEditedPropertyMap()
For internal framework use only.
|
PersistableDefObject |
getEditObject() |
java.lang.String |
getEditVersionsAsString() |
java.util.List<DefinitionObject> |
getExtendedDefObjectsInternal() |
java.lang.String |
getFileName() |
java.lang.String |
getFullDirName() |
java.lang.String |
getFullFileName() |
int |
getMajorVersion() |
int |
getMinorVersion() |
DefPersistable |
getOrigObject() |
java.util.Map |
getPropertyMap()
Internal: Applications should not use this method.
|
java.lang.String[] |
getSubstitutedNames(boolean recurse) |
protected java.lang.Object |
getSyncLock() |
java.lang.String |
getXMLElementTag()
Returns a piece of static info for the type of object this is invoked
upon.
|
void |
guaranteePath() |
boolean |
hasExtendedDefObjects() |
boolean |
isCustomizationEnabled()
For internal use only.
|
boolean |
isCustomizationEnabled(PersistableDefObject.CustomizationType type)
For internal use only.
|
boolean |
isDirty()
This method returns if an Object is modified from last save/load
|
boolean |
isEditable() |
boolean |
isFromTip() |
boolean |
isLoadBase() |
boolean |
isMajorVersionChanged() |
boolean |
isMinorVersionChanged() |
boolean |
isNew()
This method returns if this object is previously persisted.
|
boolean |
isPersonalizationEnabled()
For internal use only.
|
boolean |
isPersonalizationEnabled(PersistableDefObject.PersonalizationType type)
For internal use only.
|
boolean |
isPropertyExpression(java.lang.String hintName) |
protected void |
loadDefImports(DefElement xmlElement) |
void |
loadXMLContents(DefElement xmlElement,
java.lang.String fullName) |
static boolean |
mergeChanges(PersistableDefObject editObj,
PersistableDefObject tipObj,
PersistableDefObject origObj,
DiffResolver resolver) |
void |
mergePropertyMap(java.util.Map m)
For internal framework use only.
|
protected void |
objectRemoved() |
boolean |
reapplyChanges(PersistableDefObject tipObj,
DiffResolver resolver) |
static void |
registerClass(java.lang.String tagName,
java.lang.Class cls) |
void |
registerDefObject() |
void |
registerSessionDefObject() |
void |
registerSiteDefObject() |
void |
remove() |
boolean |
removeAndDelete() |
void |
removeDefImport(java.lang.String defName) |
protected boolean |
removeExtendedDefObject(DefinitionObject extendedDefObject) |
void |
removeProperty(java.lang.String hintName,
LocaleContext locale) |
void |
saveXMLContents() |
void |
setCustomizationEnabled(java.util.EnumSet<PersistableDefObject.CustomizationType> types,
boolean flag)
For internal use only.
|
void |
setCustomizationEnabled(PersistableDefObject.CustomizationType type,
boolean flag)
For internal use only.
|
void |
setDefaultBaseDir(java.lang.String defaultBaseDir) |
void |
setDefMgr(DefinitionManager mgr) |
void |
setDirty(boolean b)
This method marks the Object dirty
|
void |
setEditable(boolean b) |
void |
setEditableFlag(boolean b) |
void |
setEditableObject(PersistableDefObject editObj) |
void |
setFullName(java.lang.String name)
Give this object a fully-qualified name.
|
void |
setFullNameInternal(java.lang.String name) |
void |
setLoadBase(boolean b) |
void |
setMajorVersionChanged(boolean b) |
void |
setNew(boolean b)
This method marks the as previously persisted.
|
void |
setOrigObject(DefPersistable origObject) |
void |
setPersonalizationEnabled(java.util.EnumSet<PersistableDefObject.PersonalizationType> types,
boolean flag)
For internal use only.
|
void |
setPersonalizationEnabled(PersistableDefObject.PersonalizationType type,
boolean flag)
For internal use only.
|
void |
setProperty(java.lang.String hintName,
java.lang.Object hintValue,
LocaleContext locale) |
void |
setPropertyExpression(java.lang.String hintName,
java.lang.String hintExpression) |
void |
setPropertyMap(java.util.Map m)
For internal framework use only.
|
void |
setupDefWriterFromMO(oracle.mds.core.MetadataObject mo) |
static void |
staticUpdateChildrenList(DefWriter jos,
java.util.List lst,
java.util.List orgLst,
boolean useFullName,
boolean writeDelta,
boolean forceReplace) |
void |
updateChildrenList(DefWriter jos,
java.util.List lst,
java.util.List orgLst,
boolean useFullName,
boolean writeDelta,
boolean forceReplace)
Internal: Applications should not use this method.
|
static void |
verifyVersion(DefElement xmlElement,
java.lang.String name) |
static void |
verifyVersionNullCheck(DefElement xmlElement,
java.lang.String name,
boolean nullOK) |
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 |
writeObject(DefWriter jos)
Objects should write their persistence output in this method
|
static void |
writeVersion(DefWriter jos) |
void |
writeXMLContents() |
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getBaseDefObject, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDeprecated, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, resolveReferences, setBaseDefObject, setBaseDefObject, setDefScope, setMdsKey, setMdsReference, setName, setObjectResolved, setParent, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheck
getAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setPropertiesMap, setPropertiesMap2, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullName
getFullName, getName
protected java.util.Map mEditedProperties
protected java.util.Map mEditedPropertyExprs
protected PersistableDefObject()
public PersistableDefObject(DefinitionManager defMgr, int defScope)
public static void registerClass(java.lang.String tagName, java.lang.Class cls)
public static PersistableDefObject createFromXML(int defScope, DefinitionManager defMgr, java.lang.String fullName, java.lang.String metaObjectName, DefElement elem, DefinitionObject staticDef)
public DefPersistable getOrigObject()
getOrigObject
in interface DefPersistable
public void setOrigObject(DefPersistable origObject)
setOrigObject
in interface DefPersistable
public void setFullNameInternal(java.lang.String name)
public void setFullName(java.lang.String name)
NamedObjectImpl
setFullName
in class NamedObjectImpl
name
- this object's fully-qualified name;
the package name concatenated with the class name.public java.lang.String[] getSubstitutedNames(boolean recurse)
public void registerDefObject()
public void registerSiteDefObject()
public void registerSessionDefObject()
public void deregisterSessionObject()
public DefinitionManager getDefManager()
protected java.lang.Object getSyncLock()
public boolean hasExtendedDefObjects()
hasExtendedDefObjects
in class DefinitionObject
public java.util.List<DefinitionObject> getExtendedDefObjectsInternal()
getExtendedDefObjectsInternal
in class DefinitionObject
protected void addExtendedDefObject(DefinitionObject extendedDefObject)
addExtendedDefObject
in class DefinitionObject
protected boolean removeExtendedDefObject(DefinitionObject extendedDefObject)
removeExtendedDefObject
in class DefinitionObject
public java.lang.String getEditVersionsAsString()
public int getMajorVersion()
public int getMinorVersion()
public boolean isMajorVersionChanged()
public void setMajorVersionChanged(boolean b)
public boolean isMinorVersionChanged()
public boolean isDirty()
DefPersistable
isDirty
in interface DefPersistable
public void setDirty(boolean b)
DefPersistable
setDirty
in interface DefPersistable
b
- If true the Object is marked Dirty.public void checkStructWithOld(PersistableDefObject pOldDef)
public boolean isNew()
DefPersistable
isNew
in interface DefPersistable
public void setNew(boolean b)
DefPersistable
setNew
in interface DefPersistable
b
- If true the Object is marked as new object.public boolean isFromTip()
public void checkEditable()
public boolean isEditable()
public void setEditableFlag(boolean b)
public void setEditableObject(PersistableDefObject editObj)
public void setEditable(boolean b)
public boolean isLoadBase()
public void setLoadBase(boolean b)
public PersistableDefObject getEditObject()
public java.lang.String getBaseDir()
public java.lang.String getBasePackage()
public void setDefaultBaseDir(java.lang.String defaultBaseDir)
public void setDefMgr(DefinitionManager mgr)
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
public java.lang.String getXMLElementTag()
PersistentDefinition
getXMLElementTag
in interface PersistentDefinition
public java.lang.String getDefXMLNameSpace()
getDefXMLNameSpace
in interface PersistentDefinition
public void setupDefWriterFromMO(oracle.mds.core.MetadataObject mo)
public DefWriter getDefWriter()
public void writeObject(DefWriter jos)
PersistentDefinition
writeObject
in interface PersistentDefinition
jos
- the Output storage for persistencepublic void writeContents(DefWriter jos)
PersistentDefinition
writeContents
in interface PersistentDefinition
jos
- the Output storage for persistencepublic DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffChildren
in interface DiffMergeable
public DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffContents
in interface DiffMergeable
public DifferDetails diffObjects(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffObjects
in interface DiffMergeable
public DifferDetails ensureDifferDetails(DifferDetails difDetails)
ensureDifferDetails
in interface DiffMergeable
public void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
applyDiffChildren
in interface DiffMergeable
public void applyDiffContents(DifferDetails dif, DiffResolver resolver)
applyDiffContents
in interface DiffMergeable
public boolean reapplyChanges(PersistableDefObject tipObj, DiffResolver resolver)
public static boolean mergeChanges(PersistableDefObject editObj, PersistableDefObject tipObj, PersistableDefObject origObj, DiffResolver resolver)
public void updateChildrenList(DefWriter jos, java.util.List lst, java.util.List orgLst, boolean useFullName, boolean writeDelta, boolean forceReplace)
public static void staticUpdateChildrenList(DefWriter jos, java.util.List lst, java.util.List orgLst, boolean useFullName, boolean writeDelta, boolean forceReplace)
public java.util.List getDefImports()
protected java.lang.Object findDefImport(java.lang.String defName)
public java.lang.Object addDefImport(java.lang.String defName, boolean doFind)
public void removeDefImport(java.lang.String defName)
protected void loadDefImports(DefElement xmlElement)
protected java.util.HashMap adjustPropertyMapForWrite()
public void writeChildren(DefWriter jos)
PersistentDefinition
writeChildren
in interface PersistentDefinition
jos
- the Output storage for persistencepublic void writeXMLContents()
public java.lang.String getFileName()
public void saveXMLContents()
protected void finishedLoading()
finishedLoading
in class DefinitionObject
public void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
public void close()
protected void objectRemoved()
objectRemoved
in class DefinitionObject
public void remove()
public boolean removeAndDelete()
public java.lang.String getFullFileName()
public java.lang.String getFullDirName()
public void guaranteePath()
public static void verifyVersion(DefElement xmlElement, java.lang.String name)
public static void verifyVersionNullCheck(DefElement xmlElement, java.lang.String name, boolean nullOK)
public static void writeVersion(DefWriter jos)
public java.util.Map getPropertyMap()
NamedObjectImpl
getPropertyMap
in class NamedObjectImpl
public final boolean isPropertyExpression(java.lang.String hintName)
isPropertyExpression
in class NamedObjectImpl
protected java.util.Map allocatePropertyMap()
allocatePropertyMap
in class NamedObjectImpl
public void removeProperty(java.lang.String hintName, LocaleContext locale)
removeProperty
in class NamedObjectImpl
public void setProperty(java.lang.String hintName, java.lang.Object hintValue, LocaleContext locale)
setProperty
in class NamedObjectImpl
public void setPropertyExpression(java.lang.String hintName, java.lang.String hintExpression)
setPropertyExpression
in class NamedObjectImpl
protected java.util.Map allocatePropertyMapForEdits()
public java.util.HashMap getEditedPropertiesMap()
protected java.util.Map getEditedPropertyMap()
protected java.util.HashMap getEditedPropertyExpressionsMap()
public void setPropertyMap(java.util.Map m)
setPropertyMap
in class NamedObjectImpl
public void mergePropertyMap(java.util.Map m)
mergePropertyMap
in class NamedObjectImpl
public boolean isCustomizationEnabled()
public boolean isCustomizationEnabled(PersistableDefObject.CustomizationType type)
public void setCustomizationEnabled(PersistableDefObject.CustomizationType type, boolean flag)
public void setCustomizationEnabled(java.util.EnumSet<PersistableDefObject.CustomizationType> types, boolean flag)
public boolean isPersonalizationEnabled()
public boolean isPersonalizationEnabled(PersistableDefObject.PersonalizationType type)
public void setPersonalizationEnabled(PersistableDefObject.PersonalizationType type, boolean flag)
public void setPersonalizationEnabled(java.util.EnumSet<PersistableDefObject.PersonalizationType> types, boolean flag)