- java.lang.Object
-
- org.eclipse.persistence.sdo.SDODataObject
-
- All Implemented Interfaces:
DataObject,Serializable,org.eclipse.persistence.oxm.sequenced.SequencedObject
- Direct Known Subclasses:
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
public class SDODataObject extends Object implements DataObject, org.eclipse.persistence.oxm.sequenced.SequencedObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SDODataObject()INTERNAL: Private constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String_getContainmentPropertyName()INTERNAL: Return the name of the Property of the DataObject containing this data object or null if there is no container.ValueStore_getCurrentValueStore()INTERNAL: Map interface into the currentValueStore of this DataObject.
Note: Implementers of theValueStoreinterface require this accessor.List_getOpenContentProperties()INTERNAL: Returns a list of the Properties currently used in this DataObject which are not included in getType().getPropertiesList_getOpenContentPropertiesAttributes()Map_getOpenContentPropertiesAttributesMap()List_getOpenContentPropertiesWithXMLRoots()INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName callString_getPath()INTERNAL: Return an SDO Path string from root of the caller to itselfString_getSdoRef()INTERNAL: 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_setType(Type aType)INTERNAL:voidaddOpenContentProperty(Property property)INTERNAL: Add the open content property into all 3 data structures.ObjectconvertObjectToValue(Property property, int position, Class<?> cls)INTERNAL:ObjectconvertObjectToValue(Property property, Class<?> cls)INTERNAL:SDODataObjectcreateDataObject(int propertyIndex)Returns a newdata objectcontained by this object using the specified property, which must be acontainment property.SDODataObjectcreateDataObject(int propertyIndex, String namespaceURI, String typeName)Returns a newdata objectcontained by this object using the specified property, which must be acontainment property.SDODataObjectcreateDataObject(Property aProperty)Returns a newdata objectcontained by this object using the specified property, which must be acontainment property.SDODataObjectcreateDataObject(Property property, Type aType)Returns a newdata objectcontained by this object using the specified property, which must be ofcontainment type.DataObjectcreateDataObject(String propertyName)Returns a newdata objectcontained by this object using the specified property, which must be acontainment property.SDODataObjectcreateDataObject(String propertyName, String namespaceURI, String typeName)Returns a newdata objectcontained by this object using the specified property, which must be acontainment property.PropertydefineOpenContentProperty(String name, Object value)INTERNAL: Create a dynamic open content property if no property exists for (name).PropertydefineOpenContentProperty(String name, Object value, Type sdotype)voiddelete()Remove this object from its container and then unset all its non-readOnlyProperties.voiddetach()Removes this DataObject from its container, if any.voiddetachOrDelete(boolean fromDelete)INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object.Objectget(int propertyIndex)Returns the value of the property at the specified index inproperty listof this object'stype.Objectget(Property property)Returns the value of the given property of this object.Objectget(String path)Returns the value of a property of either this object or an object reachable from it, as identified by the specified path.BigDecimalgetBigDecimal(int propertyIndex)Returns the value of aBigDecimalproperty identified by the specified property index.BigDecimalgetBigDecimal(Property property)Returns the value of the specifiedBigDecimalproperty.BigDecimalgetBigDecimal(String path)Returns the value of aBigDecimalproperty identified by the specified path.BigIntegergetBigInteger(int propertyIndex)Returns the value of aBigIntegerproperty identified by the specified property index.BigIntegergetBigInteger(Property property)Returns the value of the specifiedBigIntegerproperty.BigIntegergetBigInteger(String path)Returns the value of aBigIntegerproperty identified by the specified path.booleangetBoolean(int propertyIndex)Returns the value of abooleanproperty identified by the specified property index.booleangetBoolean(Property property)Returns the value of the specifiedbooleanproperty.booleangetBoolean(String path)Returns the value of abooleanproperty identified by the specified path.bytegetByte(int propertyIndex)Returns the value of abyteproperty identified by the specified property index.bytegetByte(Property property)Returns the value of the specifiedbyteproperty.bytegetByte(String path)Returns the value of abyteproperty identified by the specified path.byte[]getBytes(int propertyIndex)Returns the value of abyte[]property identified by the specified property index.byte[]getBytes(Property property)Returns the value of the specifiedbyte[]property.byte[]getBytes(String path)Returns the value of abyte[]property identified by the specified path.SDOChangeSummarygetChangeSummary()Returns the ChangeSummary with scope covering this dataObject, or null if there is no ChangeSummary.chargetChar(int propertyIndex)Returns the value of acharproperty identified by the specified property index.chargetChar(Property property)Returns the value of the specifiedcharproperty.chargetChar(String path)Returns the value of acharproperty identified by the specified path.SDODataObjectgetContainer()Returns the containingdata objectornullif there is no container.SDOPropertygetContainmentProperty()Return the Property of thedata objectcontaining this data object ornullif there is no container.DataGraphgetDataGraph()Returns thedata graphfor this object ornullif there isn't one.SDODataObjectgetDataObject(int propertyIndex)Returns the value of aDataObjectproperty identified by the specified property index.SDODataObjectgetDataObject(Property property)Returns the value of the specifiedDataObjectproperty.SDODataObjectgetDataObject(String path)Returns the value of aDataObjectproperty identified by the specified path.DategetDate(int propertyIndex)Returns the value of aDateproperty identified by the specified property index.DategetDate(Property property)Returns the value of the specifiedDateproperty.DategetDate(String path)Returns the value of aDateproperty identified by the specified path.doublegetDouble(int propertyIndex)Returns the value of adoubleproperty identified by the specified property index.doublegetDouble(Property property)Returns the value of the specifieddoubleproperty.doublegetDouble(String path)Returns the value of adoubleproperty identified by the specified path.floatgetFloat(int propertyIndex)Returns the value of afloatproperty identified by the specified property index.floatgetFloat(Property property)Returns the value of the specifiedfloatproperty.floatgetFloat(String path)Returns the value of afloatproperty identified by the specified path.ListgetInstanceProperties()Returns a read-only List of the Properties currently used in this DataObject.SDOPropertygetInstanceProperty(int propertyIndex)INTERNAL:SDOPropertygetInstanceProperty(String propertyName)Returns the named Property from the current instance properties, or null if not found.intgetInt(int propertyIndex)Returns the value of aintproperty identified by the specified property index.intgetInt(Property property)Returns the value of the specifiedintproperty.intgetInt(String path)Returns the value of aintproperty identified by the specified path.ListgetList(int propertyIndex)Returns the value of aListproperty identified by the specified property index.ListgetList(Property property)Returns the value of the specifiedListproperty.ListgetList(String path)Returns the value of aListproperty identified by the specified path.longgetLong(int propertyIndex)Returns the value of alongproperty identified by the specified property index.longgetLong(Property property)Returns the value of the specifiedlongproperty.longgetLong(String path)Returns the value of alongproperty identified by the specified path.SDOPropertygetProperty(String propertyName)ObjectgetPropertyInternal(Property property)INTERNAL: Get the value of the property (open-content or declared)..SDODataObjectgetRootObject()Returns the rootdata object.SDOSequencegetSequence()Returns theSequencefor this DataObject.SequencegetSequence(int propertyIndex)Deprecated.in SDO 2.1.0.SequencegetSequence(Property property)Deprecated.in SDO 2.1.0.SequencegetSequence(String path)Deprecated.in SDO 2.1.0.List<org.eclipse.persistence.oxm.sequenced.Setting>getSettings()shortgetShort(int propertyIndex)Returns the value of ashortproperty identified by the specified property index.shortgetShort(Property property)Returns the value of the specifiedshortproperty.shortgetShort(String path)Returns the value of ashortproperty identified by the specified path.StringgetString(int propertyIndex)Returns the value of aStringproperty identified by the specified property index.StringgetString(Property property)Returns the value of the specifiedStringproperty.StringgetString(String path)Returns the value of aStringproperty identified by the specified path.SDOTypegetType()Returns the data object's type.booleanisSet(int propertyIndex)Returns whether the the property at the specified index inproperty listof this object'stype, is considered to be set.booleanisSet(Property property)Returns whether the property of the object is considered to be set.booleanisSet(String path)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.booleanisSetInternal(Property property)INTERNAL: Return whether the property (open-content or declared) is set?booleanparentContains(Object value)INTERNAL:voidremoveOpenContentProperty(Property property)INTERNAL: Remove the open content property (property) from all 3 data structures.voidresetChanges()INTERNAL: Initialize all old settings related to ChangeSummary and recursively go down the tree to initialize all DataObjects rooted at this DataObject.voidset(int propertyIndex, Object value)Sets the property at the specified index inproperty listof this object'stype, to the specified value.voidset(Property property, Object value)Sets the value of the given property of the object to the new value.voidset(String path, Object value)Sets a property of either this object or an object reachable from it, as identified by the specified path, to the specified value.voidset(SDOProperty property, Object value, boolean updateSequence)INTERNAL: Sets the value of the given property of the object to the new value.voidsetBigDecimal(int propertyIndex, BigDecimal value)Sets the value of aBigDecimalproperty identified by the specified property index, to the specified value.voidsetBigDecimal(Property property, BigDecimal value)Sets the value of the specifiedBigDecimalproperty, to the specified value.voidsetBigDecimal(String path, BigDecimal value)Sets the value of aBigDecimalproperty identified by the specified path, to the specified value.voidsetBigInteger(int propertyIndex, BigInteger value)Sets the value of aBigIntegerproperty identified by the specified property index, to the specified value.voidsetBigInteger(Property property, BigInteger value)Sets the value of the specifiedBigIntegerproperty, to the specified value.voidsetBigInteger(String path, BigInteger value)Sets the value of aBigIntegerproperty identified by the specified path, to the specified value.voidsetBoolean(int propertyIndex, boolean value)Sets the value of abooleanproperty identified by the specified property index, to the specified value.voidsetBoolean(Property property, boolean value)Sets the value of the specifiedbooleanproperty, to the specified value.voidsetBoolean(String path, boolean value)Sets the value of abooleanproperty identified by the specified path, to the specified value.voidsetByte(int propertyIndex, byte value)Sets the value of abyteproperty identified by the specified property index, to the specified value.voidsetByte(Property property, byte value)Sets the value of the specifiedbyteproperty, to the specified value.voidsetByte(String path, byte value)Sets the value of abyteproperty identified by the specified path, to the specified value.voidsetBytes(int propertyIndex, byte[] value)Sets the value of abyte[]property identified by the specified property index, to the specified value.voidsetBytes(Property property, byte[] value)Sets the value of the specifiedbyte[]property, to the specified value.voidsetBytes(String path, byte[] value)Sets the value of abyte[]property identified by the specified path, to the specified value.voidsetChar(int propertyIndex, char value)Sets the value of acharproperty identified by the specified property index, to the specified value.voidsetChar(Property property, char value)Sets the value of the specifiedcharproperty, to the specified value.voidsetChar(String path, char value)Sets the value of acharproperty identified by the specified path, to the specified value.voidsetDataGraph(DataGraph dataGraph)voidsetDataObject(int propertyIndex, DataObject value)Sets the value of aDataObjectproperty identified by the specified property index, to the specified value.voidsetDataObject(Property property, DataObject value)Sets the value of the specifiedDataObjectproperty, to the specified value.voidsetDataObject(String path, DataObject value)Sets the value of aDataObjectproperty identified by the specified path, to the specified value.voidsetDate(int propertyIndex, Date value)Sets the value of aDateproperty identified by the specified property index, to the specified value.voidsetDate(Property property, Date value)Sets the value of the specifiedDateproperty, to the specified value.voidsetDate(String path, Date value)Sets the value of aDateproperty identified by the specified path, to the specified value.voidsetDouble(int propertyIndex, double value)Sets the value of adoubleproperty identified by the specified property index, to the specified value.voidsetDouble(Property property, double value)Sets the value of the specifieddoubleproperty, to the specified value.voidsetDouble(String path, double value)Sets the value of adoubleproperty identified by the specified path, to the specified value.voidsetFloat(int propertyIndex, float value)Sets the value of afloatproperty identified by the specified property index, to the specified value.voidsetFloat(Property property, float value)Sets the value of the specifiedfloatproperty, to the specified value.voidsetFloat(String path, float value)Sets the value of afloatproperty identified by the specified path, to the specified value.voidsetInt(int propertyIndex, int value)Sets the value of aintproperty identified by the specified property index, to the specified value.voidsetInt(Property property, int value)Sets the value of the specifiedintproperty, to the specified value.voidsetInt(String path, int value)Sets the value of aintproperty identified by the specified path, to the specified value.voidsetInternal(SDOProperty property, Object value, boolean updateSequence)voidsetList(int propertyIndex, List value)Sets the value of aListproperty identified by the specified property index, to the specified value.voidsetList(Property property, List value)Sets the value of the specifiedListproperty, to the specified value.voidsetList(String path, List value)Sets the value of aListproperty identified by the specified path, to the specified value.voidsetLong(int propertyIndex, long value)Sets the value of alongproperty identified by the specified property index, to the specified value.voidsetLong(Property property, long value)Sets the value of the specifiedlongproperty, to the specified value.voidsetLong(String path, long value)Sets the value of alongproperty identified by the specified path, to the specified value.voidsetPropertyInternal(SDOProperty property, Object value, boolean updateSequence)INTERNAL: Update the ValueStore with the new property value and update any sequence if it exists.voidsetShort(int propertyIndex, short value)Sets the value of ashortproperty identified by the specified property index, to the specified value.voidsetShort(Property property, short value)Sets the value of the specifiedshortproperty, to the specified value.voidsetShort(String path, short value)Sets the value of ashortproperty identified by the specified path, to the specified value.voidsetString(int propertyIndex, String value)Sets the value of aStringproperty identified by the specified property index, to the specified value.voidsetString(Property property, String value)Sets the value of the specifiedStringproperty, to the specified value.voidsetString(String path, String value)Sets the value of aStringproperty identified by the specified path, to the specified value.voidundoChanges(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.voidunset(int propertyIndex)Unsets the property at the specified index inproperty listof this object'stype.voidunset(Property property)Unsets the property of the object.voidunset(Property property, boolean fromDelete, boolean updateSequence)INTERNAL: Unset the specified property on this DataObject.voidunset(String path)Unsets a property of either this object or an object reachable from it, as identified by the specified path.voidupdateContainment(Property property, Collection values)INTERNAL: Update containment on the specified collection of values and default to true = update the sequencevoidupdateContainment(Property property, Collection values, boolean updateSequence)INTERNAL: Update containment with flagged update sequence statevoidupdateContainment(Property property, SDODataObject value)INTERNAL: update containment and the update the sequence value by default.voidupdateContainment(Property property, SDODataObject aDataObject, boolean updateSequence)INTERNAL: Update containment on the dataObject with specified update sequence stateObjectwriteReplace()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.
-
-
-
Constructor Detail
-
SDODataObject
public SDODataObject()
INTERNAL: Private constructor. UseSDODataFactoryDelegate.create(Type)instead
-
-
Method Detail
-
_setHelperContext
public void _setHelperContext(HelperContext aContext)
INTERNAL: Set the HelperContext that will be associated with this DataObject.- Parameters:
aContext-
-
get
public Object get(String path)
Description copied from interface:DataObjectReturns the value of a property of either this object or an object reachable from it, as identified by the specified path.- Specified by:
getin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the value of the specified property.
- See Also:
DataObject.get(Property)
-
set
public void set(String path, Object value) throws ClassCastException, UnsupportedOperationException, IllegalArgumentException
Description copied from interface:DataObjectSets a property of either this object or an object reachable from it, as identified by the specified path, to the specified value.- Specified by:
setin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- Throws:
ClassCastExceptionUnsupportedOperationExceptionIllegalArgumentException- See Also:
DataObject.set(Property, Object)
-
isSet
public boolean isSet(String path)
Description copied from interface:DataObjectReturns 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:
isSetin interfaceDataObject- Parameters:
path- the path to a valid object and property.- See Also:
DataObject.isSet(Property)
-
unset
public void unset(String path)
Description copied from interface:DataObjectUnsets a property of either this object or an object reachable from it, as identified by the specified path.- Specified by:
unsetin interfaceDataObject- Parameters:
path- the path to a valid object and property.- See Also:
DataObject.unset(Property)
-
getBoolean
public boolean getBoolean(String path) throws ClassCastException
Description copied from interface:DataObjectReturns the value of abooleanproperty identified by the specified path.- Specified by:
getBooleanin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
booleanvalue of the specified property. - Throws:
ClassCastException- See Also:
DataObject.get(String)
-
getByte
public byte getByte(String path)
Description copied from interface:DataObjectReturns the value of abyteproperty identified by the specified path.- Specified by:
getBytein interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
bytevalue of the specified property. - See Also:
DataObject.get(String)
-
getChar
public char getChar(String path)
Description copied from interface:DataObjectReturns the value of acharproperty identified by the specified path.- Specified by:
getCharin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
charvalue of the specified property. - See Also:
DataObject.get(String)
-
getDouble
public double getDouble(String path)
Description copied from interface:DataObjectReturns the value of adoubleproperty identified by the specified path.- Specified by:
getDoublein interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
doublevalue of the specified property. - See Also:
DataObject.get(String)
-
getFloat
public float getFloat(String path)
Description copied from interface:DataObjectReturns the value of afloatproperty identified by the specified path.- Specified by:
getFloatin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
floatvalue of the specified property. - See Also:
DataObject.get(String)
-
getInt
public int getInt(String path)
Description copied from interface:DataObjectReturns the value of aintproperty identified by the specified path.- Specified by:
getIntin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
intvalue of the specified property. - See Also:
DataObject.get(String)
-
getLong
public long getLong(String path)
Description copied from interface:DataObjectReturns the value of alongproperty identified by the specified path.- Specified by:
getLongin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
longvalue of the specified property. - See Also:
DataObject.get(String)
-
getShort
public short getShort(String path)
Description copied from interface:DataObjectReturns the value of ashortproperty identified by the specified path.- Specified by:
getShortin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
shortvalue of the specified property. - See Also:
DataObject.get(String)
-
getBytes
public byte[] getBytes(String path)
Description copied from interface:DataObjectReturns the value of abyte[]property identified by the specified path.- Specified by:
getBytesin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
byte[]value of the specified property. - See Also:
DataObject.get(String)
-
getBigDecimal
public BigDecimal getBigDecimal(String path)
Description copied from interface:DataObjectReturns the value of aBigDecimalproperty identified by the specified path.- Specified by:
getBigDecimalin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
BigDecimalvalue of the specified property. - See Also:
DataObject.get(String)
-
getBigInteger
public BigInteger getBigInteger(String path)
Description copied from interface:DataObjectReturns the value of aBigIntegerproperty identified by the specified path.- Specified by:
getBigIntegerin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
BigIntegervalue of the specified property. - See Also:
DataObject.get(String)
-
getDataObject
public SDODataObject getDataObject(String path) throws ClassCastException
Description copied from interface:DataObjectReturns the value of aDataObjectproperty identified by the specified path.- Specified by:
getDataObjectin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
DataObjectvalue of the specified property. - Throws:
ClassCastException- See Also:
DataObject.get(String)
-
getDate
public Date getDate(String path)
Description copied from interface:DataObjectReturns the value of aDateproperty identified by the specified path.- Specified by:
getDatein interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
Datevalue of the specified property. - See Also:
DataObject.get(String)
-
getString
public String getString(String path)
Description copied from interface:DataObjectReturns the value of aStringproperty identified by the specified path.- Specified by:
getStringin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
Stringvalue of the specified property. - See Also:
DataObject.get(String)
-
getList
public List getList(String path)
Description copied from interface:DataObjectReturns the value of aListproperty identified by the specified path.- Specified by:
getListin interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
Listvalue of the specified property. - See Also:
DataObject.get(String)
-
setBoolean
public void setBoolean(String path, boolean value)
Description copied from interface:DataObjectSets the value of abooleanproperty identified by the specified path, to the specified value.- Specified by:
setBooleanin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setByte
public void setByte(String path, byte value)
Description copied from interface:DataObjectSets the value of abyteproperty identified by the specified path, to the specified value.- Specified by:
setBytein interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setChar
public void setChar(String path, char value)
Description copied from interface:DataObjectSets the value of acharproperty identified by the specified path, to the specified value.- Specified by:
setCharin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setDouble
public void setDouble(String path, double value)
Description copied from interface:DataObjectSets the value of adoubleproperty identified by the specified path, to the specified value.- Specified by:
setDoublein interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setFloat
public void setFloat(String path, float value)
Description copied from interface:DataObjectSets the value of afloatproperty identified by the specified path, to the specified value.- Specified by:
setFloatin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setInt
public void setInt(String path, int value)
Description copied from interface:DataObjectSets the value of aintproperty identified by the specified path, to the specified value.- Specified by:
setIntin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setLong
public void setLong(String path, long value)
Description copied from interface:DataObjectSets the value of alongproperty identified by the specified path, to the specified value.- Specified by:
setLongin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setShort
public void setShort(String path, short value)
Description copied from interface:DataObjectSets the value of ashortproperty identified by the specified path, to the specified value.- Specified by:
setShortin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setBytes
public void setBytes(String path, byte[] value)
Description copied from interface:DataObjectSets the value of abyte[]property identified by the specified path, to the specified value.- Specified by:
setBytesin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setBigDecimal
public void setBigDecimal(String path, BigDecimal value)
Description copied from interface:DataObjectSets the value of aBigDecimalproperty identified by the specified path, to the specified value.- Specified by:
setBigDecimalin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setBigInteger
public void setBigInteger(String path, BigInteger value)
Description copied from interface:DataObjectSets the value of aBigIntegerproperty identified by the specified path, to the specified value.- Specified by:
setBigIntegerin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setDataObject
public void setDataObject(String path, DataObject value)
Description copied from interface:DataObjectSets the value of aDataObjectproperty identified by the specified path, to the specified value.- Specified by:
setDataObjectin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setDate
public void setDate(String path, Date value)
Description copied from interface:DataObjectSets the value of aDateproperty identified by the specified path, to the specified value.- Specified by:
setDatein interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setString
public void setString(String path, String value)
Description copied from interface:DataObjectSets the value of aStringproperty identified by the specified path, to the specified value.- Specified by:
setStringin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object)
-
setList
public void setList(String path, List value)
Description copied from interface:DataObjectSets the value of aListproperty identified by the specified path, to the specified value.- Specified by:
setListin interfaceDataObject- Parameters:
path- the path to a valid object and property.value- the new value for the property.- See Also:
DataObject.set(String, Object),DataObject.setList(Property, List)
-
get
public Object get(int propertyIndex) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the property at the specified index inproperty listof this object'stype.- Specified by:
getin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the value of the specified property.
- Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
set
public void set(int propertyIndex, Object value)Description copied from interface:DataObjectSets the property at the specified index inproperty listof this object'stype, to the specified value.- Specified by:
setin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
isSet
public boolean isSet(int propertyIndex)
Description copied from interface:DataObjectReturns whether the the property at the specified index inproperty listof this object'stype, is considered to be set.- Specified by:
isSetin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- whether the specified property is set.
- See Also:
DataObject.isSet(Property)
-
unset
public void unset(int propertyIndex)
Description copied from interface:DataObjectUnsets the property at the specified index inproperty listof this object'stype.- Specified by:
unsetin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- See Also:
DataObject.unset(Property)
-
getBoolean
public boolean getBoolean(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of abooleanproperty identified by the specified property index.- Specified by:
getBooleanin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
booleanvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getByte
public byte getByte(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of abyteproperty identified by the specified property index.- Specified by:
getBytein interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
bytevalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getChar
public char getChar(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of acharproperty identified by the specified property index.- Specified by:
getCharin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
charvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getDouble
public double getDouble(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of adoubleproperty identified by the specified property index.- Specified by:
getDoublein interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
doublevalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getFloat
public float getFloat(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of afloatproperty identified by the specified property index.- Specified by:
getFloatin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
floatvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getInt
public int getInt(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of aintproperty identified by the specified property index.- Specified by:
getIntin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
intvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getLong
public long getLong(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of alongproperty identified by the specified property index.- Specified by:
getLongin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
longvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getShort
public short getShort(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of ashortproperty identified by the specified property index.- Specified by:
getShortin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
shortvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getBytes
public byte[] getBytes(int propertyIndex) throws IllegalArgumentException, ClassCastExceptionDescription copied from interface:DataObjectReturns the value of abyte[]property identified by the specified property index.- Specified by:
getBytesin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
byte[]value of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getBigDecimal
public BigDecimal getBigDecimal(int propertyIndex) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of aBigDecimalproperty identified by the specified property index.- Specified by:
getBigDecimalin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
BigDecimalvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getBigInteger
public BigInteger getBigInteger(int propertyIndex) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of aBigIntegerproperty identified by the specified property index.- Specified by:
getBigIntegerin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
BigIntegervalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getDataObject
public SDODataObject getDataObject(int propertyIndex)
Description copied from interface:DataObjectReturns the value of aDataObjectproperty identified by the specified property index.- Specified by:
getDataObjectin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
DataObjectvalue of the specified property. - See Also:
DataObject.get(int)
-
getDate
public Date getDate(int propertyIndex) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of aDateproperty identified by the specified property index.- Specified by:
getDatein interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
Datevalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getString
public String getString(int propertyIndex) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of aStringproperty identified by the specified property index.- Specified by:
getStringin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
Stringvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(int)
-
getList
public List getList(int propertyIndex)
Description copied from interface:DataObjectReturns the value of aListproperty identified by the specified property index.- Specified by:
getListin interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
Listvalue of the specified property. - See Also:
DataObject.get(int)
-
getSequence
@Deprecated public Sequence getSequence(String path)
Deprecated.in SDO 2.1.0.- Specified by:
getSequencein interfaceDataObject- Parameters:
path- the path to a valid object and property.- Returns:
- the
Sequencevalue of the specified property. - See Also:
Returns the value of a Sequence property identified by the specified path. An implementation may throw an UnsupportedOperationException.,DataObject.get(String)
-
getSequence
@Deprecated public Sequence getSequence(int propertyIndex)
Deprecated.in SDO 2.1.0.- Specified by:
getSequencein interfaceDataObject- Parameters:
propertyIndex- the index of the property.- Returns:
- the
Sequencevalue of the specified property. - See Also:
Returns the value of a Sequence property identified by the specified property index. An implementation may throw an UnsupportedOperationException.,DataObject.get(int)
-
getSequence
@Deprecated public Sequence getSequence(Property property)
Deprecated.in SDO 2.1.0.- Specified by:
getSequencein interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
Sequencevalue of the specified property. - See Also:
Returns the value of the specified Sequence property. An implementation may throw an UnsupportedOperationException.,DataObject.get(Property)
-
getSequence
public SDOSequence getSequence()
Description copied from interface:DataObjectReturns theSequencefor 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:
getSequencein interfaceDataObject- Returns:
- the
Sequenceor null.
-
setBoolean
public void setBoolean(int propertyIndex, boolean value)Description copied from interface:DataObjectSets the value of abooleanproperty identified by the specified property index, to the specified value.- Specified by:
setBooleanin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setByte
public void setByte(int propertyIndex, byte value)Description copied from interface:DataObjectSets the value of abyteproperty identified by the specified property index, to the specified value.- Specified by:
setBytein interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setChar
public void setChar(int propertyIndex, char value)Description copied from interface:DataObjectSets the value of acharproperty identified by the specified property index, to the specified value.- Specified by:
setCharin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setDouble
public void setDouble(int propertyIndex, double value)Description copied from interface:DataObjectSets the value of adoubleproperty identified by the specified property index, to the specified value.- Specified by:
setDoublein interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setFloat
public void setFloat(int propertyIndex, float value)Description copied from interface:DataObjectSets the value of afloatproperty identified by the specified property index, to the specified value.- Specified by:
setFloatin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setInt
public void setInt(int propertyIndex, int value)Description copied from interface:DataObjectSets the value of aintproperty identified by the specified property index, to the specified value.- Specified by:
setIntin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setLong
public void setLong(int propertyIndex, long value)Description copied from interface:DataObjectSets the value of alongproperty identified by the specified property index, to the specified value.- Specified by:
setLongin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setShort
public void setShort(int propertyIndex, short value)Description copied from interface:DataObjectSets the value of ashortproperty identified by the specified property index, to the specified value.- Specified by:
setShortin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setBytes
public void setBytes(int propertyIndex, byte[] value)Description copied from interface:DataObjectSets the value of abyte[]property identified by the specified property index, to the specified value.- Specified by:
setBytesin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setBigDecimal
public void setBigDecimal(int propertyIndex, BigDecimal value)Description copied from interface:DataObjectSets the value of aBigDecimalproperty identified by the specified property index, to the specified value.- Specified by:
setBigDecimalin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setBigInteger
public void setBigInteger(int propertyIndex, BigInteger value)Description copied from interface:DataObjectSets the value of aBigIntegerproperty identified by the specified property index, to the specified value.- Specified by:
setBigIntegerin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setDataObject
public void setDataObject(int propertyIndex, DataObject value)Description copied from interface:DataObjectSets the value of aDataObjectproperty identified by the specified property index, to the specified value.- Specified by:
setDataObjectin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setDate
public void setDate(int propertyIndex, Date value)Description copied from interface:DataObjectSets the value of aDateproperty identified by the specified property index, to the specified value.- Specified by:
setDatein interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setString
public void setString(int propertyIndex, String value)Description copied from interface:DataObjectSets the value of aStringproperty identified by the specified property index, to the specified value.- Specified by:
setStringin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object)
-
setList
public void setList(int propertyIndex, List value)Description copied from interface:DataObjectSets the value of aListproperty identified by the specified property index, to the specified value.- Specified by:
setListin interfaceDataObject- Parameters:
propertyIndex- the index of the property.value- the new value for the property.- See Also:
DataObject.set(int, Object),DataObject.setList(Property, List)
-
get
public Object get(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the given property of this object.If the property is
many-valued, the result will be aListand each object in the List will bean instance ofthe property'stype. Otherwise the result will directly be an instance of the property's type.- Specified by:
getin interfaceDataObject- Parameters:
property- the property of the value to fetch.- Returns:
- the value of the given property of the object.
- Throws:
IllegalArgumentException- See Also:
DataObject.set(Property, Object),DataObject.unset(Property),DataObject.isSet(Property)
-
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:
UnsupportedOperationExceptionIllegalArgumentException
-
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:DataObjectSets the value of the given property of the object to the new value.If the property is
many-valued, the new value must be aListand each object in that list must bean instance ofthe 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:
setin interfaceDataObject- Parameters:
property- the property of the value to set.value- the new value for the property.- Throws:
UnsupportedOperationExceptionIllegalArgumentException- See Also:
DataObject.unset(Property),DataObject.isSet(Property),DataObject.get(Property)
-
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:
UnsupportedOperationExceptionIllegalArgumentException
-
isSet
public boolean isSet(Property property)
Description copied from interface:DataObjectReturns 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:
isSetin interfaceDataObject- Parameters:
property- the property in question.- Returns:
- whether the property of the object is set.
- See Also:
DataObject.set(Property, Object),DataObject.unset(Property),DataObject.get(Property)
-
unset
public void unset(Property property)
Description copied from interface:DataObjectUnsets the property of the object.If the property is
many-valued, the value must be anListand 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:
unsetin interfaceDataObject- Parameters:
property- the property in question.- See Also:
DataObject.isSet(Property),DataObject.set(Property, Object),DataObject.get(Property)
-
unset
public void unset(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-
-
getBoolean
public boolean getBoolean(Property property) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of the specifiedbooleanproperty.- Specified by:
getBooleanin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
booleanvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(Property)
-
getByte
public byte getByte(Property property) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of the specifiedbyteproperty.- Specified by:
getBytein interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
bytevalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(Property)
-
getChar
public char getChar(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedcharproperty.- Specified by:
getCharin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
charvalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getDouble
public double getDouble(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifieddoubleproperty.- Specified by:
getDoublein interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
doublevalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getFloat
public float getFloat(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedfloatproperty.- Specified by:
getFloatin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
floatvalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getInt
public int getInt(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedintproperty.- Specified by:
getIntin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
intvalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getLong
public long getLong(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedlongproperty.- Specified by:
getLongin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
longvalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getShort
public short getShort(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedshortproperty.- Specified by:
getShortin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
shortvalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getBytes
public byte[] getBytes(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedbyte[]property.- Specified by:
getBytesin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
byte[]value of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getBigDecimal
public BigDecimal getBigDecimal(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedBigDecimalproperty.- Specified by:
getBigDecimalin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
BigDecimalvalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getBigInteger
public BigInteger getBigInteger(Property property) throws IllegalArgumentException
Description copied from interface:DataObjectReturns the value of the specifiedBigIntegerproperty.- Specified by:
getBigIntegerin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
BigIntegervalue of the specified property. - Throws:
IllegalArgumentException- See Also:
DataObject.get(Property)
-
getDataObject
public SDODataObject getDataObject(Property property) throws IllegalArgumentException, ClassCastException
Description copied from interface:DataObjectReturns the value of the specifiedDataObjectproperty.- Specified by:
getDataObjectin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
DataObjectvalue of the specified property. - Throws:
IllegalArgumentExceptionClassCastException- See Also:
DataObject.get(Property)
-
getDate
public Date getDate(Property property)
Description copied from interface:DataObjectReturns the value of the specifiedDateproperty.- Specified by:
getDatein interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
Datevalue of the specified property. - See Also:
DataObject.get(Property)
-
getString
public String getString(Property property)
Description copied from interface:DataObjectReturns the value of the specifiedStringproperty.- Specified by:
getStringin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
Stringvalue of the specified property. - See Also:
DataObject.get(Property)
-
getList
public List getList(Property property)
Description copied from interface:DataObjectReturns the value of the specifiedListproperty. 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:
getListin interfaceDataObject- Parameters:
property- the property to get.- Returns:
- the
Listvalue of the specified property. - See Also:
DataObject.get(Property)
-
setBoolean
public void setBoolean(Property property, boolean value)
Description copied from interface:DataObjectSets the value of the specifiedbooleanproperty, to the specified value.- Specified by:
setBooleanin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setByte
public void setByte(Property property, byte value)
Description copied from interface:DataObjectSets the value of the specifiedbyteproperty, to the specified value.- Specified by:
setBytein interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setChar
public void setChar(Property property, char value)
Description copied from interface:DataObjectSets the value of the specifiedcharproperty, to the specified value.- Specified by:
setCharin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setDouble
public void setDouble(Property property, double value)
Description copied from interface:DataObjectSets the value of the specifieddoubleproperty, to the specified value.- Specified by:
setDoublein interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setFloat
public void setFloat(Property property, float value)
Description copied from interface:DataObjectSets the value of the specifiedfloatproperty, to the specified value.- Specified by:
setFloatin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setInt
public void setInt(Property property, int value)
Description copied from interface:DataObjectSets the value of the specifiedintproperty, to the specified value.- Specified by:
setIntin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setLong
public void setLong(Property property, long value)
Description copied from interface:DataObjectSets the value of the specifiedlongproperty, to the specified value.- Specified by:
setLongin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setShort
public void setShort(Property property, short value)
Description copied from interface:DataObjectSets the value of the specifiedshortproperty, to the specified value.- Specified by:
setShortin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setBytes
public void setBytes(Property property, byte[] value)
Description copied from interface:DataObjectSets the value of the specifiedbyte[]property, to the specified value.- Specified by:
setBytesin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setBigDecimal
public void setBigDecimal(Property property, BigDecimal value)
Description copied from interface:DataObjectSets the value of the specifiedBigDecimalproperty, to the specified value.- Specified by:
setBigDecimalin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setBigInteger
public void setBigInteger(Property property, BigInteger value)
Description copied from interface:DataObjectSets the value of the specifiedBigIntegerproperty, to the specified value.- Specified by:
setBigIntegerin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setDataObject
public void setDataObject(Property property, DataObject value)
Description copied from interface:DataObjectSets the value of the specifiedDataObjectproperty, to the specified value.- Specified by:
setDataObjectin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setDate
public void setDate(Property property, Date value)
Description copied from interface:DataObjectSets the value of the specifiedDateproperty, to the specified value.- Specified by:
setDatein interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setString
public void setString(Property property, String value)
Description copied from interface:DataObjectSets the value of the specifiedStringproperty, to the specified value.- Specified by:
setStringin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
setList
public void setList(Property property, List value)
Description copied from interface:DataObjectSets the value of the specifiedListproperty, to the specified value.The new value must be a
Listand each object in that list must bean instance ofthe property'stype; the existing contents are cleared and the contents of the new value are added.- Specified by:
setListin interfaceDataObject- Parameters:
property- the property to set.value- the new value for the property.- See Also:
DataObject.set(Property, Object)
-
createDataObject
public DataObject createDataObject(String propertyName)
Description copied from interface:DataObjectReturns a newdata objectcontained by this object using the specified property, which must be acontainment property. The type of the created object is thedeclared typeof the specified property.- Specified by:
createDataObjectin interfaceDataObject- Parameters:
propertyName- the name of the specified containment property.- Returns:
- the created data object.
- See Also:
DataObject.createDataObject(String, String, String)
-
createDataObject
public SDODataObject createDataObject(int propertyIndex)
Description copied from interface:DataObjectReturns a newdata objectcontained by this object using the specified property, which must be acontainment property. The type of the created object is thedeclared typeof the specified property.- Specified by:
createDataObjectin interfaceDataObject- Parameters:
propertyIndex- the index of the specified containment property.- Returns:
- the created data object.
- See Also:
DataObject.createDataObject(int, String, String)
-
createDataObject
public SDODataObject createDataObject(Property aProperty)
Description copied from interface:DataObjectReturns a newdata objectcontained by this object using the specified property, which must be acontainment property. The type of the created object is thedeclared typeof the specified property.- Specified by:
createDataObjectin interfaceDataObject- Parameters:
aProperty- the specified containment property.- Returns:
- the created data object.
- See Also:
DataObject.createDataObject(Property, Type)
-
createDataObject
public SDODataObject createDataObject(String propertyName, String namespaceURI, String typeName)
Description copied from interface:DataObjectReturns a newdata objectcontained 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:
createDataObjectin 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:
DataObject.createDataObject(String),TypeHelper.getType(java.lang.String, java.lang.String)
-
createDataObject
public SDODataObject createDataObject(int propertyIndex, String namespaceURI, String typeName)
Description copied from interface:DataObjectReturns a newdata objectcontained 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:
createDataObjectin 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:
DataObject.createDataObject(int),TypeHelper.getType(java.lang.String, java.lang.String)
-
createDataObject
public SDODataObject createDataObject(Property property, Type aType)
Description copied from interface:DataObjectReturns a newdata objectcontained 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:
createDataObjectin interfaceDataObject- Parameters:
property- a containment property of this object.aType- the type of object to be created.- Returns:
- the created data object.
- See Also:
DataObject.createDataObject(int)
-
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:DataObjectRemoves 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:
detachin interfaceDataObject
-
delete
public void delete()
Description copied from interface:DataObjectRemove this object from its container and then unset all its non-readOnlyProperties. If this object is contained by areadOnlycontainment property, its non-readOnlyProperties will be unset but the object will not be removed from its container. All DataObjects recursively contained bycontainment Propertieswill also be deleted.- Specified by:
deletein interfaceDataObject
-
getContainer
public SDODataObject getContainer()
Description copied from interface:DataObjectReturns the containingdata objectornullif there is no container.- Specified by:
getContainerin interfaceDataObject- Returns:
- the containing data object or
null.
-
getContainmentProperty
public SDOProperty getContainmentProperty()
Description copied from interface:DataObjectReturn the Property of thedata objectcontaining this data object ornullif there is no container.- Specified by:
getContainmentPropertyin interfaceDataObject- Returns:
- the property containing this data object.
-
getDataGraph
public DataGraph getDataGraph()
Description copied from interface:DataObjectReturns thedata graphfor this object ornullif there isn't one.- Specified by:
getDataGraphin interfaceDataObject- Returns:
- the containing data graph or
null.
-
setDataGraph
public void setDataGraph(DataGraph dataGraph)
-
getType
public SDOType getType()
Description copied from interface:DataObjectReturns the data object's type.The type defines the Properties available for reflective access.
- Specified by:
getTypein interfaceDataObject- Returns:
- the type.
-
getInstanceProperties
public List getInstanceProperties()
Description copied from interface:DataObjectReturns 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:
getInstancePropertiesin interfaceDataObject- Returns:
- the List of Properties currently used in this DataObject.
-
getProperty
public SDOProperty getProperty(String propertyName)
- Specified by:
getPropertyin interfaceDataObject
-
getInstanceProperty
public SDOProperty getInstanceProperty(String propertyName)
Description copied from interface:DataObjectReturns the named Property from the current instance properties, or null if not found. The instance properties are getInstanceProperties().- Specified by:
getInstancePropertyin interfaceDataObject- Parameters:
propertyName- the name of the Property- Returns:
- the named Property from the DataObject's current instance properties, or null.
-
getInstanceProperty
public SDOProperty getInstanceProperty(int propertyIndex) throws IllegalArgumentException
INTERNAL:- Parameters:
propertyIndex-- Returns:
- Throws:
org.eclipse.persistence.exceptions.SDOExceptionIllegalArgumentException
-
getRootObject
public SDODataObject getRootObject()
Description copied from interface:DataObjectReturns the rootdata object.- Specified by:
getRootObjectin interfaceDataObject- Returns:
- the root data object.
-
getChangeSummary
public SDOChangeSummary getChangeSummary()
Description copied from interface:DataObjectReturns the ChangeSummary with scope covering this dataObject, or null if there is no ChangeSummary.- Specified by:
getChangeSummaryin 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
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, 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(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 theValueStoreinterface require this accessor.- Returns:
-
_setContainer
public void _setContainer(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.
-
convertObjectToValue
public Object convertObjectToValue(Property property, Class<?> cls) throws ClassCastException, IllegalArgumentException
INTERNAL:- Parameters:
property-cls-- Returns:
- Throws:
ClassCastExceptionIllegalArgumentException
-
convertObjectToValue
public Object convertObjectToValue(Property property, int position, Class<?> cls) throws ClassCastException, IllegalArgumentException
INTERNAL:- Parameters:
property-position-cls-- Returns:
- Throws:
ClassCastExceptionIllegalArgumentException
-
_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(Property property, Collection values, boolean updateSequence)
INTERNAL: Update containment with flagged update sequence state- Parameters:
property-values-updateSequence-
-
updateContainment
public void updateContainment(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(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(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(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(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(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(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()
-
getSettings
public List<org.eclipse.persistence.oxm.sequenced.Setting> getSettings()
- Specified by:
getSettingsin interfaceorg.eclipse.persistence.oxm.sequenced.SequencedObject
-
_setSdoRef
public void _setSdoRef(String newRef)
-
-