Class SDODataObject

    • Method Detail

      • _setHelperContext

        public void _setHelperContext​(commonj.sdo.helper.HelperContext aContext)
        INTERNAL: Set the HelperContext that will be associated with this DataObject.
        Parameters:
        aContext -
      • get

        public Object get​(String path)
        Specified by:
        get in interface commonj.sdo.DataObject
      • isSet

        public boolean isSet​(String path)
        Specified by:
        isSet in interface commonj.sdo.DataObject
      • unset

        public void unset​(String path)
        Specified by:
        unset in interface commonj.sdo.DataObject
      • getByte

        public byte getByte​(String path)
        Specified by:
        getByte in interface commonj.sdo.DataObject
      • getChar

        public char getChar​(String path)
        Specified by:
        getChar in interface commonj.sdo.DataObject
      • getDouble

        public double getDouble​(String path)
        Specified by:
        getDouble in interface commonj.sdo.DataObject
      • getFloat

        public float getFloat​(String path)
        Specified by:
        getFloat in interface commonj.sdo.DataObject
      • getInt

        public int getInt​(String path)
        Specified by:
        getInt in interface commonj.sdo.DataObject
      • getLong

        public long getLong​(String path)
        Specified by:
        getLong in interface commonj.sdo.DataObject
      • getShort

        public short getShort​(String path)
        Specified by:
        getShort in interface commonj.sdo.DataObject
      • getBytes

        public byte[] getBytes​(String path)
        Specified by:
        getBytes in interface commonj.sdo.DataObject
      • getBigDecimal

        public BigDecimal getBigDecimal​(String path)
        Specified by:
        getBigDecimal in interface commonj.sdo.DataObject
      • getBigInteger

        public BigInteger getBigInteger​(String path)
        Specified by:
        getBigInteger in interface commonj.sdo.DataObject
      • getDate

        public Date getDate​(String path)
        Specified by:
        getDate in interface commonj.sdo.DataObject
      • getString

        public String getString​(String path)
        Specified by:
        getString in interface commonj.sdo.DataObject
      • getList

        public List getList​(String path)
        Specified by:
        getList in interface commonj.sdo.DataObject
      • setBoolean

        public void setBoolean​(String path,
                               boolean value)
        Specified by:
        setBoolean in interface commonj.sdo.DataObject
      • setByte

        public void setByte​(String path,
                            byte value)
        Specified by:
        setByte in interface commonj.sdo.DataObject
      • setChar

        public void setChar​(String path,
                            char value)
        Specified by:
        setChar in interface commonj.sdo.DataObject
      • setDouble

        public void setDouble​(String path,
                              double value)
        Specified by:
        setDouble in interface commonj.sdo.DataObject
      • setFloat

        public void setFloat​(String path,
                             float value)
        Specified by:
        setFloat in interface commonj.sdo.DataObject
      • setInt

        public void setInt​(String path,
                           int value)
        Specified by:
        setInt in interface commonj.sdo.DataObject
      • setLong

        public void setLong​(String path,
                            long value)
        Specified by:
        setLong in interface commonj.sdo.DataObject
      • setShort

        public void setShort​(String path,
                             short value)
        Specified by:
        setShort in interface commonj.sdo.DataObject
      • setBytes

        public void setBytes​(String path,
                             byte[] value)
        Specified by:
        setBytes in interface commonj.sdo.DataObject
      • setBigDecimal

        public void setBigDecimal​(String path,
                                  BigDecimal value)
        Specified by:
        setBigDecimal in interface commonj.sdo.DataObject
      • setBigInteger

        public void setBigInteger​(String path,
                                  BigInteger value)
        Specified by:
        setBigInteger in interface commonj.sdo.DataObject
      • setDataObject

        public void setDataObject​(String path,
                                  commonj.sdo.DataObject value)
        Specified by:
        setDataObject in interface commonj.sdo.DataObject
      • setDate

        public void setDate​(String path,
                            Date value)
        Specified by:
        setDate in interface commonj.sdo.DataObject
      • setString

        public void setString​(String path,
                              String value)
        Specified by:
        setString in interface commonj.sdo.DataObject
      • setList

        public void setList​(String path,
                            List value)
        Specified by:
        setList in interface commonj.sdo.DataObject
      • set

        public void set​(int propertyIndex,
                        Object value)
        Specified by:
        set in interface commonj.sdo.DataObject
      • isSet

        public boolean isSet​(int propertyIndex)
        Specified by:
        isSet in interface commonj.sdo.DataObject
      • unset

        public void unset​(int propertyIndex)
        Specified by:
        unset in interface commonj.sdo.DataObject
      • getDataObject

        public SDODataObject getDataObject​(int propertyIndex)
        Specified by:
        getDataObject in interface commonj.sdo.DataObject
      • getList

        public List getList​(int propertyIndex)
        Specified by:
        getList in interface commonj.sdo.DataObject
      • getSequence

        public commonj.sdo.Sequence getSequence​(String path)
        Deprecated.
        in SDO 2.1.0.
        Specified by:
        getSequence in interface commonj.sdo.DataObject
      • getSequence

        public commonj.sdo.Sequence getSequence​(int propertyIndex)
        Deprecated.
        in SDO 2.1.0.
        Specified by:
        getSequence in interface commonj.sdo.DataObject
      • getSequence

        public commonj.sdo.Sequence getSequence​(commonj.sdo.Property property)
        Deprecated.
        in SDO 2.1.0.
        Specified by:
        getSequence in interface commonj.sdo.DataObject
      • getSequence

        public SDOSequence getSequence()
        Specified by:
        getSequence in interface commonj.sdo.DataObject
      • setBoolean

        public void setBoolean​(int propertyIndex,
                               boolean value)
        Specified by:
        setBoolean in interface commonj.sdo.DataObject
      • setByte

        public void setByte​(int propertyIndex,
                            byte value)
        Specified by:
        setByte in interface commonj.sdo.DataObject
      • setChar

        public void setChar​(int propertyIndex,
                            char value)
        Specified by:
        setChar in interface commonj.sdo.DataObject
      • setDouble

        public void setDouble​(int propertyIndex,
                              double value)
        Specified by:
        setDouble in interface commonj.sdo.DataObject
      • setFloat

        public void setFloat​(int propertyIndex,
                             float value)
        Specified by:
        setFloat in interface commonj.sdo.DataObject
      • setInt

        public void setInt​(int propertyIndex,
                           int value)
        Specified by:
        setInt in interface commonj.sdo.DataObject
      • setLong

        public void setLong​(int propertyIndex,
                            long value)
        Specified by:
        setLong in interface commonj.sdo.DataObject
      • setShort

        public void setShort​(int propertyIndex,
                             short value)
        Specified by:
        setShort in interface commonj.sdo.DataObject
      • setBytes

        public void setBytes​(int propertyIndex,
                             byte[] value)
        Specified by:
        setBytes in interface commonj.sdo.DataObject
      • setBigDecimal

        public void setBigDecimal​(int propertyIndex,
                                  BigDecimal value)
        Specified by:
        setBigDecimal in interface commonj.sdo.DataObject
      • setBigInteger

        public void setBigInteger​(int propertyIndex,
                                  BigInteger value)
        Specified by:
        setBigInteger in interface commonj.sdo.DataObject
      • setDataObject

        public void setDataObject​(int propertyIndex,
                                  commonj.sdo.DataObject value)
        Specified by:
        setDataObject in interface commonj.sdo.DataObject
      • setDate

        public void setDate​(int propertyIndex,
                            Date value)
        Specified by:
        setDate in interface commonj.sdo.DataObject
      • setString

        public void setString​(int propertyIndex,
                              String value)
        Specified by:
        setString in interface commonj.sdo.DataObject
      • setList

        public void setList​(int propertyIndex,
                            List value)
        Specified by:
        setList in interface commonj.sdo.DataObject
      • isSet

        public boolean isSet​(commonj.sdo.Property property)
        Specified by:
        isSet in interface commonj.sdo.DataObject
      • unset

        public void unset​(commonj.sdo.Property property)
        Specified by:
        unset in interface commonj.sdo.DataObject
      • unset

        public void unset​(commonj.sdo.Property property,
                          boolean fromDelete,
                          boolean updateSequence)
        INTERNAL: Unset the specified property on this DataObject. The fromDelete parameter specifies whether we are from a delete or unset/detach operation. The updateSequence parameter is used internally to stop a bidirectional update in the SDOSequence when originally called from this Sequence.
        Parameters:
        property -
        fromDelete -
        updateSequence -
      • getDate

        public Date getDate​(commonj.sdo.Property property)
        Specified by:
        getDate in interface commonj.sdo.DataObject
      • getString

        public String getString​(commonj.sdo.Property property)
        Specified by:
        getString in interface commonj.sdo.DataObject
      • getList

        public List getList​(commonj.sdo.Property property)
        Specified by:
        getList in interface commonj.sdo.DataObject
      • setBoolean

        public void setBoolean​(commonj.sdo.Property property,
                               boolean value)
        Specified by:
        setBoolean in interface commonj.sdo.DataObject
      • setByte

        public void setByte​(commonj.sdo.Property property,
                            byte value)
        Specified by:
        setByte in interface commonj.sdo.DataObject
      • setChar

        public void setChar​(commonj.sdo.Property property,
                            char value)
        Specified by:
        setChar in interface commonj.sdo.DataObject
      • setDouble

        public void setDouble​(commonj.sdo.Property property,
                              double value)
        Specified by:
        setDouble in interface commonj.sdo.DataObject
      • setFloat

        public void setFloat​(commonj.sdo.Property property,
                             float value)
        Specified by:
        setFloat in interface commonj.sdo.DataObject
      • setInt

        public void setInt​(commonj.sdo.Property property,
                           int value)
        Specified by:
        setInt in interface commonj.sdo.DataObject
      • setLong

        public void setLong​(commonj.sdo.Property property,
                            long value)
        Specified by:
        setLong in interface commonj.sdo.DataObject
      • setShort

        public void setShort​(commonj.sdo.Property property,
                             short value)
        Specified by:
        setShort in interface commonj.sdo.DataObject
      • setBytes

        public void setBytes​(commonj.sdo.Property property,
                             byte[] value)
        Specified by:
        setBytes in interface commonj.sdo.DataObject
      • setBigDecimal

        public void setBigDecimal​(commonj.sdo.Property property,
                                  BigDecimal value)
        Specified by:
        setBigDecimal in interface commonj.sdo.DataObject
      • setBigInteger

        public void setBigInteger​(commonj.sdo.Property property,
                                  BigInteger value)
        Specified by:
        setBigInteger in interface commonj.sdo.DataObject
      • setDataObject

        public void setDataObject​(commonj.sdo.Property property,
                                  commonj.sdo.DataObject value)
        Specified by:
        setDataObject in interface commonj.sdo.DataObject
      • setDate

        public void setDate​(commonj.sdo.Property property,
                            Date value)
        Specified by:
        setDate in interface commonj.sdo.DataObject
      • setString

        public void setString​(commonj.sdo.Property property,
                              String value)
        Specified by:
        setString in interface commonj.sdo.DataObject
      • setList

        public void setList​(commonj.sdo.Property property,
                            List value)
        Specified by:
        setList in interface commonj.sdo.DataObject
      • createDataObject

        public commonj.sdo.DataObject createDataObject​(String propertyName)
        Specified by:
        createDataObject in interface commonj.sdo.DataObject
      • createDataObject

        public SDODataObject createDataObject​(int propertyIndex)
        Specified by:
        createDataObject in interface commonj.sdo.DataObject
      • createDataObject

        public SDODataObject createDataObject​(commonj.sdo.Property aProperty)
        Specified by:
        createDataObject in interface commonj.sdo.DataObject
      • createDataObject

        public SDODataObject createDataObject​(String propertyName,
                                              String namespaceURI,
                                              String typeName)
        Specified by:
        createDataObject in interface commonj.sdo.DataObject
      • createDataObject

        public SDODataObject createDataObject​(int propertyIndex,
                                              String namespaceURI,
                                              String typeName)
        Specified by:
        createDataObject in interface commonj.sdo.DataObject
      • createDataObject

        public SDODataObject createDataObject​(commonj.sdo.Property property,
                                              commonj.sdo.Type aType)
        Specified by:
        createDataObject in interface commonj.sdo.DataObject
      • detachOrDelete

        public void detachOrDelete​(boolean fromDelete)
        INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object. This function performs a single preOrder traversal of the tree. An unset is done for each property if the action = delete Implementors: detach() and delete() via detach
        Parameters:
        fromDelete - (flag the action true = delete, false = detach)
      • detach

        public void detach()
        Specified by:
        detach in interface commonj.sdo.DataObject
      • delete

        public void delete()
        Specified by:
        delete in interface commonj.sdo.DataObject
      • getContainer

        public SDODataObject getContainer()
        Specified by:
        getContainer in interface commonj.sdo.DataObject
      • getContainmentProperty

        public SDOProperty getContainmentProperty()
        Specified by:
        getContainmentProperty in interface commonj.sdo.DataObject
      • getDataGraph

        public commonj.sdo.DataGraph getDataGraph()
        Specified by:
        getDataGraph in interface commonj.sdo.DataObject
      • setDataGraph

        public void setDataGraph​(commonj.sdo.DataGraph dataGraph)
      • getType

        public SDOType getType()
        Specified by:
        getType in interface commonj.sdo.DataObject
      • getInstanceProperties

        public List getInstanceProperties()
        Specified by:
        getInstanceProperties in interface commonj.sdo.DataObject
      • getProperty

        public SDOProperty getProperty​(String propertyName)
        Specified by:
        getProperty in interface commonj.sdo.DataObject
      • getInstanceProperty

        public SDOProperty getInstanceProperty​(String propertyName)
        Specified by:
        getInstanceProperty in interface commonj.sdo.DataObject
      • getRootObject

        public SDODataObject getRootObject()
        Specified by:
        getRootObject in interface commonj.sdo.DataObject
      • getChangeSummary

        public SDOChangeSummary getChangeSummary()
        Specified by:
        getChangeSummary in interface commonj.sdo.DataObject
      • _setCreated

        public void _setCreated​(boolean created)
        INTERNAL: Set flag created value.
        Parameters:
        created - flag created's new value.
      • _setModified

        public void _setModified​(boolean modified)
        INTERNAL: Set flag modified value.
        Parameters:
        modified - flag modified's new value.
      • _setChangeSummary

        public void _setChangeSummary​(SDOChangeSummary aChangeSummary)
        INTERNAL: Recursively Set this DataObject's ChangeSummary as passed in value.
        Parameters:
        aChangeSummary - the ChangeSummary taking this DataObject as root.
      • undoChanges

        public void undoChanges​(boolean isCSRoot,
                                commonj.sdo.ChangeSummary cs,
                                SDODataObject origContainer,
                                String origContainmentPropName)
        INTERNAL: This function reverses any operations that were performed on this object since change tracking was turned on. The object is returned to the state when logging was first started.
        Parameters:
        isCSRoot -
        cs -
        origContainer -
        origContainmentPropName -
      • resetChanges

        public void resetChanges()
        INTERNAL: Initialize all old settings related to ChangeSummary and recursively go down the tree to initialize all DataObjects rooted at this DataObject.
      • _setType

        public void _setType​(commonj.sdo.Type aType)
        INTERNAL:
        Parameters:
        aType -
      • _setCurrentValueStore

        public void _setCurrentValueStore​(ValueStore aValueStore)
        INTERNAL: Pluggable Interface for substituting the default Map with a custom Map Class
        Parameters:
        aValueStore -
      • _getCurrentValueStore

        public ValueStore _getCurrentValueStore()
        INTERNAL: Map interface into the currentValueStore of this DataObject.
        Note: Implementers of the ValueStore interface require this accessor.
        Returns:
      • _setContainer

        public void _setContainer​(commonj.sdo.DataObject aContainer)
        INTERNAL: Sets the DataObject which contains this DataObject.
        Parameters:
        aContainer - the DataObject which is the container of this DataObject.
      • _getOpenContentPropertiesAttributesMap

        public Map _getOpenContentPropertiesAttributesMap()
      • _setOpenContentPropertiesAttributesMap

        public void _setOpenContentPropertiesAttributesMap​(Map openAttributeProperties)
      • _setOpenContentPropertiesWithXMLRoots

        public void _setOpenContentPropertiesWithXMLRoots​(List openContentPropertiesWithXMLRoots)
        INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call
        Parameters:
        openContentPropertiesWithXMLRoots -
      • _getOpenContentPropertiesWithXMLRoots

        public List _getOpenContentPropertiesWithXMLRoots()
        INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call
        Returns:
      • _getOpenContentProperties

        public List _getOpenContentProperties()
        INTERNAL: Returns a list of the Properties currently used in this DataObject which are not included in getType().getProperties
        Returns:
        the List of open content Properties currently used in this DataObject.
      • _setContainmentPropertyName

        public void _setContainmentPropertyName​(String aContainmentPropertyName)
        INTERNAL: Sets the name of the property on the containing DataObject which contains this DataObject as a value.
        Parameters:
        aContainmentPropertyName - the name of the property on the containing DataObject which has this DataObject as a value.
      • _getContainmentPropertyName

        public String _getContainmentPropertyName()
        INTERNAL: Return the name of the Property of the DataObject containing this data object or null if there is no container.
        Returns:
        the property containing this data object.
      • parentContains

        public boolean parentContains​(Object value)
        INTERNAL:
        Parameters:
        value -
        Returns:
      • updateContainment

        public void updateContainment​(commonj.sdo.Property property,
                                      Collection values,
                                      boolean updateSequence)
        INTERNAL: Update containment with flagged update sequence state
        Parameters:
        property -
        values -
        updateSequence -
      • updateContainment

        public void updateContainment​(commonj.sdo.Property property,
                                      Collection values)
        INTERNAL: Update containment on the specified collection of values and default to true = update the sequence
        Parameters:
        property -
        values -
      • updateContainment

        public void updateContainment​(commonj.sdo.Property property,
                                      SDODataObject aDataObject,
                                      boolean updateSequence)
        INTERNAL: Update containment on the dataObject with specified update sequence state
        Parameters:
        property -
        aDataObject -
        updateSequence -
      • updateContainment

        public void updateContainment​(commonj.sdo.Property property,
                                      SDODataObject value)
        INTERNAL: update containment and the update the sequence value by default.
        Parameters:
        property -
        value -
      • writeReplace

        public Object writeReplace()
        INTERNAL: Defined in SDO 2.01 spec on page 65 Externalizable function is called by ObjectStream.writeObject() A replacement object for serialization can be called here.

        Security Note: This public function exposes a data replacement vulnerability where an outside client can gain access and modify their non-final constants. We may need to wrap the GZIP streams in some sort of encryption when we are not using HTTPS or SSL/TLS on the wire.

        See Also:
        SDOResolvable
      • _getPath

        public String _getPath()
        INTERNAL: Return an SDO Path string from root of the caller to itself
        Returns:
        String
      • getPropertyInternal

        public Object getPropertyInternal​(commonj.sdo.Property property)
        INTERNAL: Get the value of the property (open-content or declared)..
        Parameters:
        property -
        Returns:
      • setPropertyInternal

        public void setPropertyInternal​(SDOProperty property,
                                        Object value,
                                        boolean updateSequence)
        INTERNAL: Update the ValueStore with the new property value and update any sequence if it exists.
        Parameters:
        property -
        value -
        updateSequence - (truncate call back from sequence when this function was called from sequence)
      • addOpenContentProperty

        public void addOpenContentProperty​(commonj.sdo.Property property)
        INTERNAL: Add the open content property into all 3 data structures. Remove the property from the unset map.
        Parameters:
        property -
      • removeOpenContentProperty

        public void removeOpenContentProperty​(commonj.sdo.Property property)
        INTERNAL: Remove the open content property (property) from all 3 data structures. Add the property to the unset map. We restore this OC property in undoChanges
        Parameters:
        property -
      • isSetInternal

        public boolean isSetInternal​(commonj.sdo.Property property)
        INTERNAL: Return whether the property (open-content or declared) is set?
        Parameters:
        property -
        Returns:
        true if set, false otherwise
      • _getSdoRef

        public String _getSdoRef()
        INTERNAL: Return the sdoref attribute value during unmarshaling
        Returns:
      • _setOpenContentPropertiesAttributes

        public void _setOpenContentPropertiesAttributes​(List openContentPropertiesAttributes)
      • _getOpenContentPropertiesAttributes

        public List _getOpenContentPropertiesAttributes()
      • _setSdoRef

        public void _setSdoRef​(String newRef)