public class SDODataObject extends java.lang.Object implements 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(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(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(Type aType)
INTERNAL:
|
void |
addOpenContentProperty(Property property)
INTERNAL:
Add the open content property into all 3 data structures.
|
java.lang.Object |
convertObjectToValue(Property property,
java.lang.Class cls)
INTERNAL:
|
java.lang.Object |
convertObjectToValue(Property property,
int position,
java.lang.Class cls)
INTERNAL:
|
SDODataObject |
createDataObject(int propertyIndex)
Returns a new
data object contained by this object using the specified property,
which must be a containment property . |
SDODataObject |
createDataObject(int propertyIndex,
java.lang.String namespaceURI,
java.lang.String typeName)
Returns a new
data object contained by this object using the specified property,
which must be a containment property . |
SDODataObject |
createDataObject(Property aProperty)
Returns a new
data object contained by this object using the specified property,
which must be a containment property . |
SDODataObject |
createDataObject(Property property,
Type aType)
Returns a new
data object contained by this object using the specified property,
which must be of containment type . |
DataObject |
createDataObject(java.lang.String propertyName)
Returns a new
data object contained by this object using the specified property,
which must be a containment property . |
SDODataObject |
createDataObject(java.lang.String propertyName,
java.lang.String namespaceURI,
java.lang.String typeName)
Returns a new
data object contained by this object using the specified property,
which must be a containment property . |
Property |
defineOpenContentProperty(java.lang.String name,
java.lang.Object value)
INTERNAL:
Create a dynamic open content property if no property exists for (name).
|
Property |
defineOpenContentProperty(java.lang.String name,
java.lang.Object value,
Type sdotype) |
void |
delete()
Remove this object from its container and then unset all its non-
readOnly Properties. |
void |
detach()
Removes this DataObject from its container, if any.
|
void |
detachOrDelete(boolean fromDelete)
INTERNAL:
Recursively walk the tree and set oldSettings for a detached/deleted object.
|
java.lang.Object |
get(int propertyIndex)
Returns the value of the property at the specified index in
property list
of this object's type . |
java.lang.Object |
get(Property property)
Returns the value of the given property of this object.
|
java.lang.Object |
get(java.lang.String path)
Returns the value of a property of either this object or an object reachable from it, as identified by the
specified path.
|
java.math.BigDecimal |
getBigDecimal(int propertyIndex)
Returns the value of a
BigDecimal property identified by the specified property index. |
java.math.BigDecimal |
getBigDecimal(Property property)
Returns the value of the specified
BigDecimal property. |
java.math.BigDecimal |
getBigDecimal(java.lang.String path)
Returns the value of a
BigDecimal property identified by the specified path. |
java.math.BigInteger |
getBigInteger(int propertyIndex)
Returns the value of a
BigInteger property identified by the specified property index. |
java.math.BigInteger |
getBigInteger(Property property)
Returns the value of the specified
BigInteger property. |
java.math.BigInteger |
getBigInteger(java.lang.String path)
Returns the value of a
BigInteger property identified by the specified path. |
boolean |
getBoolean(int propertyIndex)
Returns the value of a
boolean property identified by the specified property index. |
boolean |
getBoolean(Property property)
Returns the value of the specified
boolean property. |
boolean |
getBoolean(java.lang.String path)
Returns the value of a
boolean property identified by the specified path. |
byte |
getByte(int propertyIndex)
Returns the value of a
byte property identified by the specified property index. |
byte |
getByte(Property property)
Returns the value of the specified
byte property. |
byte |
getByte(java.lang.String path)
Returns the value of a
byte property identified by the specified path. |
byte[] |
getBytes(int propertyIndex)
Returns the value of a
byte[] property identified by the specified property index. |
byte[] |
getBytes(Property property)
Returns the value of the specified
byte[] property. |
byte[] |
getBytes(java.lang.String path)
Returns the value of a
byte[] property identified by the specified path. |
SDOChangeSummary |
getChangeSummary()
Returns the ChangeSummary with scope covering this dataObject, or null
if there is no ChangeSummary.
|
char |
getChar(int propertyIndex)
Returns the value of a
char property identified by the specified property index. |
char |
getChar(Property property)
Returns the value of the specified
char property. |
char |
getChar(java.lang.String path)
Returns the value of a
char property identified by the specified path. |
SDODataObject |
getContainer()
Returns the containing
data object
or null if there is no container. |
SDOProperty |
getContainmentProperty()
Return the Property of the
data object containing this data object
or null if there is no container. |
DataGraph |
getDataGraph()
Returns the
data graph for this object or null if there isn't one. |
SDODataObject |
getDataObject(int propertyIndex)
Returns the value of a
DataObject property identified by the specified property index. |
SDODataObject |
getDataObject(Property property)
Returns the value of the specified
DataObject property. |
SDODataObject |
getDataObject(java.lang.String path)
Returns the value of a
DataObject property identified by the specified path. |
java.util.Date |
getDate(int propertyIndex)
Returns the value of a
Date property identified by the specified property index. |
java.util.Date |
getDate(Property property)
Returns the value of the specified
Date property. |
java.util.Date |
getDate(java.lang.String path)
Returns the value of a
Date property identified by the specified path. |
double |
getDouble(int propertyIndex)
Returns the value of a
double property identified by the specified property index. |
double |
getDouble(Property property)
Returns the value of the specified
double property. |
double |
getDouble(java.lang.String path)
Returns the value of a
double property identified by the specified path. |
float |
getFloat(int propertyIndex)
Returns the value of a
float property identified by the specified property index. |
float |
getFloat(Property property)
Returns the value of the specified
float property. |
float |
getFloat(java.lang.String path)
Returns the value of a
float property identified by the specified path. |
java.util.List |
getInstanceProperties()
Returns a read-only List of the Properties currently used in this DataObject.
|
SDOProperty |
getInstanceProperty(int propertyIndex)
INTERNAL:
|
SDOProperty |
getInstanceProperty(java.lang.String propertyName)
Returns the named Property from the current instance properties,
or null if not found.
|
int |
getInt(int propertyIndex)
Returns the value of a
int property identified by the specified property index. |
int |
getInt(Property property)
Returns the value of the specified
int property. |
int |
getInt(java.lang.String path)
Returns the value of a
int property identified by the specified path. |
java.util.List |
getList(int propertyIndex)
Returns the value of a
List property identified by the specified property index. |
java.util.List |
getList(Property property)
Returns the value of the specified
List property. |
java.util.List |
getList(java.lang.String path)
Returns the value of a
List property identified by the specified path. |
long |
getLong(int propertyIndex)
Returns the value of a
long property identified by the specified property index. |
long |
getLong(Property property)
Returns the value of the specified
long property. |
long |
getLong(java.lang.String path)
Returns the value of a
long property identified by the specified path. |
SDOProperty |
getProperty(java.lang.String propertyName) |
java.lang.Object |
getPropertyInternal(Property property)
INTERNAL:
Get the value of the property (open-content or declared)..
|
SDODataObject |
getRootObject()
Returns the root
data object . |
SDOSequence |
getSequence()
Returns the
Sequence for this DataObject. |
Sequence |
getSequence(int propertyIndex)
Deprecated.
in SDO 2.1.0.
|
Sequence |
getSequence(Property property)
Deprecated.
in SDO 2.1.0.
|
Sequence |
getSequence(java.lang.String path)
Deprecated.
in SDO 2.1.0.
|
java.util.List<Setting> |
getSettings() |
short |
getShort(int propertyIndex)
Returns the value of a
short property identified by the specified property index. |
short |
getShort(Property property)
Returns the value of the specified
short property. |
short |
getShort(java.lang.String path)
Returns the value of a
short property identified by the specified path. |
java.lang.String |
getString(int propertyIndex)
Returns the value of a
String property identified by the specified property index. |
java.lang.String |
getString(Property property)
Returns the value of the specified
String property. |
java.lang.String |
getString(java.lang.String path)
Returns the value of a
String property identified by the specified path. |
SDOType |
getType()
Returns the data object's type.
|
boolean |
isSet(int propertyIndex)
Returns whether the the property at the specified index in
property list of this object's
type , is considered to be set. |
boolean |
isSet(Property property)
Returns whether the property of the object is considered to be set.
|
boolean |
isSet(java.lang.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.
|
boolean |
isSetInternal(Property property)
INTERNAL:
Return whether the property (open-content or declared) is set?
|
boolean |
parentContains(java.lang.Object value)
INTERNAL:
|
void |
removeOpenContentProperty(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)
Sets the property at the specified index in
property list of this object's
type , to the specified value. |
void |
set(Property property,
java.lang.Object value)
Sets the value of the given property of the object to the new 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)
Sets a property of either this object or an object reachable from it, as identified by the specified path,
to the specified value.
|
void |
setBigDecimal(int propertyIndex,
java.math.BigDecimal value)
Sets the value of a
BigDecimal property identified by the specified property index, to the specified value. |
void |
setBigDecimal(Property property,
java.math.BigDecimal value)
Sets the value of the specified
BigDecimal property, to the specified value. |
void |
setBigDecimal(java.lang.String path,
java.math.BigDecimal value)
Sets the value of a
BigDecimal property identified by the specified path, to the specified value. |
void |
setBigInteger(int propertyIndex,
java.math.BigInteger value)
Sets the value of a
BigInteger property identified by the specified property index, to the specified value. |
void |
setBigInteger(Property property,
java.math.BigInteger value)
Sets the value of the specified
BigInteger property, to the specified value. |
void |
setBigInteger(java.lang.String path,
java.math.BigInteger value)
Sets the value of a
BigInteger property identified by the specified path, to the specified value. |
void |
setBoolean(int propertyIndex,
boolean value)
Sets the value of a
boolean property identified by the specified property index, to the specified value. |
void |
setBoolean(Property property,
boolean value)
Sets the value of the specified
boolean property, to the specified value. |
void |
setBoolean(java.lang.String path,
boolean value)
Sets the value of a
boolean property identified by the specified path, to the specified value. |
void |
setByte(int propertyIndex,
byte value)
Sets the value of a
byte property identified by the specified property index, to the specified value. |
void |
setByte(Property property,
byte value)
Sets the value of the specified
byte property, to the specified value. |
void |
setByte(java.lang.String path,
byte value)
Sets the value of a
byte property identified by the specified path, to the specified value. |
void |
setBytes(int propertyIndex,
byte[] value)
Sets the value of a
byte[] property identified by the specified property index, to the specified value. |
void |
setBytes(Property property,
byte[] value)
Sets the value of the specified
byte[] property, to the specified value. |
void |
setBytes(java.lang.String path,
byte[] value)
Sets the value of a
byte[] property identified by the specified path, to the specified value. |
void |
setChar(int propertyIndex,
char value)
Sets the value of a
char property identified by the specified property index, to the specified value. |
void |
setChar(Property property,
char value)
Sets the value of the specified
char property, to the specified value. |
void |
setChar(java.lang.String path,
char value)
Sets the value of a
char property identified by the specified path, to the specified value. |
void |
setDataGraph(DataGraph dataGraph) |
void |
setDataObject(int propertyIndex,
DataObject value)
Sets the value of a
DataObject property identified by the specified property index, to the specified value. |
void |
setDataObject(Property property,
DataObject value)
Sets the value of the specified
DataObject property, to the specified value. |
void |
setDataObject(java.lang.String path,
DataObject value)
Sets the value of a
DataObject property identified by the specified path, to the specified value. |
void |
setDate(int propertyIndex,
java.util.Date value)
Sets the value of a
Date property identified by the specified property index, to the specified value. |
void |
setDate(Property property,
java.util.Date value)
Sets the value of the specified
Date property, to the specified value. |
void |
setDate(java.lang.String path,
java.util.Date value)
Sets the value of a
Date property identified by the specified path, to the specified value. |
void |
setDouble(int propertyIndex,
double value)
Sets the value of a
double property identified by the specified property index, to the specified value. |
void |
setDouble(Property property,
double value)
Sets the value of the specified
double property, to the specified value. |
void |
setDouble(java.lang.String path,
double value)
Sets the value of a
double property identified by the specified path, to the specified value. |
void |
setFloat(int propertyIndex,
float value)
Sets the value of a
float property identified by the specified property index, to the specified value. |
void |
setFloat(Property property,
float value)
Sets the value of the specified
float property, to the specified value. |
void |
setFloat(java.lang.String path,
float value)
Sets the value of a
float property identified by the specified path, to the specified value. |
void |
setInt(int propertyIndex,
int value)
Sets the value of a
int property identified by the specified property index, to the specified value. |
void |
setInt(Property property,
int value)
Sets the value of the specified
int property, to the specified value. |
void |
setInt(java.lang.String path,
int value)
Sets the value of a
int property identified by the specified path, to the specified value. |
void |
setInternal(SDOProperty property,
java.lang.Object value,
boolean updateSequence) |
void |
setList(int propertyIndex,
java.util.List value)
Sets the value of a
List property identified by the specified property index, to the specified value. |
void |
setList(Property property,
java.util.List value)
Sets the value of the specified
List property, to the specified value. |
void |
setList(java.lang.String path,
java.util.List value)
Sets the value of a
List property identified by the specified path, to the specified value. |
void |
setLong(int propertyIndex,
long value)
Sets the value of a
long property identified by the specified property index, to the specified value. |
void |
setLong(Property property,
long value)
Sets the value of the specified
long property, to the specified value. |
void |
setLong(java.lang.String path,
long value)
Sets the value of a
long property identified by the specified path, to the specified 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)
Sets the value of a
short property identified by the specified property index, to the specified value. |
void |
setShort(Property property,
short value)
Sets the value of the specified
short property, to the specified value. |
void |
setShort(java.lang.String path,
short value)
Sets the value of a
short property identified by the specified path, to the specified value. |
void |
setString(int propertyIndex,
java.lang.String value)
Sets the value of a
String property identified by the specified property index, to the specified value. |
void |
setString(Property property,
java.lang.String value)
Sets the value of the specified
String property, to the specified value. |
void |
setString(java.lang.String path,
java.lang.String value)
Sets the value of a
String property identified by the specified path, to the specified value. |
void |
undoChanges(boolean isCSRoot,
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)
Unsets the property at the specified index in
property list of this object's type . |
void |
unset(Property property)
Unsets the property of the object.
|
void |
unset(Property property,
boolean fromDelete,
boolean updateSequence)
INTERNAL:
Unset the specified property on this DataObject.
|
void |
unset(java.lang.String path)
Unsets a property of either this object or an object reachable from it, as identified by the specified path.
|
void |
updateContainment(Property property,
java.util.Collection values)
INTERNAL:
Update containment on the specified collection of values and default to true = update the sequence
|
void |
updateContainment(Property property,
java.util.Collection values,
boolean updateSequence)
INTERNAL:
Update containment with flagged update sequence state
|
void |
updateContainment(Property property,
SDODataObject value)
INTERNAL:
update containment and the update the sequence value by default.
|
void |
updateContainment(Property property,
SDODataObject aDataObject,
boolean updateSequence)
INTERNAL:
Update containment on the dataObject with specified update sequence 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()
#SDODataObject(HelperContext)
insteadpublic void _setHelperContext(HelperContext aContext)
aContext
- public java.lang.Object get(java.lang.String path)
DataObject
get
in interface DataObject
path
- the path to a valid object and property.DataObject.get(Property)
public void set(java.lang.String path, java.lang.Object value) throws java.lang.ClassCastException, java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
DataObject
set
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.java.lang.ClassCastException
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
DataObject.set(Property, Object)
public boolean isSet(java.lang.String path)
DataObject
isSet
in interface DataObject
path
- the path to a valid object and property.DataObject.isSet(Property)
public void unset(java.lang.String path)
DataObject
unset
in interface DataObject
path
- the path to a valid object and property.DataObject.unset(Property)
public boolean getBoolean(java.lang.String path) throws java.lang.ClassCastException
DataObject
boolean
property identified by the specified path.getBoolean
in interface DataObject
path
- the path to a valid object and property.boolean
value of the specified property.java.lang.ClassCastException
DataObject.get(String)
public byte getByte(java.lang.String path)
DataObject
byte
property identified by the specified path.getByte
in interface DataObject
path
- the path to a valid object and property.byte
value of the specified property.DataObject.get(String)
public char getChar(java.lang.String path)
DataObject
char
property identified by the specified path.getChar
in interface DataObject
path
- the path to a valid object and property.char
value of the specified property.DataObject.get(String)
public double getDouble(java.lang.String path)
DataObject
double
property identified by the specified path.getDouble
in interface DataObject
path
- the path to a valid object and property.double
value of the specified property.DataObject.get(String)
public float getFloat(java.lang.String path)
DataObject
float
property identified by the specified path.getFloat
in interface DataObject
path
- the path to a valid object and property.float
value of the specified property.DataObject.get(String)
public int getInt(java.lang.String path)
DataObject
int
property identified by the specified path.getInt
in interface DataObject
path
- the path to a valid object and property.int
value of the specified property.DataObject.get(String)
public long getLong(java.lang.String path)
DataObject
long
property identified by the specified path.getLong
in interface DataObject
path
- the path to a valid object and property.long
value of the specified property.DataObject.get(String)
public short getShort(java.lang.String path)
DataObject
short
property identified by the specified path.getShort
in interface DataObject
path
- the path to a valid object and property.short
value of the specified property.DataObject.get(String)
public byte[] getBytes(java.lang.String path)
DataObject
byte[]
property identified by the specified path.getBytes
in interface DataObject
path
- the path to a valid object and property.byte[]
value of the specified property.DataObject.get(String)
public java.math.BigDecimal getBigDecimal(java.lang.String path)
DataObject
BigDecimal
property identified by the specified path.getBigDecimal
in interface DataObject
path
- the path to a valid object and property.BigDecimal
value of the specified property.DataObject.get(String)
public java.math.BigInteger getBigInteger(java.lang.String path)
DataObject
BigInteger
property identified by the specified path.getBigInteger
in interface DataObject
path
- the path to a valid object and property.BigInteger
value of the specified property.DataObject.get(String)
public SDODataObject getDataObject(java.lang.String path) throws java.lang.ClassCastException
DataObject
DataObject
property identified by the specified path.getDataObject
in interface DataObject
path
- the path to a valid object and property.DataObject
value of the specified property.java.lang.ClassCastException
DataObject.get(String)
public java.util.Date getDate(java.lang.String path)
DataObject
Date
property identified by the specified path.getDate
in interface DataObject
path
- the path to a valid object and property.Date
value of the specified property.DataObject.get(String)
public java.lang.String getString(java.lang.String path)
DataObject
String
property identified by the specified path.getString
in interface DataObject
path
- the path to a valid object and property.String
value of the specified property.DataObject.get(String)
public java.util.List getList(java.lang.String path)
DataObject
List
property identified by the specified path.getList
in interface DataObject
path
- the path to a valid object and property.List
value of the specified property.DataObject.get(String)
public void setBoolean(java.lang.String path, boolean value)
DataObject
boolean
property identified by the specified path, to the specified value.setBoolean
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setByte(java.lang.String path, byte value)
DataObject
byte
property identified by the specified path, to the specified value.setByte
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setChar(java.lang.String path, char value)
DataObject
char
property identified by the specified path, to the specified value.setChar
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setDouble(java.lang.String path, double value)
DataObject
double
property identified by the specified path, to the specified value.setDouble
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setFloat(java.lang.String path, float value)
DataObject
float
property identified by the specified path, to the specified value.setFloat
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setInt(java.lang.String path, int value)
DataObject
int
property identified by the specified path, to the specified value.setInt
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setLong(java.lang.String path, long value)
DataObject
long
property identified by the specified path, to the specified value.setLong
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setShort(java.lang.String path, short value)
DataObject
short
property identified by the specified path, to the specified value.setShort
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setBytes(java.lang.String path, byte[] value)
DataObject
byte[]
property identified by the specified path, to the specified value.setBytes
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setBigDecimal(java.lang.String path, java.math.BigDecimal value)
DataObject
BigDecimal
property identified by the specified path, to the specified value.setBigDecimal
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setBigInteger(java.lang.String path, java.math.BigInteger value)
DataObject
BigInteger
property identified by the specified path, to the specified value.setBigInteger
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setDataObject(java.lang.String path, DataObject value)
DataObject
DataObject
property identified by the specified path, to the specified value.setDataObject
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setDate(java.lang.String path, java.util.Date value)
DataObject
Date
property identified by the specified path, to the specified value.setDate
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setString(java.lang.String path, java.lang.String value)
DataObject
String
property identified by the specified path, to the specified value.setString
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
public void setList(java.lang.String path, java.util.List value)
DataObject
List
property identified by the specified path, to the specified value.setList
in interface DataObject
path
- the path to a valid object and property.value
- the new value for the property.DataObject.set(String, Object)
,
DataObject.setList(Property, List)
public java.lang.Object get(int propertyIndex) throws java.lang.IllegalArgumentException
DataObject
property list
of this object's type
.get
in interface DataObject
propertyIndex
- the index of the property.java.lang.IllegalArgumentException
DataObject.get(Property)
public void set(int propertyIndex, java.lang.Object value)
DataObject
property list
of this object's
type
, to the specified value.set
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(Property, Object)
public boolean isSet(int propertyIndex)
DataObject
property list
of this object's
type
, is considered to be set.isSet
in interface DataObject
propertyIndex
- the index of the property.DataObject.isSet(Property)
public void unset(int propertyIndex)
DataObject
property list
of this object's type
.unset
in interface DataObject
propertyIndex
- the index of the property.DataObject.unset(Property)
public boolean getBoolean(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
boolean
property identified by the specified property index.getBoolean
in interface DataObject
propertyIndex
- the index of the property.boolean
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public byte getByte(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
byte
property identified by the specified property index.getByte
in interface DataObject
propertyIndex
- the index of the property.byte
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public char getChar(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
char
property identified by the specified property index.getChar
in interface DataObject
propertyIndex
- the index of the property.char
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public double getDouble(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
double
property identified by the specified property index.getDouble
in interface DataObject
propertyIndex
- the index of the property.double
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public float getFloat(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
float
property identified by the specified property index.getFloat
in interface DataObject
propertyIndex
- the index of the property.float
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public int getInt(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
int
property identified by the specified property index.getInt
in interface DataObject
propertyIndex
- the index of the property.int
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public long getLong(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
long
property identified by the specified property index.getLong
in interface DataObject
propertyIndex
- the index of the property.long
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public short getShort(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
short
property identified by the specified property index.getShort
in interface DataObject
propertyIndex
- the index of the property.short
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public byte[] getBytes(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
byte[]
property identified by the specified property index.getBytes
in interface DataObject
propertyIndex
- the index of the property.byte[]
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public java.math.BigDecimal getBigDecimal(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
BigDecimal
property identified by the specified property index.getBigDecimal
in interface DataObject
propertyIndex
- the index of the property.BigDecimal
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public java.math.BigInteger getBigInteger(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
BigInteger
property identified by the specified property index.getBigInteger
in interface DataObject
propertyIndex
- the index of the property.BigInteger
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public SDODataObject getDataObject(int propertyIndex)
DataObject
DataObject
property identified by the specified property index.getDataObject
in interface DataObject
propertyIndex
- the index of the property.DataObject
value of the specified property.DataObject.get(int)
public java.util.Date getDate(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
Date
property identified by the specified property index.getDate
in interface DataObject
propertyIndex
- the index of the property.Date
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public java.lang.String getString(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
String
property identified by the specified property index.getString
in interface DataObject
propertyIndex
- the index of the property.String
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(int)
public java.util.List getList(int propertyIndex)
DataObject
List
property identified by the specified property index.getList
in interface DataObject
propertyIndex
- the index of the property.List
value of the specified property.DataObject.get(int)
public Sequence getSequence(java.lang.String path)
getSequence
in interface DataObject
path
- the path to a valid object and property.Sequence
value of the specified property.Returns the value of a Sequence
property identified by the specified path.
An implementation may throw an UnsupportedOperationException.
,
DataObject.get(String)
public Sequence getSequence(int propertyIndex)
getSequence
in interface DataObject
propertyIndex
- the index of the property.Sequence
value of the specified property.Returns the value of a Sequence
property identified by the specified property index.
An implementation may throw an UnsupportedOperationException.
,
DataObject.get(int)
public Sequence getSequence(Property property)
getSequence
in interface DataObject
property
- the property to get.Sequence
value of the specified property.Returns the value of the specified Sequence
property.
An implementation may throw an UnsupportedOperationException.
,
DataObject.get(Property)
public SDOSequence getSequence()
DataObject
Sequence
for this DataObject.
When getType().isSequencedType() == true,
the Sequence of a DataObject corresponds to the
XML elements representing the values of its Properties.
Updates through DataObject and the Lists or Sequences returned
from DataObject operate on the same data.
When getType().isSequencedType() == false, null is returned.getSequence
in interface DataObject
Sequence
or null.public void setBoolean(int propertyIndex, boolean value)
DataObject
boolean
property identified by the specified property index, to the specified value.setBoolean
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setByte(int propertyIndex, byte value)
DataObject
byte
property identified by the specified property index, to the specified value.setByte
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setChar(int propertyIndex, char value)
DataObject
char
property identified by the specified property index, to the specified value.setChar
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setDouble(int propertyIndex, double value)
DataObject
double
property identified by the specified property index, to the specified value.setDouble
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setFloat(int propertyIndex, float value)
DataObject
float
property identified by the specified property index, to the specified value.setFloat
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setInt(int propertyIndex, int value)
DataObject
int
property identified by the specified property index, to the specified value.setInt
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setLong(int propertyIndex, long value)
DataObject
long
property identified by the specified property index, to the specified value.setLong
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setShort(int propertyIndex, short value)
DataObject
short
property identified by the specified property index, to the specified value.setShort
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setBytes(int propertyIndex, byte[] value)
DataObject
byte[]
property identified by the specified property index, to the specified value.setBytes
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setBigDecimal(int propertyIndex, java.math.BigDecimal value)
DataObject
BigDecimal
property identified by the specified property index, to the specified value.setBigDecimal
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setBigInteger(int propertyIndex, java.math.BigInteger value)
DataObject
BigInteger
property identified by the specified property index, to the specified value.setBigInteger
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setDataObject(int propertyIndex, DataObject value)
DataObject
DataObject
property identified by the specified property index, to the specified value.setDataObject
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setDate(int propertyIndex, java.util.Date value)
DataObject
Date
property identified by the specified property index, to the specified value.setDate
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setString(int propertyIndex, java.lang.String value)
DataObject
String
property identified by the specified property index, to the specified value.setString
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
public void setList(int propertyIndex, java.util.List value)
DataObject
List
property identified by the specified property index, to the specified value.setList
in interface DataObject
propertyIndex
- the index of the property.value
- the new value for the property.DataObject.set(int, Object)
,
DataObject.setList(Property, List)
public java.lang.Object get(Property property) throws java.lang.IllegalArgumentException
DataObject
If the property is many-valued
,
the result will be a List
and each object in the List will be an instance of
the property's type
.
Otherwise the result will directly be an instance of the property's type.
get
in interface DataObject
property
- the property of the value to fetch.java.lang.IllegalArgumentException
DataObject.set(Property, Object)
,
DataObject.unset(Property)
,
DataObject.isSet(Property)
public Property defineOpenContentProperty(java.lang.String name, java.lang.Object value) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
name
- value
- java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
public Property defineOpenContentProperty(java.lang.String name, java.lang.Object value, Type sdotype) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
public void set(Property property, java.lang.Object value) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
DataObject
If the property is many-valued
,
the new value must be a List
and each object in that list must be an instance of
the property's type
;
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.
set
in interface DataObject
property
- the property of the value to set.value
- the new value for the property.java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
DataObject.unset(Property)
,
DataObject.isSet(Property)
,
DataObject.get(Property)
public void setInternal(SDOProperty property, java.lang.Object value, boolean updateSequence) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
public 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.UnsupportedOperationException
java.lang.IllegalArgumentException
public boolean isSet(Property property)
DataObject
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.
isSet
in interface DataObject
property
- the property in question.DataObject.set(Property, Object)
,
DataObject.unset(Property)
,
DataObject.get(Property)
public void unset(Property property)
DataObject
If the property is many-valued
,
the value must be an List
and that list is cleared.
Otherwise,
the value of the property of the object
is set to the property's default value
.
The property will no longer be considered set
.
unset
in interface DataObject
property
- the property in question.DataObject.isSet(Property)
,
DataObject.set(Property, Object)
,
DataObject.get(Property)
public void unset(Property property, boolean fromDelete, boolean updateSequence)
property
- fromDelete
- updateSequence
- public boolean getBoolean(Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
boolean
property.getBoolean
in interface DataObject
property
- the property to get.boolean
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(Property)
public byte getByte(Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
byte
property.getByte
in interface DataObject
property
- the property to get.byte
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(Property)
public char getChar(Property property) throws java.lang.IllegalArgumentException
DataObject
char
property.getChar
in interface DataObject
property
- the property to get.char
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public double getDouble(Property property) throws java.lang.IllegalArgumentException
DataObject
double
property.getDouble
in interface DataObject
property
- the property to get.double
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public float getFloat(Property property) throws java.lang.IllegalArgumentException
DataObject
float
property.getFloat
in interface DataObject
property
- the property to get.float
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public int getInt(Property property) throws java.lang.IllegalArgumentException
DataObject
int
property.getInt
in interface DataObject
property
- the property to get.int
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public long getLong(Property property) throws java.lang.IllegalArgumentException
DataObject
long
property.getLong
in interface DataObject
property
- the property to get.long
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public short getShort(Property property) throws java.lang.IllegalArgumentException
DataObject
short
property.getShort
in interface DataObject
property
- the property to get.short
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public byte[] getBytes(Property property) throws java.lang.IllegalArgumentException
DataObject
byte[]
property.getBytes
in interface DataObject
property
- the property to get.byte[]
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public java.math.BigDecimal getBigDecimal(Property property) throws java.lang.IllegalArgumentException
DataObject
BigDecimal
property.getBigDecimal
in interface DataObject
property
- the property to get.BigDecimal
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public java.math.BigInteger getBigInteger(Property property) throws java.lang.IllegalArgumentException
DataObject
BigInteger
property.getBigInteger
in interface DataObject
property
- the property to get.BigInteger
value of the specified property.java.lang.IllegalArgumentException
DataObject.get(Property)
public SDODataObject getDataObject(Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
DataObject
DataObject
property.getDataObject
in interface DataObject
property
- the property to get.DataObject
value of the specified property.java.lang.IllegalArgumentException
java.lang.ClassCastException
DataObject.get(Property)
public java.util.Date getDate(Property property)
DataObject
Date
property.getDate
in interface DataObject
property
- the property to get.Date
value of the specified property.DataObject.get(Property)
public java.lang.String getString(Property property)
DataObject
String
property.getString
in interface DataObject
property
- the property to get.String
value of the specified property.DataObject.get(Property)
public java.util.List getList(Property property)
DataObject
List
property.
The List returned contains the current values.
Updates through the List interface operate on the current values of the DataObject.
Each access returns the same List object.getList
in interface DataObject
property
- the property to get.List
value of the specified property.DataObject.get(Property)
public void setBoolean(Property property, boolean value)
DataObject
boolean
property, to the specified value.setBoolean
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setByte(Property property, byte value)
DataObject
byte
property, to the specified value.setByte
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setChar(Property property, char value)
DataObject
char
property, to the specified value.setChar
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setDouble(Property property, double value)
DataObject
double
property, to the specified value.setDouble
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setFloat(Property property, float value)
DataObject
float
property, to the specified value.setFloat
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setInt(Property property, int value)
DataObject
int
property, to the specified value.setInt
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setLong(Property property, long value)
DataObject
long
property, to the specified value.setLong
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setShort(Property property, short value)
DataObject
short
property, to the specified value.setShort
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setBytes(Property property, byte[] value)
DataObject
byte[]
property, to the specified value.setBytes
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setBigDecimal(Property property, java.math.BigDecimal value)
DataObject
BigDecimal
property, to the specified value.setBigDecimal
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setBigInteger(Property property, java.math.BigInteger value)
DataObject
BigInteger
property, to the specified value.setBigInteger
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setDataObject(Property property, DataObject value)
DataObject
DataObject
property, to the specified value.setDataObject
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setDate(Property property, java.util.Date value)
DataObject
Date
property, to the specified value.setDate
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setString(Property property, java.lang.String value)
DataObject
String
property, to the specified value.setString
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public void setList(Property property, java.util.List value)
DataObject
List
property, to the specified value.
The new value must be a List
and each object in that list must be an instance of
the property's type
;
the existing contents are cleared and the contents of the new value are added.
setList
in interface DataObject
property
- the property to set.value
- the new value for the property.DataObject.set(Property, Object)
public DataObject createDataObject(java.lang.String propertyName)
DataObject
data object
contained by this object using the specified property,
which must be a containment property
.
The type of the created object is the declared type
of the specified property.createDataObject
in interface DataObject
propertyName
- the name of the specified containment property.DataObject.createDataObject(String, String, String)
public SDODataObject createDataObject(int propertyIndex)
DataObject
data object
contained by this object using the specified property,
which must be a containment property
.
The type of the created object is the declared type
of the specified property.createDataObject
in interface DataObject
propertyIndex
- the index of the specified containment property.DataObject.createDataObject(int, String, String)
public SDODataObject createDataObject(Property aProperty)
DataObject
data object
contained by this object using the specified property,
which must be a containment property
.
The type of the created object is the declared type
of the specified property.createDataObject
in interface DataObject
aProperty
- the specified containment property.DataObject.createDataObject(Property, Type)
public SDODataObject createDataObject(java.lang.String propertyName, java.lang.String namespaceURI, java.lang.String typeName)
DataObject
data object
contained by this object using the specified property,
which must be a containment 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.createDataObject
in interface DataObject
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.DataObject.createDataObject(String)
,
TypeHelper.getType(java.lang.String, java.lang.String)
public SDODataObject createDataObject(int propertyIndex, java.lang.String namespaceURI, java.lang.String typeName)
DataObject
data object
contained by this object using the specified property,
which must be a containment 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.createDataObject
in interface DataObject
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.DataObject.createDataObject(int)
,
TypeHelper.getType(java.lang.String, java.lang.String)
public SDODataObject createDataObject(Property property, Type aType)
DataObject
data object
contained by this object using the specified property,
which must be of containment type
.
The type of the created object is specified by the type argument,
which must be a compatible target for the speicifed property.createDataObject
in interface DataObject
property
- a containment property of this object.aType
- the type of object to be created.DataObject.createDataObject(int)
public void detachOrDelete(boolean fromDelete)
fromDelete
- (flag the action true = delete, false = detach)public void detach()
DataObject
detach
in interface DataObject
public void delete()
DataObject
readOnly
Properties.
If this object is contained by a readOnly
containment property
, its non-readOnly
Properties will be unset but the object will not be removed from its container.
All DataObjects recursively contained by containment Properties
will also be deleted.delete
in interface DataObject
public SDODataObject getContainer()
DataObject
data object
or null
if there is no container.getContainer
in interface DataObject
null
.public SDOProperty getContainmentProperty()
DataObject
data object
containing this data object
or null
if there is no container.getContainmentProperty
in interface DataObject
public DataGraph getDataGraph()
DataObject
data graph
for this object or null
if there isn't one.getDataGraph
in interface DataObject
null
.public void setDataGraph(DataGraph dataGraph)
public SDOType getType()
DataObject
The type defines the Properties available for reflective access.
getType
in interface DataObject
public java.util.List getInstanceProperties()
DataObject
getInstanceProperties
in interface DataObject
public SDOProperty getProperty(java.lang.String propertyName)
getProperty
in interface DataObject
public SDOProperty getInstanceProperty(java.lang.String propertyName)
DataObject
getInstanceProperty
in interface DataObject
propertyName
- the name of the Propertypublic SDOProperty getInstanceProperty(int propertyIndex) throws java.lang.IllegalArgumentException
propertyIndex
- SDOException
java.lang.IllegalArgumentException
public SDODataObject getRootObject()
DataObject
data object
.getRootObject
in interface DataObject
public SDOChangeSummary getChangeSummary()
DataObject
getChangeSummary
in interface DataObject
public 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, ChangeSummary cs, SDODataObject origContainer, java.lang.String origContainmentPropName)
isCSRoot
- cs
- origContainer
- origContainmentPropName
- public void resetChanges()
public void _setType(Type aType)
aType
- public void _setCurrentValueStore(ValueStore aValueStore)
currentValueStore
- voidpublic ValueStore _getCurrentValueStore()
ValueStore
interface require this accessor.public void _setContainer(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(Property property, java.lang.Class cls) throws java.lang.ClassCastException, java.lang.IllegalArgumentException
property
- cls
- java.lang.ClassCastException
java.lang.IllegalArgumentException
public java.lang.Object convertObjectToValue(Property property, int position, java.lang.Class cls) throws java.lang.ClassCastException, java.lang.IllegalArgumentException
property
- position
- cls
- java.lang.ClassCastException
java.lang.IllegalArgumentException
public 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(Property property, java.util.Collection values, boolean updateSequence)
property
- values
- updateSequence
- public void updateContainment(Property property, java.util.Collection values)
property
- values
- public void updateContainment(Property property, SDODataObject aDataObject, boolean updateSequence)
property
- value
- public void updateContainment(Property property, SDODataObject value)
property
- value
- public java.lang.Object writeReplace()
SDOResolvable
public java.lang.String _getPath()
public java.lang.Object getPropertyInternal(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(Property property)
property
- public void removeOpenContentProperty(Property property)
property
- public boolean isSetInternal(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 SequencedObject
public void _setSdoRef(java.lang.String newRef)