Package org.eclipse.persistence.sdo
Class SDODataObject
- java.lang.Object
-
- org.eclipse.persistence.sdo.SDODataObject
-
- All Implemented Interfaces:
commonj.sdo.DataObject,java.io.Serializable,org.eclipse.persistence.oxm.sequenced.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
public class SDODataObject extends java.lang.Object implements commonj.sdo.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 java.lang.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.java.util.List_getOpenContentProperties()INTERNAL: Returns a list of the Properties currently used in this DataObject which are not included in getType().getPropertiesjava.util.List_getOpenContentPropertiesAttributes()java.util.Map_getOpenContentPropertiesAttributesMap()java.util.List_getOpenContentPropertiesWithXMLRoots()INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName calljava.lang.String_getPath()INTERNAL: Return an SDO Path string from root of the caller to itselfjava.lang.String_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(commonj.sdo.DataObject aContainer)INTERNAL: Sets the DataObject which contains this DataObject.void_setContainmentPropertyName(java.lang.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(commonj.sdo.helper.HelperContext aContext)INTERNAL: Set the HelperContext that will be associated with this DataObject.void_setModified(boolean modified)INTERNAL: Set flag modified value.void_setOpenContentPropertiesAttributes(java.util.List openContentPropertiesAttributes)void_setOpenContentPropertiesAttributesMap(java.util.Map openAttributeProperties)void_setOpenContentPropertiesWithXMLRoots(java.util.List openContentPropertiesWithXMLRoots)INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName callvoid_setSdoRef(java.lang.String newRef)void_setType(commonj.sdo.Type aType)INTERNAL:voidaddOpenContentProperty(commonj.sdo.Property property)INTERNAL: Add the open content property into all 3 data structures.java.lang.ObjectconvertObjectToValue(commonj.sdo.Property property, int position, java.lang.Class cls)INTERNAL:java.lang.ObjectconvertObjectToValue(commonj.sdo.Property property, java.lang.Class cls)INTERNAL:SDODataObjectcreateDataObject(int propertyIndex)SDODataObjectcreateDataObject(int propertyIndex, java.lang.String namespaceURI, java.lang.String typeName)SDODataObjectcreateDataObject(commonj.sdo.Property aProperty)SDODataObjectcreateDataObject(commonj.sdo.Property property, commonj.sdo.Type aType)commonj.sdo.DataObjectcreateDataObject(java.lang.String propertyName)SDODataObjectcreateDataObject(java.lang.String propertyName, java.lang.String namespaceURI, java.lang.String typeName)commonj.sdo.PropertydefineOpenContentProperty(java.lang.String name, java.lang.Object value)INTERNAL: Create a dynamic open content property if no property exists for (name).commonj.sdo.PropertydefineOpenContentProperty(java.lang.String name, java.lang.Object value, commonj.sdo.Type sdotype)voiddelete()voiddetach()voiddetachOrDelete(boolean fromDelete)INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object.java.lang.Objectget(int propertyIndex)java.lang.Objectget(commonj.sdo.Property property)java.lang.Objectget(java.lang.String path)java.math.BigDecimalgetBigDecimal(int propertyIndex)java.math.BigDecimalgetBigDecimal(commonj.sdo.Property property)java.math.BigDecimalgetBigDecimal(java.lang.String path)java.math.BigIntegergetBigInteger(int propertyIndex)java.math.BigIntegergetBigInteger(commonj.sdo.Property property)java.math.BigIntegergetBigInteger(java.lang.String path)booleangetBoolean(int propertyIndex)booleangetBoolean(commonj.sdo.Property property)booleangetBoolean(java.lang.String path)bytegetByte(int propertyIndex)bytegetByte(commonj.sdo.Property property)bytegetByte(java.lang.String path)byte[]getBytes(int propertyIndex)byte[]getBytes(commonj.sdo.Property property)byte[]getBytes(java.lang.String path)SDOChangeSummarygetChangeSummary()chargetChar(int propertyIndex)chargetChar(commonj.sdo.Property property)chargetChar(java.lang.String path)SDODataObjectgetContainer()SDOPropertygetContainmentProperty()commonj.sdo.DataGraphgetDataGraph()SDODataObjectgetDataObject(int propertyIndex)SDODataObjectgetDataObject(commonj.sdo.Property property)SDODataObjectgetDataObject(java.lang.String path)java.util.DategetDate(int propertyIndex)java.util.DategetDate(commonj.sdo.Property property)java.util.DategetDate(java.lang.String path)doublegetDouble(int propertyIndex)doublegetDouble(commonj.sdo.Property property)doublegetDouble(java.lang.String path)floatgetFloat(int propertyIndex)floatgetFloat(commonj.sdo.Property property)floatgetFloat(java.lang.String path)java.util.ListgetInstanceProperties()SDOPropertygetInstanceProperty(int propertyIndex)INTERNAL:SDOPropertygetInstanceProperty(java.lang.String propertyName)intgetInt(int propertyIndex)intgetInt(commonj.sdo.Property property)intgetInt(java.lang.String path)java.util.ListgetList(int propertyIndex)java.util.ListgetList(commonj.sdo.Property property)java.util.ListgetList(java.lang.String path)longgetLong(int propertyIndex)longgetLong(commonj.sdo.Property property)longgetLong(java.lang.String path)SDOPropertygetProperty(java.lang.String propertyName)java.lang.ObjectgetPropertyInternal(commonj.sdo.Property property)INTERNAL: Get the value of the property (open-content or declared)..SDODataObjectgetRootObject()SDOSequencegetSequence()commonj.sdo.SequencegetSequence(int propertyIndex)Deprecated.in SDO 2.1.0.commonj.sdo.SequencegetSequence(commonj.sdo.Property property)Deprecated.in SDO 2.1.0.commonj.sdo.SequencegetSequence(java.lang.String path)Deprecated.in SDO 2.1.0.java.util.List<org.eclipse.persistence.oxm.sequenced.Setting>getSettings()shortgetShort(int propertyIndex)shortgetShort(commonj.sdo.Property property)shortgetShort(java.lang.String path)java.lang.StringgetString(int propertyIndex)java.lang.StringgetString(commonj.sdo.Property property)java.lang.StringgetString(java.lang.String path)SDOTypegetType()booleanisSet(int propertyIndex)booleanisSet(commonj.sdo.Property property)booleanisSet(java.lang.String path)booleanisSetInternal(commonj.sdo.Property property)INTERNAL: Return whether the property (open-content or declared) is set?booleanparentContains(java.lang.Object value)INTERNAL:voidremoveOpenContentProperty(commonj.sdo.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, java.lang.Object value)voidset(commonj.sdo.Property property, java.lang.Object value)voidset(java.lang.String path, java.lang.Object value)voidset(SDOProperty property, java.lang.Object value, boolean updateSequence)INTERNAL: Sets the value of the given property of the object to the new value.voidsetBigDecimal(int propertyIndex, java.math.BigDecimal value)voidsetBigDecimal(commonj.sdo.Property property, java.math.BigDecimal value)voidsetBigDecimal(java.lang.String path, java.math.BigDecimal value)voidsetBigInteger(int propertyIndex, java.math.BigInteger value)voidsetBigInteger(commonj.sdo.Property property, java.math.BigInteger value)voidsetBigInteger(java.lang.String path, java.math.BigInteger value)voidsetBoolean(int propertyIndex, boolean value)voidsetBoolean(commonj.sdo.Property property, boolean value)voidsetBoolean(java.lang.String path, boolean value)voidsetByte(int propertyIndex, byte value)voidsetByte(commonj.sdo.Property property, byte value)voidsetByte(java.lang.String path, byte value)voidsetBytes(int propertyIndex, byte[] value)voidsetBytes(commonj.sdo.Property property, byte[] value)voidsetBytes(java.lang.String path, byte[] value)voidsetChar(int propertyIndex, char value)voidsetChar(commonj.sdo.Property property, char value)voidsetChar(java.lang.String path, char value)voidsetDataGraph(commonj.sdo.DataGraph dataGraph)voidsetDataObject(int propertyIndex, commonj.sdo.DataObject value)voidsetDataObject(commonj.sdo.Property property, commonj.sdo.DataObject value)voidsetDataObject(java.lang.String path, commonj.sdo.DataObject value)voidsetDate(int propertyIndex, java.util.Date value)voidsetDate(commonj.sdo.Property property, java.util.Date value)voidsetDate(java.lang.String path, java.util.Date value)voidsetDouble(int propertyIndex, double value)voidsetDouble(commonj.sdo.Property property, double value)voidsetDouble(java.lang.String path, double value)voidsetFloat(int propertyIndex, float value)voidsetFloat(commonj.sdo.Property property, float value)voidsetFloat(java.lang.String path, float value)voidsetInt(int propertyIndex, int value)voidsetInt(commonj.sdo.Property property, int value)voidsetInt(java.lang.String path, int value)voidsetInternal(SDOProperty property, java.lang.Object value, boolean updateSequence)voidsetList(int propertyIndex, java.util.List value)voidsetList(commonj.sdo.Property property, java.util.List value)voidsetList(java.lang.String path, java.util.List value)voidsetLong(int propertyIndex, long value)voidsetLong(commonj.sdo.Property property, long value)voidsetLong(java.lang.String path, long value)voidsetPropertyInternal(SDOProperty property, java.lang.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)voidsetShort(commonj.sdo.Property property, short value)voidsetShort(java.lang.String path, short value)voidsetString(int propertyIndex, java.lang.String value)voidsetString(commonj.sdo.Property property, java.lang.String value)voidsetString(java.lang.String path, java.lang.String value)voidundoChanges(boolean isCSRoot, commonj.sdo.ChangeSummary cs, SDODataObject origContainer, java.lang.String origContainmentPropName)INTERNAL: This function reverses any operations that were performed on this object since change tracking was turned on.voidunset(int propertyIndex)voidunset(commonj.sdo.Property property)voidunset(commonj.sdo.Property property, boolean fromDelete, boolean updateSequence)INTERNAL: Unset the specified property on this DataObject.voidunset(java.lang.String path)voidupdateContainment(commonj.sdo.Property property, java.util.Collection values)INTERNAL: Update containment on the specified collection of values and default to true = update the sequencevoidupdateContainment(commonj.sdo.Property property, java.util.Collection values, boolean updateSequence)INTERNAL: Update containment with flagged update sequence statevoidupdateContainment(commonj.sdo.Property property, SDODataObject value)INTERNAL: update containment and the update the sequence value by default.voidupdateContainment(commonj.sdo.Property property, SDODataObject aDataObject, boolean updateSequence)INTERNAL: Update containment on the dataObject with specified update sequence statejava.lang.ObjectwriteReplace()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(commonj.sdo.helper.HelperContext aContext)
INTERNAL: Set the HelperContext that will be associated with this DataObject.- Parameters:
aContext-
-
get
public java.lang.Object get(java.lang.String path)
- Specified by:
getin interfacecommonj.sdo.DataObject
-
set
public void set(java.lang.String path, java.lang.Object value) throws java.lang.ClassCastException, java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException- Specified by:
setin interfacecommonj.sdo.DataObject- Throws:
java.lang.ClassCastExceptionjava.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentException
-
isSet
public boolean isSet(java.lang.String path)
- Specified by:
isSetin interfacecommonj.sdo.DataObject
-
unset
public void unset(java.lang.String path)
- Specified by:
unsetin interfacecommonj.sdo.DataObject
-
getBoolean
public boolean getBoolean(java.lang.String path) throws java.lang.ClassCastException- Specified by:
getBooleanin interfacecommonj.sdo.DataObject- Throws:
java.lang.ClassCastException
-
getByte
public byte getByte(java.lang.String path)
- Specified by:
getBytein interfacecommonj.sdo.DataObject
-
getChar
public char getChar(java.lang.String path)
- Specified by:
getCharin interfacecommonj.sdo.DataObject
-
getDouble
public double getDouble(java.lang.String path)
- Specified by:
getDoublein interfacecommonj.sdo.DataObject
-
getFloat
public float getFloat(java.lang.String path)
- Specified by:
getFloatin interfacecommonj.sdo.DataObject
-
getInt
public int getInt(java.lang.String path)
- Specified by:
getIntin interfacecommonj.sdo.DataObject
-
getLong
public long getLong(java.lang.String path)
- Specified by:
getLongin interfacecommonj.sdo.DataObject
-
getShort
public short getShort(java.lang.String path)
- Specified by:
getShortin interfacecommonj.sdo.DataObject
-
getBytes
public byte[] getBytes(java.lang.String path)
- Specified by:
getBytesin interfacecommonj.sdo.DataObject
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String path)
- Specified by:
getBigDecimalin interfacecommonj.sdo.DataObject
-
getBigInteger
public java.math.BigInteger getBigInteger(java.lang.String path)
- Specified by:
getBigIntegerin interfacecommonj.sdo.DataObject
-
getDataObject
public SDODataObject getDataObject(java.lang.String path) throws java.lang.ClassCastException
- Specified by:
getDataObjectin interfacecommonj.sdo.DataObject- Throws:
java.lang.ClassCastException
-
getDate
public java.util.Date getDate(java.lang.String path)
- Specified by:
getDatein interfacecommonj.sdo.DataObject
-
getString
public java.lang.String getString(java.lang.String path)
- Specified by:
getStringin interfacecommonj.sdo.DataObject
-
getList
public java.util.List getList(java.lang.String path)
- Specified by:
getListin interfacecommonj.sdo.DataObject
-
setBoolean
public void setBoolean(java.lang.String path, boolean value)- Specified by:
setBooleanin interfacecommonj.sdo.DataObject
-
setByte
public void setByte(java.lang.String path, byte value)- Specified by:
setBytein interfacecommonj.sdo.DataObject
-
setChar
public void setChar(java.lang.String path, char value)- Specified by:
setCharin interfacecommonj.sdo.DataObject
-
setDouble
public void setDouble(java.lang.String path, double value)- Specified by:
setDoublein interfacecommonj.sdo.DataObject
-
setFloat
public void setFloat(java.lang.String path, float value)- Specified by:
setFloatin interfacecommonj.sdo.DataObject
-
setInt
public void setInt(java.lang.String path, int value)- Specified by:
setIntin interfacecommonj.sdo.DataObject
-
setLong
public void setLong(java.lang.String path, long value)- Specified by:
setLongin interfacecommonj.sdo.DataObject
-
setShort
public void setShort(java.lang.String path, short value)- Specified by:
setShortin interfacecommonj.sdo.DataObject
-
setBytes
public void setBytes(java.lang.String path, byte[] value)- Specified by:
setBytesin interfacecommonj.sdo.DataObject
-
setBigDecimal
public void setBigDecimal(java.lang.String path, java.math.BigDecimal value)- Specified by:
setBigDecimalin interfacecommonj.sdo.DataObject
-
setBigInteger
public void setBigInteger(java.lang.String path, java.math.BigInteger value)- Specified by:
setBigIntegerin interfacecommonj.sdo.DataObject
-
setDataObject
public void setDataObject(java.lang.String path, commonj.sdo.DataObject value)- Specified by:
setDataObjectin interfacecommonj.sdo.DataObject
-
setDate
public void setDate(java.lang.String path, java.util.Date value)- Specified by:
setDatein interfacecommonj.sdo.DataObject
-
setString
public void setString(java.lang.String path, java.lang.String value)- Specified by:
setStringin interfacecommonj.sdo.DataObject
-
setList
public void setList(java.lang.String path, java.util.List value)- Specified by:
setListin interfacecommonj.sdo.DataObject
-
get
public java.lang.Object get(int propertyIndex) throws java.lang.IllegalArgumentException- Specified by:
getin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
set
public void set(int propertyIndex, java.lang.Object value)- Specified by:
setin interfacecommonj.sdo.DataObject
-
isSet
public boolean isSet(int propertyIndex)
- Specified by:
isSetin interfacecommonj.sdo.DataObject
-
unset
public void unset(int propertyIndex)
- Specified by:
unsetin interfacecommonj.sdo.DataObject
-
getBoolean
public boolean getBoolean(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBooleanin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getByte
public byte getByte(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBytein interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getChar
public char getChar(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getCharin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getDouble
public double getDouble(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getDoublein interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getFloat
public float getFloat(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getFloatin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getInt
public int getInt(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getIntin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getLong
public long getLong(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getLongin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getShort
public short getShort(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getShortin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getBytes
public byte[] getBytes(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBytesin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBigDecimalin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getBigInteger
public java.math.BigInteger getBigInteger(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBigIntegerin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getDataObject
public SDODataObject getDataObject(int propertyIndex)
- Specified by:
getDataObjectin interfacecommonj.sdo.DataObject
-
getDate
public java.util.Date getDate(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getDatein interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getString
public java.lang.String getString(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getStringin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getList
public java.util.List getList(int propertyIndex)
- Specified by:
getListin interfacecommonj.sdo.DataObject
-
getSequence
@Deprecated public commonj.sdo.Sequence getSequence(java.lang.String path)
Deprecated.in SDO 2.1.0.- Specified by:
getSequencein interfacecommonj.sdo.DataObject
-
getSequence
@Deprecated public commonj.sdo.Sequence getSequence(int propertyIndex)
Deprecated.in SDO 2.1.0.- Specified by:
getSequencein interfacecommonj.sdo.DataObject
-
getSequence
@Deprecated public commonj.sdo.Sequence getSequence(commonj.sdo.Property property)
Deprecated.in SDO 2.1.0.- Specified by:
getSequencein interfacecommonj.sdo.DataObject
-
getSequence
public SDOSequence getSequence()
- Specified by:
getSequencein interfacecommonj.sdo.DataObject
-
setBoolean
public void setBoolean(int propertyIndex, boolean value)- Specified by:
setBooleanin interfacecommonj.sdo.DataObject
-
setByte
public void setByte(int propertyIndex, byte value)- Specified by:
setBytein interfacecommonj.sdo.DataObject
-
setChar
public void setChar(int propertyIndex, char value)- Specified by:
setCharin interfacecommonj.sdo.DataObject
-
setDouble
public void setDouble(int propertyIndex, double value)- Specified by:
setDoublein interfacecommonj.sdo.DataObject
-
setFloat
public void setFloat(int propertyIndex, float value)- Specified by:
setFloatin interfacecommonj.sdo.DataObject
-
setInt
public void setInt(int propertyIndex, int value)- Specified by:
setIntin interfacecommonj.sdo.DataObject
-
setLong
public void setLong(int propertyIndex, long value)- Specified by:
setLongin interfacecommonj.sdo.DataObject
-
setShort
public void setShort(int propertyIndex, short value)- Specified by:
setShortin interfacecommonj.sdo.DataObject
-
setBytes
public void setBytes(int propertyIndex, byte[] value)- Specified by:
setBytesin interfacecommonj.sdo.DataObject
-
setBigDecimal
public void setBigDecimal(int propertyIndex, java.math.BigDecimal value)- Specified by:
setBigDecimalin interfacecommonj.sdo.DataObject
-
setBigInteger
public void setBigInteger(int propertyIndex, java.math.BigInteger value)- Specified by:
setBigIntegerin interfacecommonj.sdo.DataObject
-
setDataObject
public void setDataObject(int propertyIndex, commonj.sdo.DataObject value)- Specified by:
setDataObjectin interfacecommonj.sdo.DataObject
-
setDate
public void setDate(int propertyIndex, java.util.Date value)- Specified by:
setDatein interfacecommonj.sdo.DataObject
-
setString
public void setString(int propertyIndex, java.lang.String value)- Specified by:
setStringin interfacecommonj.sdo.DataObject
-
setList
public void setList(int propertyIndex, java.util.List value)- Specified by:
setListin interfacecommonj.sdo.DataObject
-
get
public java.lang.Object get(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
defineOpenContentProperty
public commonj.sdo.Property defineOpenContentProperty(java.lang.String name, java.lang.Object value) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentExceptionINTERNAL: Create a dynamic open content property if no property exists for (name).- Parameters:
name-value-- Returns:
- Property
- Throws:
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentException
-
defineOpenContentProperty
public commonj.sdo.Property defineOpenContentProperty(java.lang.String name, java.lang.Object value, commonj.sdo.Type sdotype) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException- Throws:
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentException
-
set
public void set(commonj.sdo.Property property, java.lang.Object value) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException- Specified by:
setin interfacecommonj.sdo.DataObject- Throws:
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentException
-
setInternal
public void setInternal(SDOProperty property, java.lang.Object value, boolean updateSequence) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
- Throws:
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentException
-
set
public void set(SDOProperty property, java.lang.Object value, boolean updateSequence) throws java.lang.UnsupportedOperationException, java.lang.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:
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentException
-
isSet
public boolean isSet(commonj.sdo.Property property)
- Specified by:
isSetin interfacecommonj.sdo.DataObject
-
unset
public void unset(commonj.sdo.Property property)
- Specified by:
unsetin interfacecommonj.sdo.DataObject
-
unset
public void unset(commonj.sdo.Property property, boolean fromDelete, boolean updateSequence)INTERNAL: Unset the specified property on this DataObject. The fromDelete parameter specifies whether we are from a delete or unset/detach operation. The updateSequence parameter is used internally to stop a bidirectional update in the SDOSequence when originally called from this Sequence.- Parameters:
property-fromDelete-updateSequence-
-
getBoolean
public boolean getBoolean(commonj.sdo.Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBooleanin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getByte
public byte getByte(commonj.sdo.Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException- Specified by:
getBytein interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getChar
public char getChar(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getCharin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getDouble
public double getDouble(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getDoublein interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getFloat
public float getFloat(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getFloatin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getInt
public int getInt(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getIntin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getLong
public long getLong(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getLongin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getShort
public short getShort(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getShortin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getBytes
public byte[] getBytes(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getBytesin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getBigDecimalin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getBigInteger
public java.math.BigInteger getBigInteger(commonj.sdo.Property property) throws java.lang.IllegalArgumentException- Specified by:
getBigIntegerin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentException
-
getDataObject
public SDODataObject getDataObject(commonj.sdo.Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
- Specified by:
getDataObjectin interfacecommonj.sdo.DataObject- Throws:
java.lang.IllegalArgumentExceptionjava.lang.ClassCastException
-
getDate
public java.util.Date getDate(commonj.sdo.Property property)
- Specified by:
getDatein interfacecommonj.sdo.DataObject
-
getString
public java.lang.String getString(commonj.sdo.Property property)
- Specified by:
getStringin interfacecommonj.sdo.DataObject
-
getList
public java.util.List getList(commonj.sdo.Property property)
- Specified by:
getListin interfacecommonj.sdo.DataObject
-
setBoolean
public void setBoolean(commonj.sdo.Property property, boolean value)- Specified by:
setBooleanin interfacecommonj.sdo.DataObject
-
setByte
public void setByte(commonj.sdo.Property property, byte value)- Specified by:
setBytein interfacecommonj.sdo.DataObject
-
setChar
public void setChar(commonj.sdo.Property property, char value)- Specified by:
setCharin interfacecommonj.sdo.DataObject
-
setDouble
public void setDouble(commonj.sdo.Property property, double value)- Specified by:
setDoublein interfacecommonj.sdo.DataObject
-
setFloat
public void setFloat(commonj.sdo.Property property, float value)- Specified by:
setFloatin interfacecommonj.sdo.DataObject
-
setInt
public void setInt(commonj.sdo.Property property, int value)- Specified by:
setIntin interfacecommonj.sdo.DataObject
-
setLong
public void setLong(commonj.sdo.Property property, long value)- Specified by:
setLongin interfacecommonj.sdo.DataObject
-
setShort
public void setShort(commonj.sdo.Property property, short value)- Specified by:
setShortin interfacecommonj.sdo.DataObject
-
setBytes
public void setBytes(commonj.sdo.Property property, byte[] value)- Specified by:
setBytesin interfacecommonj.sdo.DataObject
-
setBigDecimal
public void setBigDecimal(commonj.sdo.Property property, java.math.BigDecimal value)- Specified by:
setBigDecimalin interfacecommonj.sdo.DataObject
-
setBigInteger
public void setBigInteger(commonj.sdo.Property property, java.math.BigInteger value)- Specified by:
setBigIntegerin interfacecommonj.sdo.DataObject
-
setDataObject
public void setDataObject(commonj.sdo.Property property, commonj.sdo.DataObject value)- Specified by:
setDataObjectin interfacecommonj.sdo.DataObject
-
setDate
public void setDate(commonj.sdo.Property property, java.util.Date value)- Specified by:
setDatein interfacecommonj.sdo.DataObject
-
setString
public void setString(commonj.sdo.Property property, java.lang.String value)- Specified by:
setStringin interfacecommonj.sdo.DataObject
-
setList
public void setList(commonj.sdo.Property property, java.util.List value)- Specified by:
setListin interfacecommonj.sdo.DataObject
-
createDataObject
public commonj.sdo.DataObject createDataObject(java.lang.String propertyName)
- Specified by:
createDataObjectin interfacecommonj.sdo.DataObject
-
createDataObject
public SDODataObject createDataObject(int propertyIndex)
- Specified by:
createDataObjectin interfacecommonj.sdo.DataObject
-
createDataObject
public SDODataObject createDataObject(commonj.sdo.Property aProperty)
- Specified by:
createDataObjectin interfacecommonj.sdo.DataObject
-
createDataObject
public SDODataObject createDataObject(java.lang.String propertyName, java.lang.String namespaceURI, java.lang.String typeName)
- Specified by:
createDataObjectin interfacecommonj.sdo.DataObject
-
createDataObject
public SDODataObject createDataObject(int propertyIndex, java.lang.String namespaceURI, java.lang.String typeName)
- Specified by:
createDataObjectin interfacecommonj.sdo.DataObject
-
createDataObject
public SDODataObject createDataObject(commonj.sdo.Property property, commonj.sdo.Type aType)
- Specified by:
createDataObjectin interfacecommonj.sdo.DataObject
-
detachOrDelete
public void detachOrDelete(boolean fromDelete)
INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object. This function performs a single preOrder traversal of the tree. An unset is done for each property if the action = delete Implementors: detach() and delete() via detach- Parameters:
fromDelete- (flag the action true = delete, false = detach)
-
detach
public void detach()
- Specified by:
detachin interfacecommonj.sdo.DataObject
-
delete
public void delete()
- Specified by:
deletein interfacecommonj.sdo.DataObject
-
getContainer
public SDODataObject getContainer()
- Specified by:
getContainerin interfacecommonj.sdo.DataObject
-
getContainmentProperty
public SDOProperty getContainmentProperty()
- Specified by:
getContainmentPropertyin interfacecommonj.sdo.DataObject
-
getDataGraph
public commonj.sdo.DataGraph getDataGraph()
- Specified by:
getDataGraphin interfacecommonj.sdo.DataObject
-
setDataGraph
public void setDataGraph(commonj.sdo.DataGraph dataGraph)
-
getType
public SDOType getType()
- Specified by:
getTypein interfacecommonj.sdo.DataObject
-
getInstanceProperties
public java.util.List getInstanceProperties()
- Specified by:
getInstancePropertiesin interfacecommonj.sdo.DataObject
-
getProperty
public SDOProperty getProperty(java.lang.String propertyName)
- Specified by:
getPropertyin interfacecommonj.sdo.DataObject
-
getInstanceProperty
public SDOProperty getInstanceProperty(java.lang.String propertyName)
- Specified by:
getInstancePropertyin interfacecommonj.sdo.DataObject
-
getInstanceProperty
public SDOProperty getInstanceProperty(int propertyIndex) throws java.lang.IllegalArgumentException
INTERNAL:- Parameters:
propertyIndex-- Returns:
- Throws:
org.eclipse.persistence.exceptions.SDOExceptionjava.lang.IllegalArgumentException
-
getRootObject
public SDODataObject getRootObject()
- Specified by:
getRootObjectin interfacecommonj.sdo.DataObject
-
getChangeSummary
public SDOChangeSummary getChangeSummary()
- Specified by:
getChangeSummaryin interfacecommonj.sdo.DataObject
-
_setCreated
public void _setCreated(boolean created)
INTERNAL: Set flag created value.- Parameters:
created- flag created's new value.
-
_setModified
public void _setModified(boolean modified)
INTERNAL: Set flag modified value.- Parameters:
modified- flag modified's new value.
-
_setChangeSummary
public void _setChangeSummary(SDOChangeSummary aChangeSummary)
INTERNAL: Recursively Set this DataObject's ChangeSummary as passed in value.- Parameters:
aChangeSummary- the ChangeSummary taking this DataObject as root.
-
undoChanges
public void undoChanges(boolean isCSRoot, commonj.sdo.ChangeSummary cs, SDODataObject origContainer, java.lang.String origContainmentPropName)INTERNAL: This function reverses any operations that were performed on this object since change tracking was turned on. The object is returned to the state when logging was first started.- Parameters:
isCSRoot-cs-origContainer-origContainmentPropName-
-
resetChanges
public void resetChanges()
INTERNAL: Initialize all old settings related to ChangeSummary and recursively go down the tree to initialize all DataObjects rooted at this DataObject.
-
_setType
public void _setType(commonj.sdo.Type aType)
INTERNAL:- Parameters:
aType-
-
_setCurrentValueStore
public void _setCurrentValueStore(ValueStore aValueStore)
INTERNAL: Pluggable Interface for substituting the default Map with a custom Map Class- Parameters:
aValueStore-
-
_getCurrentValueStore
public ValueStore _getCurrentValueStore()
INTERNAL: Map interface into the currentValueStore of this DataObject.
Note: Implementers of theValueStoreinterface require this accessor.- Returns:
-
_setContainer
public void _setContainer(commonj.sdo.DataObject aContainer)
INTERNAL: Sets the DataObject which contains this DataObject.- Parameters:
aContainer- the DataObject which is the container of this DataObject.
-
_getOpenContentPropertiesAttributesMap
public java.util.Map _getOpenContentPropertiesAttributesMap()
-
_setOpenContentPropertiesAttributesMap
public void _setOpenContentPropertiesAttributesMap(java.util.Map openAttributeProperties)
-
_setOpenContentPropertiesWithXMLRoots
public void _setOpenContentPropertiesWithXMLRoots(java.util.List openContentPropertiesWithXMLRoots)
INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call- Parameters:
openContentPropertiesWithXMLRoots-
-
_getOpenContentPropertiesWithXMLRoots
public java.util.List _getOpenContentPropertiesWithXMLRoots()
INTERNAL: This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call- Returns:
-
_getOpenContentProperties
public java.util.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 java.lang.Object convertObjectToValue(commonj.sdo.Property property, java.lang.Class cls) throws java.lang.ClassCastException, java.lang.IllegalArgumentExceptionINTERNAL:- Parameters:
property-cls-- Returns:
- Throws:
java.lang.ClassCastExceptionjava.lang.IllegalArgumentException
-
convertObjectToValue
public java.lang.Object convertObjectToValue(commonj.sdo.Property property, int position, java.lang.Class cls) throws java.lang.ClassCastException, java.lang.IllegalArgumentExceptionINTERNAL:- Parameters:
property-position-cls-- Returns:
- Throws:
java.lang.ClassCastExceptionjava.lang.IllegalArgumentException
-
_setContainmentPropertyName
public void _setContainmentPropertyName(java.lang.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 java.lang.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(java.lang.Object value)
INTERNAL:- Parameters:
value-- Returns:
-
updateContainment
public void updateContainment(commonj.sdo.Property property, java.util.Collection values, boolean updateSequence)INTERNAL: Update containment with flagged update sequence state- Parameters:
property-values-updateSequence-
-
updateContainment
public void updateContainment(commonj.sdo.Property property, java.util.Collection values)INTERNAL: Update containment on the specified collection of values and default to true = update the sequence- Parameters:
property-values-
-
updateContainment
public void updateContainment(commonj.sdo.Property property, SDODataObject aDataObject, boolean updateSequence)INTERNAL: Update containment on the dataObject with specified update sequence state- Parameters:
property-aDataObject-updateSequence-
-
updateContainment
public void updateContainment(commonj.sdo.Property property, SDODataObject value)INTERNAL: update containment and the update the sequence value by default.- Parameters:
property-value-
-
writeReplace
public java.lang.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 java.lang.String _getPath()
INTERNAL: Return an SDO Path string from root of the caller to itself- Returns:
- String
-
getPropertyInternal
public java.lang.Object getPropertyInternal(commonj.sdo.Property property)
INTERNAL: Get the value of the property (open-content or declared)..- Parameters:
property-- Returns:
-
setPropertyInternal
public void setPropertyInternal(SDOProperty property, java.lang.Object value, boolean updateSequence)
INTERNAL: Update the ValueStore with the new property value and update any sequence if it exists.- Parameters:
property-value-updateSequence- (truncate call back from sequence when this function was called from sequence)
-
addOpenContentProperty
public void addOpenContentProperty(commonj.sdo.Property property)
INTERNAL: Add the open content property into all 3 data structures. Remove the property from the unset map.- Parameters:
property-
-
removeOpenContentProperty
public void removeOpenContentProperty(commonj.sdo.Property property)
INTERNAL: Remove the open content property (property) from all 3 data structures. Add the property to the unset map. We restore this OC property in undoChanges- Parameters:
property-
-
isSetInternal
public boolean isSetInternal(commonj.sdo.Property property)
INTERNAL: Return whether the property (open-content or declared) is set?- Parameters:
property-- Returns:
- true if set, false otherwise
-
_getSdoRef
public java.lang.String _getSdoRef()
INTERNAL: Return the sdoref attribute value during unmarshaling- Returns:
-
_setOpenContentPropertiesAttributes
public void _setOpenContentPropertiesAttributes(java.util.List openContentPropertiesAttributes)
-
_getOpenContentPropertiesAttributes
public java.util.List _getOpenContentPropertiesAttributes()
-
getSettings
public java.util.List<org.eclipse.persistence.oxm.sequenced.Setting> getSettings()
- Specified by:
getSettingsin interfaceorg.eclipse.persistence.oxm.sequenced.SequencedObject
-
_setSdoRef
public void _setSdoRef(java.lang.String newRef)
-
-