public class SDODataObject extends java.lang.Object implements commonj.sdo.DataObject, SequencedObject
| Constructor and Description |
|---|
SDODataObject()
INTERNAL:
Private constructor.
|
| Modifier and Type | Method and 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.
|
java.util.List |
_getOpenContentProperties()
INTERNAL:
Returns a list of the Properties currently used in this DataObject which are not
included in getType().getProperties
|
java.util.List |
_getOpenContentPropertiesAttributes() |
java.util.Map |
_getOpenContentPropertiesAttributesMap() |
java.util.List |
_getOpenContentPropertiesWithXMLRoots()
INTERNAL:
This function is implemented by SDOType.setOpen() in a mapping setGet/SetMethodName call
|
java.lang.String |
_getPath()
INTERNAL:
Return an SDO Path string from root of the caller to itself
|
java.lang.String |
_getSdoRef()
INTERNAL:
Return the sdoref attribute value during unmarshaling
|
void |
_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 Class
|
void |
_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 call
|
void |
_setSdoRef(java.lang.String newRef) |
void |
_setType(commonj.sdo.Type aType)
INTERNAL:
|
void |
addOpenContentProperty(commonj.sdo.Property property)
INTERNAL:
Add the open content property into all 3 data structures.
|
java.lang.Object |
convertObjectToValue(commonj.sdo.Property property,
java.lang.Class cls)
INTERNAL:
|
java.lang.Object |
convertObjectToValue(commonj.sdo.Property property,
int position,
java.lang.Class cls)
INTERNAL:
|
SDODataObject |
createDataObject(int propertyIndex) |
SDODataObject |
createDataObject(int propertyIndex,
java.lang.String namespaceURI,
java.lang.String typeName) |
SDODataObject |
createDataObject(commonj.sdo.Property aProperty) |
SDODataObject |
createDataObject(commonj.sdo.Property property,
commonj.sdo.Type aType) |
commonj.sdo.DataObject |
createDataObject(java.lang.String propertyName) |
SDODataObject |
createDataObject(java.lang.String propertyName,
java.lang.String namespaceURI,
java.lang.String typeName) |
commonj.sdo.Property |
defineOpenContentProperty(java.lang.String name,
java.lang.Object value)
INTERNAL:
Create a dynamic open content property if no property exists for (name).
|
commonj.sdo.Property |
defineOpenContentProperty(java.lang.String name,
java.lang.Object value,
commonj.sdo.Type sdotype) |
void |
delete() |
void |
detach() |
void |
detachOrDelete(boolean fromDelete)
INTERNAL:
Recursively walk the tree and set oldSettings for a detached/deleted object.
|
java.lang.Object |
get(int propertyIndex) |
java.lang.Object |
get(commonj.sdo.Property property) |
java.lang.Object |
get(java.lang.String path) |
java.math.BigDecimal |
getBigDecimal(int propertyIndex) |
java.math.BigDecimal |
getBigDecimal(commonj.sdo.Property property) |
java.math.BigDecimal |
getBigDecimal(java.lang.String path) |
java.math.BigInteger |
getBigInteger(int propertyIndex) |
java.math.BigInteger |
getBigInteger(commonj.sdo.Property property) |
java.math.BigInteger |
getBigInteger(java.lang.String path) |
boolean |
getBoolean(int propertyIndex) |
boolean |
getBoolean(commonj.sdo.Property property) |
boolean |
getBoolean(java.lang.String path) |
byte |
getByte(int propertyIndex) |
byte |
getByte(commonj.sdo.Property property) |
byte |
getByte(java.lang.String path) |
byte[] |
getBytes(int propertyIndex) |
byte[] |
getBytes(commonj.sdo.Property property) |
byte[] |
getBytes(java.lang.String path) |
SDOChangeSummary |
getChangeSummary() |
char |
getChar(int propertyIndex) |
char |
getChar(commonj.sdo.Property property) |
char |
getChar(java.lang.String path) |
SDODataObject |
getContainer() |
SDOProperty |
getContainmentProperty() |
commonj.sdo.DataGraph |
getDataGraph() |
SDODataObject |
getDataObject(int propertyIndex) |
SDODataObject |
getDataObject(commonj.sdo.Property property) |
SDODataObject |
getDataObject(java.lang.String path) |
java.util.Date |
getDate(int propertyIndex) |
java.util.Date |
getDate(commonj.sdo.Property property) |
java.util.Date |
getDate(java.lang.String path) |
double |
getDouble(int propertyIndex) |
double |
getDouble(commonj.sdo.Property property) |
double |
getDouble(java.lang.String path) |
float |
getFloat(int propertyIndex) |
float |
getFloat(commonj.sdo.Property property) |
float |
getFloat(java.lang.String path) |
java.util.List |
getInstanceProperties() |
SDOProperty |
getInstanceProperty(int propertyIndex)
INTERNAL:
|
SDOProperty |
getInstanceProperty(java.lang.String propertyName) |
int |
getInt(int propertyIndex) |
int |
getInt(commonj.sdo.Property property) |
int |
getInt(java.lang.String path) |
java.util.List |
getList(int propertyIndex) |
java.util.List |
getList(commonj.sdo.Property property) |
java.util.List |
getList(java.lang.String path) |
long |
getLong(int propertyIndex) |
long |
getLong(commonj.sdo.Property property) |
long |
getLong(java.lang.String path) |
SDOProperty |
getProperty(java.lang.String propertyName) |
java.lang.Object |
getPropertyInternal(commonj.sdo.Property property)
INTERNAL:
Get the value of the property (open-content or declared)..
|
SDODataObject |
getRootObject() |
SDOSequence |
getSequence() |
commonj.sdo.Sequence |
getSequence(int propertyIndex)
Deprecated.
in SDO 2.1.0.
|
commonj.sdo.Sequence |
getSequence(commonj.sdo.Property property)
Deprecated.
in SDO 2.1.0.
|
commonj.sdo.Sequence |
getSequence(java.lang.String path)
Deprecated.
in SDO 2.1.0.
|
java.util.List<Setting> |
getSettings() |
short |
getShort(int propertyIndex) |
short |
getShort(commonj.sdo.Property property) |
short |
getShort(java.lang.String path) |
java.lang.String |
getString(int propertyIndex) |
java.lang.String |
getString(commonj.sdo.Property property) |
java.lang.String |
getString(java.lang.String path) |
SDOType |
getType() |
boolean |
isSet(int propertyIndex) |
boolean |
isSet(commonj.sdo.Property property) |
boolean |
isSet(java.lang.String path) |
boolean |
isSetInternal(commonj.sdo.Property property)
INTERNAL:
Return whether the property (open-content or declared) is set?
|
boolean |
parentContains(java.lang.Object value)
INTERNAL:
|
void |
removeOpenContentProperty(commonj.sdo.Property property)
INTERNAL:
Remove the open content property (property) from all 3 data structures.
|
void |
resetChanges()
INTERNAL:
Initialize all old settings related to ChangeSummary and recursively go down
the tree to initialize all DataObjects rooted at this DataObject.
|
void |
set(int propertyIndex,
java.lang.Object value) |
void |
set(commonj.sdo.Property property,
java.lang.Object value) |
void |
set(SDOProperty property,
java.lang.Object value,
boolean updateSequence)
INTERNAL:
Sets the value of the given property of the object to the new value.
|
void |
set(java.lang.String path,
java.lang.Object value) |
void |
setBigDecimal(int propertyIndex,
java.math.BigDecimal value) |
void |
setBigDecimal(commonj.sdo.Property property,
java.math.BigDecimal value) |
void |
setBigDecimal(java.lang.String path,
java.math.BigDecimal value) |
void |
setBigInteger(int propertyIndex,
java.math.BigInteger value) |
void |
setBigInteger(commonj.sdo.Property property,
java.math.BigInteger value) |
void |
setBigInteger(java.lang.String path,
java.math.BigInteger value) |
void |
setBoolean(int propertyIndex,
boolean value) |
void |
setBoolean(commonj.sdo.Property property,
boolean value) |
void |
setBoolean(java.lang.String path,
boolean value) |
void |
setByte(int propertyIndex,
byte value) |
void |
setByte(commonj.sdo.Property property,
byte value) |
void |
setByte(java.lang.String path,
byte value) |
void |
setBytes(int propertyIndex,
byte[] value) |
void |
setBytes(commonj.sdo.Property property,
byte[] value) |
void |
setBytes(java.lang.String path,
byte[] value) |
void |
setChar(int propertyIndex,
char value) |
void |
setChar(commonj.sdo.Property property,
char value) |
void |
setChar(java.lang.String path,
char value) |
void |
setDataGraph(commonj.sdo.DataGraph dataGraph) |
void |
setDataObject(int propertyIndex,
commonj.sdo.DataObject value) |
void |
setDataObject(commonj.sdo.Property property,
commonj.sdo.DataObject value) |
void |
setDataObject(java.lang.String path,
commonj.sdo.DataObject value) |
void |
setDate(int propertyIndex,
java.util.Date value) |
void |
setDate(commonj.sdo.Property property,
java.util.Date value) |
void |
setDate(java.lang.String path,
java.util.Date value) |
void |
setDouble(int propertyIndex,
double value) |
void |
setDouble(commonj.sdo.Property property,
double value) |
void |
setDouble(java.lang.String path,
double value) |
void |
setFloat(int propertyIndex,
float value) |
void |
setFloat(commonj.sdo.Property property,
float value) |
void |
setFloat(java.lang.String path,
float value) |
void |
setInt(int propertyIndex,
int value) |
void |
setInt(commonj.sdo.Property property,
int value) |
void |
setInt(java.lang.String path,
int value) |
void |
setInternal(SDOProperty property,
java.lang.Object value,
boolean updateSequence) |
void |
setList(int propertyIndex,
java.util.List value) |
void |
setList(commonj.sdo.Property property,
java.util.List value) |
void |
setList(java.lang.String path,
java.util.List value) |
void |
setLong(int propertyIndex,
long value) |
void |
setLong(commonj.sdo.Property property,
long value) |
void |
setLong(java.lang.String path,
long value) |
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.
|
void |
setShort(int propertyIndex,
short value) |
void |
setShort(commonj.sdo.Property property,
short value) |
void |
setShort(java.lang.String path,
short value) |
void |
setString(int propertyIndex,
java.lang.String value) |
void |
setString(commonj.sdo.Property property,
java.lang.String value) |
void |
setString(java.lang.String path,
java.lang.String value) |
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.
|
void |
unset(int propertyIndex) |
void |
unset(commonj.sdo.Property property) |
void |
unset(commonj.sdo.Property property,
boolean fromDelete,
boolean updateSequence)
INTERNAL:
Unset the specified property on this DataObject.
|
void |
unset(java.lang.String path) |
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
|
void |
updateContainment(commonj.sdo.Property property,
java.util.Collection values,
boolean updateSequence)
INTERNAL:
Update containment with flagged update sequence state
|
void |
updateContainment(commonj.sdo.Property property,
SDODataObject value)
INTERNAL:
update containment and the update the sequence value by default.
|
void |
updateContainment(commonj.sdo.Property property,
SDODataObject aDataObject,
boolean updateSequence)
INTERNAL:
Update containment on the dataObject with specified update sequence state
|
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.
|
public SDODataObject()
SDODataFactoryDelegate.create(Type) insteadpublic void _setHelperContext(commonj.sdo.helper.HelperContext aContext)
aContext - public java.lang.Object get(java.lang.String path)
get in interface commonj.sdo.DataObjectpublic void set(java.lang.String path,
java.lang.Object value)
throws java.lang.ClassCastException,
java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException
set in interface commonj.sdo.DataObjectjava.lang.ClassCastExceptionjava.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentExceptionpublic boolean isSet(java.lang.String path)
isSet in interface commonj.sdo.DataObjectpublic void unset(java.lang.String path)
unset in interface commonj.sdo.DataObjectpublic boolean getBoolean(java.lang.String path)
throws java.lang.ClassCastException
getBoolean in interface commonj.sdo.DataObjectjava.lang.ClassCastExceptionpublic byte getByte(java.lang.String path)
getByte in interface commonj.sdo.DataObjectpublic char getChar(java.lang.String path)
getChar in interface commonj.sdo.DataObjectpublic double getDouble(java.lang.String path)
getDouble in interface commonj.sdo.DataObjectpublic float getFloat(java.lang.String path)
getFloat in interface commonj.sdo.DataObjectpublic int getInt(java.lang.String path)
getInt in interface commonj.sdo.DataObjectpublic long getLong(java.lang.String path)
getLong in interface commonj.sdo.DataObjectpublic short getShort(java.lang.String path)
getShort in interface commonj.sdo.DataObjectpublic byte[] getBytes(java.lang.String path)
getBytes in interface commonj.sdo.DataObjectpublic java.math.BigDecimal getBigDecimal(java.lang.String path)
getBigDecimal in interface commonj.sdo.DataObjectpublic java.math.BigInteger getBigInteger(java.lang.String path)
getBigInteger in interface commonj.sdo.DataObjectpublic SDODataObject getDataObject(java.lang.String path) throws java.lang.ClassCastException
getDataObject in interface commonj.sdo.DataObjectjava.lang.ClassCastExceptionpublic java.util.Date getDate(java.lang.String path)
getDate in interface commonj.sdo.DataObjectpublic java.lang.String getString(java.lang.String path)
getString in interface commonj.sdo.DataObjectpublic java.util.List getList(java.lang.String path)
getList in interface commonj.sdo.DataObjectpublic void setBoolean(java.lang.String path,
boolean value)
setBoolean in interface commonj.sdo.DataObjectpublic void setByte(java.lang.String path,
byte value)
setByte in interface commonj.sdo.DataObjectpublic void setChar(java.lang.String path,
char value)
setChar in interface commonj.sdo.DataObjectpublic void setDouble(java.lang.String path,
double value)
setDouble in interface commonj.sdo.DataObjectpublic void setFloat(java.lang.String path,
float value)
setFloat in interface commonj.sdo.DataObjectpublic void setInt(java.lang.String path,
int value)
setInt in interface commonj.sdo.DataObjectpublic void setLong(java.lang.String path,
long value)
setLong in interface commonj.sdo.DataObjectpublic void setShort(java.lang.String path,
short value)
setShort in interface commonj.sdo.DataObjectpublic void setBytes(java.lang.String path,
byte[] value)
setBytes in interface commonj.sdo.DataObjectpublic void setBigDecimal(java.lang.String path,
java.math.BigDecimal value)
setBigDecimal in interface commonj.sdo.DataObjectpublic void setBigInteger(java.lang.String path,
java.math.BigInteger value)
setBigInteger in interface commonj.sdo.DataObjectpublic void setDataObject(java.lang.String path,
commonj.sdo.DataObject value)
setDataObject in interface commonj.sdo.DataObjectpublic void setDate(java.lang.String path,
java.util.Date value)
setDate in interface commonj.sdo.DataObjectpublic void setString(java.lang.String path,
java.lang.String value)
setString in interface commonj.sdo.DataObjectpublic void setList(java.lang.String path,
java.util.List value)
setList in interface commonj.sdo.DataObjectpublic java.lang.Object get(int propertyIndex)
throws java.lang.IllegalArgumentException
get in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic void set(int propertyIndex,
java.lang.Object value)
set in interface commonj.sdo.DataObjectpublic boolean isSet(int propertyIndex)
isSet in interface commonj.sdo.DataObjectpublic void unset(int propertyIndex)
unset in interface commonj.sdo.DataObjectpublic boolean getBoolean(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getBoolean in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic byte getByte(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getByte in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic char getChar(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getChar in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic double getDouble(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getDouble in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic float getFloat(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getFloat in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic int getInt(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getInt in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic long getLong(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getLong in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic short getShort(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getShort in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic byte[] getBytes(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getBytes in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic java.math.BigDecimal getBigDecimal(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getBigDecimal in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic java.math.BigInteger getBigInteger(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getBigInteger in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic SDODataObject getDataObject(int propertyIndex)
getDataObject in interface commonj.sdo.DataObjectpublic java.util.Date getDate(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getDate in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic java.lang.String getString(int propertyIndex)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getString in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic java.util.List getList(int propertyIndex)
getList in interface commonj.sdo.DataObject@Deprecated public commonj.sdo.Sequence getSequence(java.lang.String path)
getSequence in interface commonj.sdo.DataObject@Deprecated public commonj.sdo.Sequence getSequence(int propertyIndex)
getSequence in interface commonj.sdo.DataObject@Deprecated public commonj.sdo.Sequence getSequence(commonj.sdo.Property property)
getSequence in interface commonj.sdo.DataObjectpublic SDOSequence getSequence()
getSequence in interface commonj.sdo.DataObjectpublic void setBoolean(int propertyIndex,
boolean value)
setBoolean in interface commonj.sdo.DataObjectpublic void setByte(int propertyIndex,
byte value)
setByte in interface commonj.sdo.DataObjectpublic void setChar(int propertyIndex,
char value)
setChar in interface commonj.sdo.DataObjectpublic void setDouble(int propertyIndex,
double value)
setDouble in interface commonj.sdo.DataObjectpublic void setFloat(int propertyIndex,
float value)
setFloat in interface commonj.sdo.DataObjectpublic void setInt(int propertyIndex,
int value)
setInt in interface commonj.sdo.DataObjectpublic void setLong(int propertyIndex,
long value)
setLong in interface commonj.sdo.DataObjectpublic void setShort(int propertyIndex,
short value)
setShort in interface commonj.sdo.DataObjectpublic void setBytes(int propertyIndex,
byte[] value)
setBytes in interface commonj.sdo.DataObjectpublic void setBigDecimal(int propertyIndex,
java.math.BigDecimal value)
setBigDecimal in interface commonj.sdo.DataObjectpublic void setBigInteger(int propertyIndex,
java.math.BigInteger value)
setBigInteger in interface commonj.sdo.DataObjectpublic void setDataObject(int propertyIndex,
commonj.sdo.DataObject value)
setDataObject in interface commonj.sdo.DataObjectpublic void setDate(int propertyIndex,
java.util.Date value)
setDate in interface commonj.sdo.DataObjectpublic void setString(int propertyIndex,
java.lang.String value)
setString in interface commonj.sdo.DataObjectpublic void setList(int propertyIndex,
java.util.List value)
setList in interface commonj.sdo.DataObjectpublic java.lang.Object get(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
get in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic commonj.sdo.Property defineOpenContentProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException
name - value - java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentExceptionpublic commonj.sdo.Property defineOpenContentProperty(java.lang.String name,
java.lang.Object value,
commonj.sdo.Type sdotype)
throws java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentExceptionpublic void set(commonj.sdo.Property property,
java.lang.Object value)
throws java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException
set in interface commonj.sdo.DataObjectjava.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentExceptionpublic void setInternal(SDOProperty property, java.lang.Object value, boolean updateSequence) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentExceptionpublic void set(SDOProperty property, java.lang.Object value, boolean updateSequence) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
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.
property - value - updateSequence - java.lang.UnsupportedOperationExceptionjava.lang.IllegalArgumentExceptionpublic boolean isSet(commonj.sdo.Property property)
isSet in interface commonj.sdo.DataObjectpublic void unset(commonj.sdo.Property property)
unset in interface commonj.sdo.DataObjectpublic void unset(commonj.sdo.Property property,
boolean fromDelete,
boolean updateSequence)
property - fromDelete - updateSequence - public boolean getBoolean(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getBoolean in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic byte getByte(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException,
java.lang.ClassCastException
getByte in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic char getChar(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getChar in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic double getDouble(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getDouble in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic float getFloat(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getFloat in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic int getInt(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getInt in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic long getLong(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getLong in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic short getShort(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getShort in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic byte[] getBytes(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getBytes in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic java.math.BigDecimal getBigDecimal(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getBigDecimal in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic java.math.BigInteger getBigInteger(commonj.sdo.Property property)
throws java.lang.IllegalArgumentException
getBigInteger in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionpublic SDODataObject getDataObject(commonj.sdo.Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
getDataObject in interface commonj.sdo.DataObjectjava.lang.IllegalArgumentExceptionjava.lang.ClassCastExceptionpublic java.util.Date getDate(commonj.sdo.Property property)
getDate in interface commonj.sdo.DataObjectpublic java.lang.String getString(commonj.sdo.Property property)
getString in interface commonj.sdo.DataObjectpublic java.util.List getList(commonj.sdo.Property property)
getList in interface commonj.sdo.DataObjectpublic void setBoolean(commonj.sdo.Property property,
boolean value)
setBoolean in interface commonj.sdo.DataObjectpublic void setByte(commonj.sdo.Property property,
byte value)
setByte in interface commonj.sdo.DataObjectpublic void setChar(commonj.sdo.Property property,
char value)
setChar in interface commonj.sdo.DataObjectpublic void setDouble(commonj.sdo.Property property,
double value)
setDouble in interface commonj.sdo.DataObjectpublic void setFloat(commonj.sdo.Property property,
float value)
setFloat in interface commonj.sdo.DataObjectpublic void setInt(commonj.sdo.Property property,
int value)
setInt in interface commonj.sdo.DataObjectpublic void setLong(commonj.sdo.Property property,
long value)
setLong in interface commonj.sdo.DataObjectpublic void setShort(commonj.sdo.Property property,
short value)
setShort in interface commonj.sdo.DataObjectpublic void setBytes(commonj.sdo.Property property,
byte[] value)
setBytes in interface commonj.sdo.DataObjectpublic void setBigDecimal(commonj.sdo.Property property,
java.math.BigDecimal value)
setBigDecimal in interface commonj.sdo.DataObjectpublic void setBigInteger(commonj.sdo.Property property,
java.math.BigInteger value)
setBigInteger in interface commonj.sdo.DataObjectpublic void setDataObject(commonj.sdo.Property property,
commonj.sdo.DataObject value)
setDataObject in interface commonj.sdo.DataObjectpublic void setDate(commonj.sdo.Property property,
java.util.Date value)
setDate in interface commonj.sdo.DataObjectpublic void setString(commonj.sdo.Property property,
java.lang.String value)
setString in interface commonj.sdo.DataObjectpublic void setList(commonj.sdo.Property property,
java.util.List value)
setList in interface commonj.sdo.DataObjectpublic commonj.sdo.DataObject createDataObject(java.lang.String propertyName)
createDataObject in interface commonj.sdo.DataObjectpublic SDODataObject createDataObject(int propertyIndex)
createDataObject in interface commonj.sdo.DataObjectpublic SDODataObject createDataObject(commonj.sdo.Property aProperty)
createDataObject in interface commonj.sdo.DataObjectpublic SDODataObject createDataObject(java.lang.String propertyName, java.lang.String namespaceURI, java.lang.String typeName)
createDataObject in interface commonj.sdo.DataObjectpublic SDODataObject createDataObject(int propertyIndex, java.lang.String namespaceURI, java.lang.String typeName)
createDataObject in interface commonj.sdo.DataObjectpublic SDODataObject createDataObject(commonj.sdo.Property property, commonj.sdo.Type aType)
createDataObject in interface commonj.sdo.DataObjectpublic void detachOrDelete(boolean fromDelete)
fromDelete - (flag the action true = delete, false = detach)public void detach()
detach in interface commonj.sdo.DataObjectpublic void delete()
delete in interface commonj.sdo.DataObjectpublic SDODataObject getContainer()
getContainer in interface commonj.sdo.DataObjectpublic SDOProperty getContainmentProperty()
getContainmentProperty in interface commonj.sdo.DataObjectpublic commonj.sdo.DataGraph getDataGraph()
getDataGraph in interface commonj.sdo.DataObjectpublic void setDataGraph(commonj.sdo.DataGraph dataGraph)
public SDOType getType()
getType in interface commonj.sdo.DataObjectpublic java.util.List getInstanceProperties()
getInstanceProperties in interface commonj.sdo.DataObjectpublic SDOProperty getProperty(java.lang.String propertyName)
getProperty in interface commonj.sdo.DataObjectpublic SDOProperty getInstanceProperty(java.lang.String propertyName)
getInstanceProperty in interface commonj.sdo.DataObjectpublic SDOProperty getInstanceProperty(int propertyIndex) throws java.lang.IllegalArgumentException
propertyIndex - SDOExceptionjava.lang.IllegalArgumentExceptionpublic SDODataObject getRootObject()
getRootObject in interface commonj.sdo.DataObjectpublic SDOChangeSummary getChangeSummary()
getChangeSummary in interface commonj.sdo.DataObjectpublic void _setCreated(boolean created)
created - flag created's new value.public void _setModified(boolean modified)
modified - flag modified's new value.public void _setChangeSummary(SDOChangeSummary aChangeSummary)
aChangeSummary - the ChangeSummary taking this DataObject as root.public void undoChanges(boolean isCSRoot,
commonj.sdo.ChangeSummary cs,
SDODataObject origContainer,
java.lang.String origContainmentPropName)
isCSRoot - cs - origContainer - origContainmentPropName - public void resetChanges()
public void _setType(commonj.sdo.Type aType)
aType - public void _setCurrentValueStore(ValueStore aValueStore)
aValueStore - public ValueStore _getCurrentValueStore()
ValueStore interface require this accessor.public void _setContainer(commonj.sdo.DataObject aContainer)
aContainer - the DataObject which is the container of this DataObject.public java.util.Map _getOpenContentPropertiesAttributesMap()
public void _setOpenContentPropertiesAttributesMap(java.util.Map openAttributeProperties)
public void _setOpenContentPropertiesWithXMLRoots(java.util.List openContentPropertiesWithXMLRoots)
openContentPropertiesWithXMLRoots - public java.util.List _getOpenContentPropertiesWithXMLRoots()
public java.util.List _getOpenContentProperties()
public java.lang.Object convertObjectToValue(commonj.sdo.Property property,
java.lang.Class cls)
throws java.lang.ClassCastException,
java.lang.IllegalArgumentException
property - cls - java.lang.ClassCastExceptionjava.lang.IllegalArgumentExceptionpublic java.lang.Object convertObjectToValue(commonj.sdo.Property property,
int position,
java.lang.Class cls)
throws java.lang.ClassCastException,
java.lang.IllegalArgumentException
property - position - cls - java.lang.ClassCastExceptionjava.lang.IllegalArgumentExceptionpublic void _setContainmentPropertyName(java.lang.String aContainmentPropertyName)
aContainmentPropertyName - the name of the property on the containing DataObject which has this DataObject as a value.public java.lang.String _getContainmentPropertyName()
public boolean parentContains(java.lang.Object value)
value - public void updateContainment(commonj.sdo.Property property,
java.util.Collection values,
boolean updateSequence)
property - values - updateSequence - public void updateContainment(commonj.sdo.Property property,
java.util.Collection values)
property - values - public void updateContainment(commonj.sdo.Property property,
SDODataObject aDataObject,
boolean updateSequence)
property - aDataObject - updateSequence - public void updateContainment(commonj.sdo.Property property,
SDODataObject value)
property - value - public java.lang.Object writeReplace()
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.
SDOResolvablepublic java.lang.String _getPath()
public java.lang.Object getPropertyInternal(commonj.sdo.Property property)
property - public void setPropertyInternal(SDOProperty property, java.lang.Object value, boolean updateSequence)
property - value - updateSequence - (truncate call back from sequence when this function was called from sequence)public void addOpenContentProperty(commonj.sdo.Property property)
property - public void removeOpenContentProperty(commonj.sdo.Property property)
property - public boolean isSetInternal(commonj.sdo.Property property)
property - public java.lang.String _getSdoRef()
public void _setOpenContentPropertiesAttributes(java.util.List openContentPropertiesAttributes)
public java.util.List _getOpenContentPropertiesAttributes()
public java.util.List<Setting> getSettings()
getSettings in interface SequencedObjectpublic void _setSdoRef(java.lang.String newRef)