- All Implemented Interfaces:
DataObject
,Serializable
,SequencedObject
- Direct Known Subclasses:
OpenSequencedTypeImpl
,SDOPropertyType.PropertyImpl
,SDOTypeType.TypeImpl
,SDOWrapperType.BooleanObjectWrapperImpl
,SDOWrapperType.BooleanWrapperImpl
,SDOWrapperType.ByteObjectWrapperImpl
,SDOWrapperType.Bytes_hexBunaryWrapperImpl
,SDOWrapperType.BytesWrapperImpl
,SDOWrapperType.ByteWrapperImpl
,SDOWrapperType.CharacterObjectWrapperImpl
,SDOWrapperType.CharacterWrapperImpl
,SDOWrapperType.DateTimeWrapperImpl
,SDOWrapperType.DateWrapperImpl
,SDOWrapperType.DayWrapperImpl
,SDOWrapperType.DecimalWrapperImpl
,SDOWrapperType.DoubleObjectWrapperImpl
,SDOWrapperType.DoubleWrapperImpl
,SDOWrapperType.DurationWrapperImpl
,SDOWrapperType.FloatObjectWrapperImpl
,SDOWrapperType.FloatWrapperImpl
,SDOWrapperType.IntegerWrapperImpl
,SDOWrapperType.IntObjectWrapperImpl
,SDOWrapperType.IntWrapperImpl
,SDOWrapperType.LongObjectWrapperImpl
,SDOWrapperType.LongWrapperImpl
,SDOWrapperType.MonthDayWrapperImpl
,SDOWrapperType.MonthWrapperImpl
,SDOWrapperType.ObjectWrapperImpl
,SDOWrapperType.ShortObjectWrapperImpl
,SDOWrapperType.ShortWrapperImpl
,SDOWrapperType.StringsWrapperImpl
,SDOWrapperType.StringWrapperImpl
,SDOWrapperType.TimeWrapperImpl
,SDOWrapperType.URI_QNameWrapperImpl
,SDOWrapperType.URIWrapperImpl
,SDOWrapperType.YearMonthDayWrapperImpl
,SDOWrapperType.YearMonthWrapperImpl
,SDOWrapperType.YearWrapperImpl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL: Return the name of the Property of the DataObject containing this data object or null if there is no container.INTERNAL: Map interface into the currentValueStore of this DataObject.
Note: Implementers of theValueStore
interface require this accessor.INTERNAL: Returns a list of the Properties currently used in this DataObject which are not included in getType().getPropertiesINTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call_getPath()
INTERNAL: Return an SDO Path string from root of the caller to itselfINTERNAL: Return the sdoref attribute value during unmarshalingvoid
_setChangeSummary
(SDOChangeSummary aChangeSummary) INTERNAL: Recursively Set this DataObject's ChangeSummary as passed in value.void
_setContainer
(DataObject aContainer) INTERNAL: Sets the DataObject which contains this DataObject.void
_setContainmentPropertyName
(String aContainmentPropertyName) INTERNAL: Sets the name of the property on the containing DataObject which contains this DataObject as a value.void
_setCreated
(boolean created) INTERNAL: Set flag created value.void
_setCurrentValueStore
(ValueStore aValueStore) INTERNAL: Pluggable Interface for substituting the default Map with a custom Map Classvoid
_setHelperContext
(HelperContext aContext) INTERNAL: Set the HelperContext that will be associated with this DataObject.void
_setModified
(boolean modified) INTERNAL: Set flag modified value.void
_setOpenContentPropertiesAttributes
(List openContentPropertiesAttributes) void
_setOpenContentPropertiesAttributesMap
(Map openAttributeProperties) void
_setOpenContentPropertiesWithXMLRoots
(List openContentPropertiesWithXMLRoots) INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName callvoid
_setSdoRef
(String newRef) void
INTERNAL:void
addOpenContentProperty
(Property property) INTERNAL: Add the open content property into all 3 data structures.convertObjectToValue
(Property property, int position, Class<?> cls) INTERNAL:convertObjectToValue
(Property property, Class<?> cls) INTERNAL:createDataObject
(int propertyIndex) Returns a newdata object
contained by this object using the specified property, which must be acontainment property
.createDataObject
(int propertyIndex, String namespaceURI, String typeName) Returns a newdata object
contained by this object using the specified property, which must be acontainment property
.createDataObject
(Property aProperty) Returns a newdata object
contained by this object using the specified property, which must be acontainment property
.createDataObject
(Property property, Type aType) Returns a newdata object
contained by this object using the specified property, which must be ofcontainment type
.createDataObject
(String propertyName) Returns a newdata object
contained by this object using the specified property, which must be acontainment property
.createDataObject
(String propertyName, String namespaceURI, String typeName) Returns a newdata object
contained by this object using the specified property, which must be acontainment property
.defineOpenContentProperty
(String name, Object value) INTERNAL: Create a dynamic open content property if no property exists for (name).defineOpenContentProperty
(String name, Object value, Type sdotype) void
delete()
Remove this object from its container and then unset all its non-readOnly
Properties.void
detach()
Removes this DataObject from its container, if any.void
detachOrDelete
(boolean fromDelete) INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object.get
(int propertyIndex) Returns the value of the property at the specified index inproperty list
of this object'stype
.Returns the value of the given property of this object.Returns the value of a property of either this object or an object reachable from it, as identified by the specified path.getBigDecimal
(int propertyIndex) Returns the value of aBigDecimal
property identified by the specified property index.getBigDecimal
(Property property) Returns the value of the specifiedBigDecimal
property.getBigDecimal
(String path) Returns the value of aBigDecimal
property identified by the specified path.getBigInteger
(int propertyIndex) Returns the value of aBigInteger
property identified by the specified property index.getBigInteger
(Property property) Returns the value of the specifiedBigInteger
property.getBigInteger
(String path) Returns the value of aBigInteger
property identified by the specified path.boolean
getBoolean
(int propertyIndex) Returns the value of aboolean
property identified by the specified property index.boolean
getBoolean
(Property property) Returns the value of the specifiedboolean
property.boolean
getBoolean
(String path) Returns the value of aboolean
property identified by the specified path.byte
getByte
(int propertyIndex) Returns the value of abyte
property identified by the specified property index.byte
Returns the value of the specifiedbyte
property.byte
Returns the value of abyte
property identified by the specified path.byte[]
getBytes
(int propertyIndex) Returns the value of abyte[]
property identified by the specified property index.byte[]
Returns the value of the specifiedbyte[]
property.byte[]
Returns the value of abyte[]
property identified by the specified path.Returns the ChangeSummary with scope covering this dataObject, or null if there is no ChangeSummary.char
getChar
(int propertyIndex) Returns the value of achar
property identified by the specified property index.char
Returns the value of the specifiedchar
property.char
Returns the value of achar
property identified by the specified path.Returns the containingdata object
ornull
if there is no container.Return the Property of thedata object
containing this data object ornull
if there is no container.Returns thedata graph
for this object ornull
if there isn't one.getDataObject
(int propertyIndex) Returns the value of aDataObject
property identified by the specified property index.getDataObject
(Property property) Returns the value of the specifiedDataObject
property.getDataObject
(String path) Returns the value of aDataObject
property identified by the specified path.getDate
(int propertyIndex) Returns the value of aDate
property identified by the specified property index.Returns the value of the specifiedDate
property.Returns the value of aDate
property identified by the specified path.double
getDouble
(int propertyIndex) Returns the value of adouble
property identified by the specified property index.double
Returns the value of the specifieddouble
property.double
Returns the value of adouble
property identified by the specified path.float
getFloat
(int propertyIndex) Returns the value of afloat
property identified by the specified property index.float
Returns the value of the specifiedfloat
property.float
Returns the value of afloat
property identified by the specified path.Returns a read-only List of the Properties currently used in this DataObject.getInstanceProperty
(int propertyIndex) INTERNAL:getInstanceProperty
(String propertyName) Returns the named Property from the current instance properties, or null if not found.int
getInt
(int propertyIndex) Returns the value of aint
property identified by the specified property index.int
Returns the value of the specifiedint
property.int
Returns the value of aint
property identified by the specified path.getList
(int propertyIndex) Returns the value of aList
property identified by the specified property index.Returns the value of the specifiedList
property.Returns the value of aList
property identified by the specified path.long
getLong
(int propertyIndex) Returns the value of along
property identified by the specified property index.long
Returns the value of the specifiedlong
property.long
Returns the value of along
property identified by the specified path.getProperty
(String propertyName) getPropertyInternal
(Property property) INTERNAL: Get the value of the property (open-content or declared)..Returns the rootdata object
.Returns theSequence
for this DataObject.getSequence
(int propertyIndex) Deprecated.in SDO 2.1.0.getSequence
(Property property) Deprecated.in SDO 2.1.0.getSequence
(String path) Deprecated.in SDO 2.1.0.short
getShort
(int propertyIndex) Returns the value of ashort
property identified by the specified property index.short
Returns the value of the specifiedshort
property.short
Returns the value of ashort
property identified by the specified path.getString
(int propertyIndex) Returns the value of aString
property identified by the specified property index.Returns the value of the specifiedString
property.Returns the value of aString
property identified by the specified path.getType()
Returns the data object's type.boolean
isSet
(int propertyIndex) Returns whether the the property at the specified index inproperty list
of this object'stype
, is considered to be set.boolean
Returns whether the property of the object is considered to be set.boolean
Returns whether a property of either this object or an object reachable from it, as identified by the specified path, is considered to be set.boolean
isSetInternal
(Property property) INTERNAL: Return whether the property (open-content or declared) is set?boolean
parentContains
(Object value) INTERNAL:void
removeOpenContentProperty
(Property property) INTERNAL: Remove the open content property (property) from all 3 data structures.void
INTERNAL: Initialize all old settings related to ChangeSummary and recursively go down the tree to initialize all DataObjects rooted at this DataObject.void
Sets the property at the specified index inproperty list
of this object'stype
, to the specified value.void
Sets the value of the given property of the object to the new value.void
Sets a property of either this object or an object reachable from it, as identified by the specified path, to the specified value.void
set
(SDOProperty property, Object value, boolean updateSequence) INTERNAL: Sets the value of the given property of the object to the new value.void
setBigDecimal
(int propertyIndex, BigDecimal value) Sets the value of aBigDecimal
property identified by the specified property index, to the specified value.void
setBigDecimal
(Property property, BigDecimal value) Sets the value of the specifiedBigDecimal
property, to the specified value.void
setBigDecimal
(String path, BigDecimal value) Sets the value of aBigDecimal
property identified by the specified path, to the specified value.void
setBigInteger
(int propertyIndex, BigInteger value) Sets the value of aBigInteger
property identified by the specified property index, to the specified value.void
setBigInteger
(Property property, BigInteger value) Sets the value of the specifiedBigInteger
property, to the specified value.void
setBigInteger
(String path, BigInteger value) Sets the value of aBigInteger
property identified by the specified path, to the specified value.void
setBoolean
(int propertyIndex, boolean value) Sets the value of aboolean
property identified by the specified property index, to the specified value.void
setBoolean
(Property property, boolean value) Sets the value of the specifiedboolean
property, to the specified value.void
setBoolean
(String path, boolean value) Sets the value of aboolean
property identified by the specified path, to the specified value.void
setByte
(int propertyIndex, byte value) Sets the value of abyte
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedbyte
property, to the specified value.void
Sets the value of abyte
property identified by the specified path, to the specified value.void
setBytes
(int propertyIndex, byte[] value) Sets the value of abyte[]
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedbyte[]
property, to the specified value.void
Sets the value of abyte[]
property identified by the specified path, to the specified value.void
setChar
(int propertyIndex, char value) Sets the value of achar
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedchar
property, to the specified value.void
Sets the value of achar
property identified by the specified path, to the specified value.void
setDataGraph
(DataGraph dataGraph) void
setDataObject
(int propertyIndex, DataObject value) Sets the value of aDataObject
property identified by the specified property index, to the specified value.void
setDataObject
(Property property, DataObject value) Sets the value of the specifiedDataObject
property, to the specified value.void
setDataObject
(String path, DataObject value) Sets the value of aDataObject
property identified by the specified path, to the specified value.void
Sets the value of aDate
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedDate
property, to the specified value.void
Sets the value of aDate
property identified by the specified path, to the specified value.void
setDouble
(int propertyIndex, double value) Sets the value of adouble
property identified by the specified property index, to the specified value.void
Sets the value of the specifieddouble
property, to the specified value.void
Sets the value of adouble
property identified by the specified path, to the specified value.void
setFloat
(int propertyIndex, float value) Sets the value of afloat
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedfloat
property, to the specified value.void
Sets the value of afloat
property identified by the specified path, to the specified value.void
setInt
(int propertyIndex, int value) Sets the value of aint
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedint
property, to the specified value.void
Sets the value of aint
property identified by the specified path, to the specified value.void
setInternal
(SDOProperty property, Object value, boolean updateSequence) void
Sets the value of aList
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedList
property, to the specified value.void
Sets the value of aList
property identified by the specified path, to the specified value.void
setLong
(int propertyIndex, long value) Sets the value of along
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedlong
property, to the specified value.void
Sets the value of along
property identified by the specified path, to the specified value.void
setPropertyInternal
(SDOProperty property, Object value, boolean updateSequence) INTERNAL: Update the ValueStore with the new property value and update any sequence if it exists.void
setShort
(int propertyIndex, short value) Sets the value of ashort
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedshort
property, to the specified value.void
Sets the value of ashort
property identified by the specified path, to the specified value.void
Sets the value of aString
property identified by the specified property index, to the specified value.void
Sets the value of the specifiedString
property, to the specified value.void
Sets the value of aString
property identified by the specified path, to the specified value.void
undoChanges
(boolean isCSRoot, ChangeSummary cs, SDODataObject origContainer, String origContainmentPropName) INTERNAL: This function reverses any operations that were performed on this object since change tracking was turned on.void
unset
(int propertyIndex) Unsets the property at the specified index inproperty list
of this object'stype
.void
Unsets the property of the object.void
INTERNAL: Unset the specified property on this DataObject.void
Unsets a property of either this object or an object reachable from it, as identified by the specified path.void
updateContainment
(Property property, Collection values) INTERNAL: Update containment on the specified collection of values and default to true = update the sequencevoid
updateContainment
(Property property, Collection values, boolean updateSequence) INTERNAL: Update containment with flagged update sequence statevoid
updateContainment
(Property property, SDODataObject value) INTERNAL: update containment and the update the sequence value by default.void
updateContainment
(Property property, SDODataObject aDataObject, boolean updateSequence) INTERNAL: Update containment on the dataObject with specified update sequence stateINTERNAL: 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.
-
Constructor Details
-
SDODataObject
public SDODataObject()INTERNAL: Private constructor. UseSDODataFactoryDelegate.create(Type)
instead
-
-
Method Details
-
_setHelperContext
INTERNAL: Set the HelperContext that will be associated with this DataObject.- Parameters:
aContext
-
-
get
Description copied from interface:DataObject
Returns the value of a property of either this object or an object reachable from it, as identified by the specified path.- Specified by:
get
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the value of the specified property.
- See Also:
-
set
public void set(String path, Object value) throws ClassCastException, UnsupportedOperationException, IllegalArgumentException Description copied from interface:DataObject
Sets a property of either this object or an object reachable from it, as identified by the specified path, to the specified value.- Specified by:
set
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- Throws:
ClassCastException
UnsupportedOperationException
IllegalArgumentException
- See Also:
-
isSet
Description copied from interface:DataObject
Returns whether a property of either this object or an object reachable from it, as identified by the specified path, is considered to be set.- Specified by:
isSet
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- See Also:
-
unset
Description copied from interface:DataObject
Unsets a property of either this object or an object reachable from it, as identified by the specified path.- Specified by:
unset
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- See Also:
-
getBoolean
Description copied from interface:DataObject
Returns the value of aboolean
property identified by the specified path.- Specified by:
getBoolean
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
boolean
value of the specified property. - Throws:
ClassCastException
- See Also:
-
getByte
Description copied from interface:DataObject
Returns the value of abyte
property identified by the specified path.- Specified by:
getByte
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
byte
value of the specified property. - See Also:
-
getChar
Description copied from interface:DataObject
Returns the value of achar
property identified by the specified path.- Specified by:
getChar
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
char
value of the specified property. - See Also:
-
getDouble
Description copied from interface:DataObject
Returns the value of adouble
property identified by the specified path.- Specified by:
getDouble
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
double
value of the specified property. - See Also:
-
getFloat
Description copied from interface:DataObject
Returns the value of afloat
property identified by the specified path.- Specified by:
getFloat
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
float
value of the specified property. - See Also:
-
getInt
Description copied from interface:DataObject
Returns the value of aint
property identified by the specified path.- Specified by:
getInt
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
int
value of the specified property. - See Also:
-
getLong
Description copied from interface:DataObject
Returns the value of along
property identified by the specified path.- Specified by:
getLong
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
long
value of the specified property. - See Also:
-
getShort
Description copied from interface:DataObject
Returns the value of ashort
property identified by the specified path.- Specified by:
getShort
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
short
value of the specified property. - See Also:
-
getBytes
Description copied from interface:DataObject
Returns the value of abyte[]
property identified by the specified path.- Specified by:
getBytes
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
byte[]
value of the specified property. - See Also:
-
getBigDecimal
Description copied from interface:DataObject
Returns the value of aBigDecimal
property identified by the specified path.- Specified by:
getBigDecimal
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
BigDecimal
value of the specified property. - See Also:
-
getBigInteger
Description copied from interface:DataObject
Returns the value of aBigInteger
property identified by the specified path.- Specified by:
getBigInteger
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
BigInteger
value of the specified property. - See Also:
-
getDataObject
Description copied from interface:DataObject
Returns the value of aDataObject
property identified by the specified path.- Specified by:
getDataObject
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
DataObject
value of the specified property. - Throws:
ClassCastException
- See Also:
-
getDate
Description copied from interface:DataObject
Returns the value of aDate
property identified by the specified path.- Specified by:
getDate
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
Date
value of the specified property. - See Also:
-
getString
Description copied from interface:DataObject
Returns the value of aString
property identified by the specified path.- Specified by:
getString
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
String
value of the specified property. - See Also:
-
getList
Description copied from interface:DataObject
Returns the value of aList
property identified by the specified path.- Specified by:
getList
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
List
value of the specified property. - See Also:
-
setBoolean
Description copied from interface:DataObject
Sets the value of aboolean
property identified by the specified path, to the specified value.- Specified by:
setBoolean
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setByte
Description copied from interface:DataObject
Sets the value of abyte
property identified by the specified path, to the specified value.- Specified by:
setByte
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setChar
Description copied from interface:DataObject
Sets the value of achar
property identified by the specified path, to the specified value.- Specified by:
setChar
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setDouble
Description copied from interface:DataObject
Sets the value of adouble
property identified by the specified path, to the specified value.- Specified by:
setDouble
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setFloat
Description copied from interface:DataObject
Sets the value of afloat
property identified by the specified path, to the specified value.- Specified by:
setFloat
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setInt
Description copied from interface:DataObject
Sets the value of aint
property identified by the specified path, to the specified value.- Specified by:
setInt
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setLong
Description copied from interface:DataObject
Sets the value of along
property identified by the specified path, to the specified value.- Specified by:
setLong
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setShort
Description copied from interface:DataObject
Sets the value of ashort
property identified by the specified path, to the specified value.- Specified by:
setShort
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setBytes
Description copied from interface:DataObject
Sets the value of abyte[]
property identified by the specified path, to the specified value.- Specified by:
setBytes
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setBigDecimal
Description copied from interface:DataObject
Sets the value of aBigDecimal
property identified by the specified path, to the specified value.- Specified by:
setBigDecimal
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setBigInteger
Description copied from interface:DataObject
Sets the value of aBigInteger
property identified by the specified path, to the specified value.- Specified by:
setBigInteger
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setDataObject
Description copied from interface:DataObject
Sets the value of aDataObject
property identified by the specified path, to the specified value.- Specified by:
setDataObject
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setDate
Description copied from interface:DataObject
Sets the value of aDate
property identified by the specified path, to the specified value.- Specified by:
setDate
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setString
Description copied from interface:DataObject
Sets the value of aString
property identified by the specified path, to the specified value.- Specified by:
setString
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
setList
Description copied from interface:DataObject
Sets the value of aList
property identified by the specified path, to the specified value.- Specified by:
setList
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.value
- the new value for the property.- See Also:
-
get
Description copied from interface:DataObject
Returns the value of the property at the specified index inproperty list
of this object'stype
.- Specified by:
get
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the value of the specified property.
- Throws:
IllegalArgumentException
- See Also:
-
set
Description copied from interface:DataObject
Sets the property at the specified index inproperty list
of this object'stype
, to the specified value.- Specified by:
set
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
isSet
public boolean isSet(int propertyIndex) Description copied from interface:DataObject
Returns whether the the property at the specified index inproperty list
of this object'stype
, is considered to be set.- Specified by:
isSet
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- whether the specified property is set.
- See Also:
-
unset
public void unset(int propertyIndex) Description copied from interface:DataObject
Unsets the property at the specified index inproperty list
of this object'stype
.- Specified by:
unset
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- See Also:
-
getBoolean
Description copied from interface:DataObject
Returns the value of aboolean
property identified by the specified property index.- Specified by:
getBoolean
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
boolean
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getByte
Description copied from interface:DataObject
Returns the value of abyte
property identified by the specified property index.- Specified by:
getByte
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
byte
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getChar
Description copied from interface:DataObject
Returns the value of achar
property identified by the specified property index.- Specified by:
getChar
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
char
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getDouble
Description copied from interface:DataObject
Returns the value of adouble
property identified by the specified property index.- Specified by:
getDouble
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
double
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getFloat
Description copied from interface:DataObject
Returns the value of afloat
property identified by the specified property index.- Specified by:
getFloat
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
float
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getInt
Description copied from interface:DataObject
Returns the value of aint
property identified by the specified property index.- Specified by:
getInt
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
int
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getLong
Description copied from interface:DataObject
Returns the value of along
property identified by the specified property index.- Specified by:
getLong
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
long
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getShort
Description copied from interface:DataObject
Returns the value of ashort
property identified by the specified property index.- Specified by:
getShort
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
short
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getBytes
Description copied from interface:DataObject
Returns the value of abyte[]
property identified by the specified property index.- Specified by:
getBytes
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
byte[]
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getBigDecimal
public BigDecimal getBigDecimal(int propertyIndex) throws IllegalArgumentException, ClassCastException Description copied from interface:DataObject
Returns the value of aBigDecimal
property identified by the specified property index.- Specified by:
getBigDecimal
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
BigDecimal
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getBigInteger
public BigInteger getBigInteger(int propertyIndex) throws IllegalArgumentException, ClassCastException Description copied from interface:DataObject
Returns the value of aBigInteger
property identified by the specified property index.- Specified by:
getBigInteger
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
BigInteger
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getDataObject
Description copied from interface:DataObject
Returns the value of aDataObject
property identified by the specified property index.- Specified by:
getDataObject
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
DataObject
value of the specified property. - See Also:
-
getDate
Description copied from interface:DataObject
Returns the value of aDate
property identified by the specified property index.- Specified by:
getDate
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
Date
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getString
Description copied from interface:DataObject
Returns the value of aString
property identified by the specified property index.- Specified by:
getString
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
String
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getList
Description copied from interface:DataObject
Returns the value of aList
property identified by the specified property index.- Specified by:
getList
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
List
value of the specified property. - See Also:
-
getSequence
Deprecated.in SDO 2.1.0.- Specified by:
getSequence
in interfaceDataObject
- Parameters:
path
- the path to a valid object and property.- Returns:
- the
Sequence
value of the specified property. - See Also:
-
getSequence
Deprecated.in SDO 2.1.0.- Specified by:
getSequence
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.- Returns:
- the
Sequence
value of the specified property. - See Also:
-
getSequence
Deprecated.in SDO 2.1.0.- Specified by:
getSequence
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
Sequence
value of the specified property. - See Also:
-
getSequence
Description copied from interface:DataObject
Returns theSequence
for this DataObject. When getType().isSequencedType() == true, the Sequence of a DataObject corresponds to the XML elements representing the values of its Properties. Updates through DataObject and the Lists or Sequences returned from DataObject operate on the same data. When getType().isSequencedType() == false, null is returned.- Specified by:
getSequence
in interfaceDataObject
- Returns:
- the
Sequence
or null.
-
setBoolean
public void setBoolean(int propertyIndex, boolean value) Description copied from interface:DataObject
Sets the value of aboolean
property identified by the specified property index, to the specified value.- Specified by:
setBoolean
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setByte
public void setByte(int propertyIndex, byte value) Description copied from interface:DataObject
Sets the value of abyte
property identified by the specified property index, to the specified value.- Specified by:
setByte
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setChar
public void setChar(int propertyIndex, char value) Description copied from interface:DataObject
Sets the value of achar
property identified by the specified property index, to the specified value.- Specified by:
setChar
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setDouble
public void setDouble(int propertyIndex, double value) Description copied from interface:DataObject
Sets the value of adouble
property identified by the specified property index, to the specified value.- Specified by:
setDouble
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setFloat
public void setFloat(int propertyIndex, float value) Description copied from interface:DataObject
Sets the value of afloat
property identified by the specified property index, to the specified value.- Specified by:
setFloat
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setInt
public void setInt(int propertyIndex, int value) Description copied from interface:DataObject
Sets the value of aint
property identified by the specified property index, to the specified value.- Specified by:
setInt
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setLong
public void setLong(int propertyIndex, long value) Description copied from interface:DataObject
Sets the value of along
property identified by the specified property index, to the specified value.- Specified by:
setLong
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setShort
public void setShort(int propertyIndex, short value) Description copied from interface:DataObject
Sets the value of ashort
property identified by the specified property index, to the specified value.- Specified by:
setShort
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setBytes
public void setBytes(int propertyIndex, byte[] value) Description copied from interface:DataObject
Sets the value of abyte[]
property identified by the specified property index, to the specified value.- Specified by:
setBytes
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setBigDecimal
Description copied from interface:DataObject
Sets the value of aBigDecimal
property identified by the specified property index, to the specified value.- Specified by:
setBigDecimal
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setBigInteger
Description copied from interface:DataObject
Sets the value of aBigInteger
property identified by the specified property index, to the specified value.- Specified by:
setBigInteger
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setDataObject
Description copied from interface:DataObject
Sets the value of aDataObject
property identified by the specified property index, to the specified value.- Specified by:
setDataObject
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setDate
Description copied from interface:DataObject
Sets the value of aDate
property identified by the specified property index, to the specified value.- Specified by:
setDate
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setString
Description copied from interface:DataObject
Sets the value of aString
property identified by the specified property index, to the specified value.- Specified by:
setString
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
setList
Description copied from interface:DataObject
Sets the value of aList
property identified by the specified property index, to the specified value.- Specified by:
setList
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the property.value
- the new value for the property.- See Also:
-
get
Description copied from interface:DataObject
Returns the value of the given property of this object.If the property is
many-valued
, the result will be aList
and each object in the List will bean instance of
the property'stype
. Otherwise the result will directly be an instance of the property's type.- Specified by:
get
in interfaceDataObject
- Parameters:
property
- the property of the value to fetch.- Returns:
- the value of the given property of the object.
- Throws:
IllegalArgumentException
- See Also:
-
defineOpenContentProperty
public Property defineOpenContentProperty(String name, Object value) throws UnsupportedOperationException, IllegalArgumentException INTERNAL: Create a dynamic open content property if no property exists for (name).- Parameters:
name
-value
-- Returns:
- Property
- Throws:
UnsupportedOperationException
IllegalArgumentException
-
defineOpenContentProperty
public Property defineOpenContentProperty(String name, Object value, Type sdotype) throws UnsupportedOperationException, IllegalArgumentException -
set
public void set(Property property, Object value) throws UnsupportedOperationException, IllegalArgumentException Description copied from interface:DataObject
Sets the value of the given property of the object to the new value.If the property is
many-valued
, the new value must be aList
and each object in that list must bean instance of
the property'stype
; the existing contents are cleared and the contents of the new value are added. Otherwise the new value directly must be an instance of the property's type and it becomes the new value of the property of the object.- Specified by:
set
in interfaceDataObject
- Parameters:
property
- the property of the value to set.value
- the new value for the property.- Throws:
UnsupportedOperationException
IllegalArgumentException
- See Also:
-
setInternal
public void setInternal(SDOProperty property, Object value, boolean updateSequence) throws UnsupportedOperationException, IllegalArgumentException -
set
public void set(SDOProperty property, Object value, boolean updateSequence) throws UnsupportedOperationException, IllegalArgumentException INTERNAL: Sets the value of the given property of the object to the new value.The use of a false updateSequence flag is internally implemented during an SDOSequence.add() call. Refactor: we need to abstract this function using a type of Command pattern to handle the sequence context.
- Parameters:
property
-value
-updateSequence
-- Throws:
UnsupportedOperationException
IllegalArgumentException
-
isSet
Description copied from interface:DataObject
Returns whether the property of the object is considered to be set.isSet() for many-valued Properties returns true if the List is not empty and false if the List is empty. For single-valued Properties it returns true if the Property has been set() and not unset(), and false otherwise. Any call to set() without a call to unset() will cause isSet() to return true, regardless of the value being set. For example, after calling set(property, property.getDefault()) on a previously unset property, isSet(property) will return true, even though the value of get(property) will be unchanged.
- Specified by:
isSet
in interfaceDataObject
- Parameters:
property
- the property in question.- Returns:
- whether the property of the object is set.
- See Also:
-
unset
Description copied from interface:DataObject
Unsets the property of the object.If the property is
many-valued
, the value must be anList
and that list is cleared. Otherwise, the value of the property of the object is set to the property'sdefault value
. The property will no longer be consideredset
.- Specified by:
unset
in interfaceDataObject
- Parameters:
property
- the property in question.- See Also:
-
unset
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
-
-
getBoolean
Description copied from interface:DataObject
Returns the value of the specifiedboolean
property.- Specified by:
getBoolean
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
boolean
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getByte
Description copied from interface:DataObject
Returns the value of the specifiedbyte
property.- Specified by:
getByte
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
byte
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getChar
Description copied from interface:DataObject
Returns the value of the specifiedchar
property.- Specified by:
getChar
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
char
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getDouble
Description copied from interface:DataObject
Returns the value of the specifieddouble
property.- Specified by:
getDouble
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
double
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getFloat
Description copied from interface:DataObject
Returns the value of the specifiedfloat
property.- Specified by:
getFloat
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
float
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getInt
Description copied from interface:DataObject
Returns the value of the specifiedint
property.- Specified by:
getInt
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
int
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getLong
Description copied from interface:DataObject
Returns the value of the specifiedlong
property.- Specified by:
getLong
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
long
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getShort
Description copied from interface:DataObject
Returns the value of the specifiedshort
property.- Specified by:
getShort
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
short
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getBytes
Description copied from interface:DataObject
Returns the value of the specifiedbyte[]
property.- Specified by:
getBytes
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
byte[]
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getBigDecimal
Description copied from interface:DataObject
Returns the value of the specifiedBigDecimal
property.- Specified by:
getBigDecimal
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
BigDecimal
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getBigInteger
Description copied from interface:DataObject
Returns the value of the specifiedBigInteger
property.- Specified by:
getBigInteger
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
BigInteger
value of the specified property. - Throws:
IllegalArgumentException
- See Also:
-
getDataObject
public SDODataObject getDataObject(Property property) throws IllegalArgumentException, ClassCastException Description copied from interface:DataObject
Returns the value of the specifiedDataObject
property.- Specified by:
getDataObject
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
DataObject
value of the specified property. - Throws:
IllegalArgumentException
ClassCastException
- See Also:
-
getDate
Description copied from interface:DataObject
Returns the value of the specifiedDate
property.- Specified by:
getDate
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
Date
value of the specified property. - See Also:
-
getString
Description copied from interface:DataObject
Returns the value of the specifiedString
property.- Specified by:
getString
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
String
value of the specified property. - See Also:
-
getList
Description copied from interface:DataObject
Returns the value of the specifiedList
property. The List returned contains the current values. Updates through the List interface operate on the current values of the DataObject. Each access returns the same List object.- Specified by:
getList
in interfaceDataObject
- Parameters:
property
- the property to get.- Returns:
- the
List
value of the specified property. - See Also:
-
setBoolean
Description copied from interface:DataObject
Sets the value of the specifiedboolean
property, to the specified value.- Specified by:
setBoolean
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setByte
Description copied from interface:DataObject
Sets the value of the specifiedbyte
property, to the specified value.- Specified by:
setByte
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setChar
Description copied from interface:DataObject
Sets the value of the specifiedchar
property, to the specified value.- Specified by:
setChar
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setDouble
Description copied from interface:DataObject
Sets the value of the specifieddouble
property, to the specified value.- Specified by:
setDouble
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setFloat
Description copied from interface:DataObject
Sets the value of the specifiedfloat
property, to the specified value.- Specified by:
setFloat
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setInt
Description copied from interface:DataObject
Sets the value of the specifiedint
property, to the specified value.- Specified by:
setInt
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setLong
Description copied from interface:DataObject
Sets the value of the specifiedlong
property, to the specified value.- Specified by:
setLong
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setShort
Description copied from interface:DataObject
Sets the value of the specifiedshort
property, to the specified value.- Specified by:
setShort
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setBytes
Description copied from interface:DataObject
Sets the value of the specifiedbyte[]
property, to the specified value.- Specified by:
setBytes
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setBigDecimal
Description copied from interface:DataObject
Sets the value of the specifiedBigDecimal
property, to the specified value.- Specified by:
setBigDecimal
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setBigInteger
Description copied from interface:DataObject
Sets the value of the specifiedBigInteger
property, to the specified value.- Specified by:
setBigInteger
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setDataObject
Description copied from interface:DataObject
Sets the value of the specifiedDataObject
property, to the specified value.- Specified by:
setDataObject
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setDate
Description copied from interface:DataObject
Sets the value of the specifiedDate
property, to the specified value.- Specified by:
setDate
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setString
Description copied from interface:DataObject
Sets the value of the specifiedString
property, to the specified value.- Specified by:
setString
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
setList
Description copied from interface:DataObject
Sets the value of the specifiedList
property, to the specified value.The new value must be a
List
and each object in that list must bean instance of
the property'stype
; the existing contents are cleared and the contents of the new value are added.- Specified by:
setList
in interfaceDataObject
- Parameters:
property
- the property to set.value
- the new value for the property.- See Also:
-
createDataObject
Description copied from interface:DataObject
Returns a newdata object
contained by this object using the specified property, which must be acontainment property
. The type of the created object is thedeclared type
of the specified property.- Specified by:
createDataObject
in interfaceDataObject
- Parameters:
propertyName
- the name of the specified containment property.- Returns:
- the created data object.
- See Also:
-
createDataObject
Description copied from interface:DataObject
Returns a newdata object
contained by this object using the specified property, which must be acontainment property
. The type of the created object is thedeclared type
of the specified property.- Specified by:
createDataObject
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the specified containment property.- Returns:
- the created data object.
- See Also:
-
createDataObject
Description copied from interface:DataObject
Returns a newdata object
contained by this object using the specified property, which must be acontainment property
. The type of the created object is thedeclared type
of the specified property.- Specified by:
createDataObject
in interfaceDataObject
- Parameters:
aProperty
- the specified containment property.- Returns:
- the created data object.
- See Also:
-
createDataObject
Description copied from interface:DataObject
Returns a newdata object
contained by this object using the specified property, which must be acontainment property
. The type of the created object is specified by the packageURI and typeName arguments. The specified type must be a compatible target for the property identified by propertyName.- Specified by:
createDataObject
in interfaceDataObject
- Parameters:
propertyName
- the name of the specified containment property.namespaceURI
- the namespace URI of the package containing the type of object to be created.typeName
- the name of a type in the specified package.- Returns:
- the created data object.
- See Also:
-
createDataObject
Description copied from interface:DataObject
Returns a newdata object
contained by this object using the specified property, which must be acontainment property
. The type of the created object is specified by the packageURI and typeName arguments. The specified type must be a compatible target for the property identified by propertyIndex.- Specified by:
createDataObject
in interfaceDataObject
- Parameters:
propertyIndex
- the index of the specified containment property.namespaceURI
- the namespace URI of the package containing the type of object to be created.typeName
- the name of a type in the specified package.- Returns:
- the created data object.
- See Also:
-
createDataObject
Description copied from interface:DataObject
Returns a newdata object
contained by this object using the specified property, which must be ofcontainment type
. The type of the created object is specified by the type argument, which must be a compatible target for the speicifed property.- Specified by:
createDataObject
in interfaceDataObject
- Parameters:
property
- a containment property of this object.aType
- the type of object to be created.- Returns:
- the created data object.
- See Also:
-
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()Description copied from interface:DataObject
Removes this DataObject from its container, if any. Same as getContainer().getList(getContainmentProperty()).remove(this) or getContainer().unset(getContainmentProperty()) depending on getContainmentProperty().isMany() respectively.- Specified by:
detach
in interfaceDataObject
-
delete
public void delete()Description copied from interface:DataObject
Remove this object from its container and then unset all its non-readOnly
Properties. If this object is contained by areadOnly
containment property
, its non-readOnly
Properties will be unset but the object will not be removed from its container. All DataObjects recursively contained bycontainment Properties
will also be deleted.- Specified by:
delete
in interfaceDataObject
-
getContainer
Description copied from interface:DataObject
Returns the containingdata object
ornull
if there is no container.- Specified by:
getContainer
in interfaceDataObject
- Returns:
- the containing data object or
null
.
-
getContainmentProperty
Description copied from interface:DataObject
Return the Property of thedata object
containing this data object ornull
if there is no container.- Specified by:
getContainmentProperty
in interfaceDataObject
- Returns:
- the property containing this data object.
-
getDataGraph
Description copied from interface:DataObject
Returns thedata graph
for this object ornull
if there isn't one.- Specified by:
getDataGraph
in interfaceDataObject
- Returns:
- the containing data graph or
null
.
-
setDataGraph
-
getType
Description copied from interface:DataObject
Returns the data object's type.The type defines the Properties available for reflective access.
- Specified by:
getType
in interfaceDataObject
- Returns:
- the type.
-
getInstanceProperties
Description copied from interface:DataObject
Returns a read-only List of the Properties currently used in this DataObject. This list will contain all of the Properties in getType().getProperties() and any Properties where isSet(property) is true. For example, Properties resulting from the use of open or mixed XML content are present if allowed by the Type. the List does not contain duplicates. The order of the Properties in the List begins with getType().getProperties() and the order of the remaining Properties is determined by the implementation. The same list will be returned unless the DataObject is updated so that the contents of the List change.- Specified by:
getInstanceProperties
in interfaceDataObject
- Returns:
- the List of Properties currently used in this DataObject.
-
getProperty
- Specified by:
getProperty
in interfaceDataObject
-
getInstanceProperty
Description copied from interface:DataObject
Returns the named Property from the current instance properties, or null if not found. The instance properties are getInstanceProperties().- Specified by:
getInstanceProperty
in interfaceDataObject
- Parameters:
propertyName
- the name of the Property- Returns:
- the named Property from the DataObject's current instance properties, or null.
-
getInstanceProperty
INTERNAL:- Parameters:
propertyIndex
-- Returns:
- Throws:
SDOException
IllegalArgumentException
-
getRootObject
Description copied from interface:DataObject
Returns the rootdata object
.- Specified by:
getRootObject
in interfaceDataObject
- Returns:
- the root data object.
-
getChangeSummary
Description copied from interface:DataObject
Returns the ChangeSummary with scope covering this dataObject, or null if there is no ChangeSummary.- Specified by:
getChangeSummary
in interfaceDataObject
- Returns:
- the ChangeSummary with scope covering this dataObject, or null.
-
_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
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, 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
INTERNAL:- Parameters:
aType
-
-
_setCurrentValueStore
INTERNAL: Pluggable Interface for substituting the default Map with a custom Map Class- Parameters:
aValueStore
-
-
_getCurrentValueStore
INTERNAL: Map interface into the currentValueStore of this DataObject.
Note: Implementers of theValueStore
interface require this accessor.- Returns:
-
_setContainer
INTERNAL: Sets the DataObject which contains this DataObject.- Parameters:
aContainer
- the DataObject which is the container of this DataObject.
-
_getOpenContentPropertiesAttributesMap
-
_setOpenContentPropertiesAttributesMap
-
_setOpenContentPropertiesWithXMLRoots
INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call- Parameters:
openContentPropertiesWithXMLRoots
-
-
_getOpenContentPropertiesWithXMLRoots
INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call- Returns:
-
_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.
-
convertObjectToValue
public Object convertObjectToValue(Property property, Class<?> cls) throws ClassCastException, IllegalArgumentException INTERNAL:- Parameters:
property
-cls
-- Returns:
- Throws:
ClassCastException
IllegalArgumentException
-
convertObjectToValue
public Object convertObjectToValue(Property property, int position, Class<?> cls) throws ClassCastException, IllegalArgumentException INTERNAL:- Parameters:
property
-position
-cls
-- Returns:
- Throws:
ClassCastException
IllegalArgumentException
-
_setContainmentPropertyName
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
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
INTERNAL:- Parameters:
value
-- Returns:
-
updateContainment
INTERNAL: Update containment with flagged update sequence state- Parameters:
property
-values
-updateSequence
-
-
updateContainment
INTERNAL: Update containment on the specified collection of values and default to true = update the sequence- Parameters:
property
-values
-
-
updateContainment
INTERNAL: Update containment on the dataObject with specified update sequence state- Parameters:
property
-aDataObject
-updateSequence
-
-
updateContainment
INTERNAL: update containment and the update the sequence value by default.- Parameters:
property
-value
-
-
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:
-
_getPath
INTERNAL: Return an SDO Path string from root of the caller to itself- Returns:
- String
-
getPropertyInternal
INTERNAL: Get the value of the property (open-content or declared)..- Parameters:
property
-- Returns:
-
setPropertyInternal
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
INTERNAL: Add the open content property into all 3 data structures. Remove the property from the unset map.- Parameters:
property
-
-
removeOpenContentProperty
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
INTERNAL: Return whether the property (open-content or declared) is set?- Parameters:
property
-- Returns:
- true if set, false otherwise
-
_getSdoRef
INTERNAL: Return the sdoref attribute value during unmarshaling- Returns:
-
_setOpenContentPropertiesAttributes
-
_getOpenContentPropertiesAttributes
-
getSettings
- Specified by:
getSettings
in interfaceSequencedObject
-
_setSdoRef
-