|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.sdo.SDODataObject
public class SDODataObject
Field Summary | |
---|---|
private HelperContext |
aHelperContext hold the current context containing all helpers so that we can preserve inter-helper relationships |
private SDOChangeSummary |
changeSummary |
private SDODataObject |
container |
private java.lang.String |
containmentPropertyName |
private ValueStore |
currentValueStore The (currentValueStore) will maintain the current state of our model after logged changes - it is a shallow copy of the original, progressively becoming deeper with changes. |
private DataGraph |
dataGraph |
private java.util.List<SDOProperty> |
instanceProperties |
private java.util.Map |
openContentAliasNames |
private java.util.List |
openContentProperties |
private java.util.List |
openContentPropertiesAttributes |
private java.lang.String |
sdoRef |
private SDOSequence |
sequence |
private java.lang.String |
text Unique hash ID of this Externalizable class - not required at this point because we serialize the xml representation |
private SDOType |
type The Type that this DataObject represents |
Constructor Summary | |
---|---|
SDODataObject() INTERNAL: Private constructor. |
Method Summary | |
---|---|
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. |
private java.util.Map<java.lang.String,Property> |
_getOpenContentAliasNamesMap() |
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 |
private void |
_setDeleted(boolean deleted) INTERNAL: Set flag deleted value. |
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: |
private void |
convertValueAndSet(Property property, java.lang.Object originalValue) INTERNAL: |
SDODataObject |
createDataObject(int propertyIndex) |
SDODataObject |
createDataObject(int propertyIndex, java.lang.String namespaceURI, java.lang.String typeName) |
SDODataObject |
createDataObject(Property aProperty) |
SDODataObject |
createDataObject(Property property, Type aType) |
DataObject |
createDataObject(java.lang.String propertyName) |
SDODataObject |
createDataObject(java.lang.String propertyName, java.lang.String namespaceURI, java.lang.String typeName) |
private SDOProperty |
createNewProperty(java.lang.String propertyName, java.lang.String propertyUri, Type theType) |
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() |
private void |
deleteWithSequenceUpdate() INTERNAL: Perform a detach action that originated from a delete and update the sequence. |
void |
detach() |
private void |
detach(boolean fromDelete, boolean updateSequence) INTERNAL: Removes this DataObject from its container, if any. |
private void |
detach(Property property, java.lang.Object oldValue) INTERNAL: Perform a detach on a DataObject or List of DataObjects |
private void |
detachDeleteRecursivePrivate(boolean fromDelete, boolean clearCS, boolean isRootOfRecursiveLoop) INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object. |
private void |
detachDeleteRecursivePrivateHelper(SDODataObject aDataObject, boolean fromDelete, boolean clearCS) INTERNAL: Call detach or delete recursively on aDataObject after possibly changing the flag whether to clear the ChangeSummary pointer at this level |
void |
detachOrDelete(boolean fromDelete) INTERNAL: Recursively walk the tree and set oldSettings for a detached/deleted object. |
private void |
detachWithSequenceUpdate() INTERNAL: Perform a detach action that originated from a detach and update the sequence. |
java.lang.Object |
get(int propertyIndex) |
java.lang.Object |
get(Property property) |
java.lang.Object |
get(java.lang.String path) |
java.math.BigDecimal |
getBigDecimal(int propertyIndex) |
java.math.BigDecimal |
getBigDecimal(Property property) |
java.math.BigDecimal |
getBigDecimal(java.lang.String path) |
java.math.BigInteger |
getBigInteger(int propertyIndex) |
java.math.BigInteger |
getBigInteger(Property property) |
java.math.BigInteger |
getBigInteger(java.lang.String path) |
boolean |
getBoolean(int propertyIndex) |
boolean |
getBoolean(Property property) |
boolean |
getBoolean(java.lang.String path) |
byte |
getByte(int propertyIndex) |
byte |
getByte(Property property) |
byte |
getByte(java.lang.String path) |
byte[] |
getBytes(int propertyIndex) |
byte[] |
getBytes(Property property) |
byte[] |
getBytes(java.lang.String path) |
SDOChangeSummary |
getChangeSummary() |
char |
getChar(int propertyIndex) |
char |
getChar(Property property) |
char |
getChar(java.lang.String path) |
SDODataObject |
getContainer() |
SDOProperty |
getContainmentProperty() |
DataGraph |
getDataGraph() |
SDODataObject |
getDataObject(int propertyIndex) |
SDODataObject |
getDataObject(Property property) |
SDODataObject |
getDataObject(java.lang.String path) |
java.util.Date |
getDate(int propertyIndex) |
java.util.Date |
getDate(Property property) |
java.util.Date |
getDate(java.lang.String path) |
double |
getDouble(int propertyIndex) |
double |
getDouble(Property property) |
double |
getDouble(java.lang.String path) |
float |
getFloat(int propertyIndex) |
float |
getFloat(Property property) |
float |
getFloat(java.lang.String path) |
java.util.List |
getInstanceProperties() |
private SDOProperty[] |
getInstancePropertiesArray() INTERNAL: |
SDOProperty |
getInstanceProperty(int propertyIndex) INTERNAL: |
SDOProperty |
getInstanceProperty(java.lang.String propertyName) |
(package private) SDOProperty |
getInstanceProperty(java.lang.String propertyName, java.lang.Object value) |
int |
getInt(int propertyIndex) |
int |
getInt(Property property) |
int |
getInt(java.lang.String path) |
java.util.List |
getList(int propertyIndex) |
java.util.List |
getList(Property property) |
java.util.List |
getList(java.lang.String path) |
long |
getLong(int propertyIndex) |
long |
getLong(Property property) |
long |
getLong(java.lang.String path) |
private java.lang.String |
getPathPrivate(java.lang.String currentPath, SDODataObject targetObject, java.lang.String aSeparator) INTERNAL: Return the SDO Path from the root to the current internal node Prereq: We know that the targetObject will always have a parent as called from getPath() Matching conditions: Iterate up the tree return a non-null string for the XPath at when we reach the root node Function is partially based on SDOCopyHelper.copy(DataObject dataObject) Performance: This function is O(log n) where n=# of children in the tree |
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() |
SDOSequence |
getSequence() |
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. |
private Sequence |
getSequencePrivate(Property aProperty) INTERNAL: Return a Sequence object when the conditions of many=false and dataType=false are met. |
java.util.List<Setting> |
getSettings() |
short |
getShort(int propertyIndex) |
short |
getShort(Property property) |
short |
getShort(java.lang.String path) |
java.lang.String |
getString(int propertyIndex) |
java.lang.String |
getString(Property property) |
java.lang.String |
getString(java.lang.String path) |
SDOType |
getType() |
private boolean |
isContainedByDataGraph(DataGraph aDataGraph, SDOProperty aProperty) INTERNAL: Return whether the current dataObject(this) is was part of the passed in dataGraph. |
private boolean |
isContainedByDataGraph(Property aProperty) INTERNAL: Return whether the current dataObject(this) is part of a dataGraph. |
private boolean |
isLogging() INTERNAL: Return the changeSummary logging state |
boolean |
isSet(int propertyIndex) |
boolean |
isSet(Property property) |
boolean |
isSet(java.lang.String path) |
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) |
void |
set(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(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(Property property, java.math.BigInteger value) |
void |
setBigInteger(java.lang.String path, java.math.BigInteger value) |
void |
setBoolean(int propertyIndex, boolean value) |
void |
setBoolean(Property property, boolean value) |
void |
setBoolean(java.lang.String path, boolean value) |
void |
setByte(int propertyIndex, byte value) |
void |
setByte(Property property, byte value) |
void |
setByte(java.lang.String path, byte value) |
void |
setBytes(int propertyIndex, byte[] value) |
void |
setBytes(Property property, byte[] value) |
void |
setBytes(java.lang.String path, byte[] value) |
private void |
setChangeSummaryNonRecursive(ChangeSummary csm) INTERNAL: |
private void |
setChangeSummaryProperty(SDOProperty property, ChangeSummary value) INTERNAL: |
void |
setChar(int propertyIndex, char value) |
void |
setChar(Property property, char value) |
void |
setChar(java.lang.String path, char value) |
void |
setDataGraph(DataGraph dataGraph) |
void |
setDataObject(int propertyIndex, DataObject value) |
void |
setDataObject(Property property, DataObject value) |
void |
setDataObject(java.lang.String path, DataObject value) |
void |
setDate(int propertyIndex, java.util.Date value) |
void |
setDate(Property property, java.util.Date value) |
void |
setDate(java.lang.String path, java.util.Date value) |
void |
setDouble(int propertyIndex, double value) |
void |
setDouble(Property property, double value) |
void |
setDouble(java.lang.String path, double value) |
void |
setFloat(int propertyIndex, float value) |
void |
setFloat(Property property, float value) |
void |
setFloat(java.lang.String path, float value) |
void |
setInt(int propertyIndex, int value) |
void |
setInt(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(Property property, java.util.List value) |
void |
setList(java.lang.String path, java.util.List value) |
void |
setLong(int propertyIndex, long value) |
void |
setLong(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(Property property, short value) |
void |
setShort(java.lang.String path, short value) |
void |
setString(int propertyIndex, java.lang.String value) |
void |
setString(Property property, java.lang.String value) |
void |
setString(java.lang.String path, java.lang.String 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) |
void |
unset(Property property) |
private void |
unset(Property property, boolean fromDelete) INTERNAL: This function is implemented internally to unset the specified property on this DataObject |
void |
unset(Property property, boolean fromDelete, boolean updateSequence) INTERNAL: Unset the specified property on this DataObject. |
void |
unset(java.lang.String path) |
private void |
unsetInternal(Property property, boolean updateSequence) INTERNAL: Unset the property on the ValueStore interface and update the sequence if it exists. |
private java.lang.Object |
unwrapListValue(Property prop, java.lang.Object val) Convenience method that unwraps a list and returns the first element, if necessary. |
private void |
updateChangeSummaryAndDataGraph(ChangeSummary aChangeSummary, DataGraph aDataGraph) INTERNAL: Recursively set this DataObject's changeSummary and dataGraph. |
private void |
updateChangeSummaryWithOriginalValues() INTERNAL: Process ValueStore changes on any set/delete/detach/unset when logging is on. |
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 |
private void |
updateDataGraph(DataGraph aDataGraph) INTERNAL: Recursively set this DataObject's DataGraph This function serves as a copy of updateChangeSummaryAndDataGraph() to recursively walk and set the dataGraph. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SDOType type
private SDODataObject container
private ValueStore currentValueStore
private java.util.List openContentProperties
private java.util.List openContentPropertiesAttributes
private java.util.Map openContentAliasNames
private java.lang.String containmentPropertyName
private SDOChangeSummary changeSummary
private java.util.List<SDOProperty> instanceProperties
private java.lang.String sdoRef
private SDOSequence sequence
private DataGraph dataGraph
private HelperContext aHelperContext
private java.lang.String text
Constructor Detail |
---|
public SDODataObject()
#SDODataObject(HelperContext)
insteadMethod Detail |
---|
public void _setHelperContext(HelperContext aContext)
aContext
-public java.lang.Object get(java.lang.String path)
public void set(java.lang.String path, java.lang.Object value) throws java.lang.ClassCastException, java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
java.lang.ClassCastException
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
public boolean isSet(java.lang.String path)
public void unset(java.lang.String path)
public boolean getBoolean(java.lang.String path) throws java.lang.ClassCastException
java.lang.ClassCastException
public byte getByte(java.lang.String path)
public char getChar(java.lang.String path)
public double getDouble(java.lang.String path)
public float getFloat(java.lang.String path)
public int getInt(java.lang.String path)
public long getLong(java.lang.String path)
public short getShort(java.lang.String path)
public byte[] getBytes(java.lang.String path)
public java.math.BigDecimal getBigDecimal(java.lang.String path)
public java.math.BigInteger getBigInteger(java.lang.String path)
public SDODataObject getDataObject(java.lang.String path) throws java.lang.ClassCastException
java.lang.ClassCastException
public java.util.Date getDate(java.lang.String path)
public java.lang.String getString(java.lang.String path)
public java.util.List getList(java.lang.String path)
public void setBoolean(java.lang.String path, boolean value)
public void setByte(java.lang.String path, byte value)
public void setChar(java.lang.String path, char value)
public void setDouble(java.lang.String path, double value)
public void setFloat(java.lang.String path, float value)
public void setInt(java.lang.String path, int value)
public void setLong(java.lang.String path, long value)
public void setShort(java.lang.String path, short value)
public void setBytes(java.lang.String path, byte[] value)
public void setBigDecimal(java.lang.String path, java.math.BigDecimal value)
public void setBigInteger(java.lang.String path, java.math.BigInteger value)
public void setDataObject(java.lang.String path, DataObject value)
public void setDate(java.lang.String path, java.util.Date value)
public void setString(java.lang.String path, java.lang.String value)
public void setList(java.lang.String path, java.util.List value)
public java.lang.Object get(int propertyIndex) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void set(int propertyIndex, java.lang.Object value)
public boolean isSet(int propertyIndex)
public void unset(int propertyIndex)
public boolean getBoolean(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public byte getByte(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public char getChar(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public double getDouble(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public float getFloat(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public int getInt(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public long getLong(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public short getShort(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public byte[] getBytes(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public java.math.BigDecimal getBigDecimal(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public java.math.BigInteger getBigInteger(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public SDODataObject getDataObject(int propertyIndex)
public java.util.Date getDate(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public java.lang.String getString(int propertyIndex) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public java.util.List getList(int propertyIndex)
public Sequence getSequence(java.lang.String path)
public Sequence getSequence(int propertyIndex)
public Sequence getSequence(Property property)
private Sequence getSequencePrivate(Property aProperty)
public SDOSequence getSequence()
public void setBoolean(int propertyIndex, boolean value)
public void setByte(int propertyIndex, byte value)
public void setChar(int propertyIndex, char value)
public void setDouble(int propertyIndex, double value)
public void setFloat(int propertyIndex, float value)
public void setInt(int propertyIndex, int value)
public void setLong(int propertyIndex, long value)
public void setShort(int propertyIndex, short value)
public void setBytes(int propertyIndex, byte[] value)
public void setBigDecimal(int propertyIndex, java.math.BigDecimal value)
public void setBigInteger(int propertyIndex, java.math.BigInteger value)
public void setDataObject(int propertyIndex, DataObject value)
public void setDate(int propertyIndex, java.util.Date value)
public void setString(int propertyIndex, java.lang.String value)
public void setList(int propertyIndex, java.util.List value)
public java.lang.Object get(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
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
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
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)
public void unset(Property property)
private void unset(Property property, boolean fromDelete)
property
-fromDelete
-public void unset(Property property, boolean fromDelete, boolean updateSequence)
property
-fromDelete
-updateSequence
-public boolean getBoolean(Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public byte getByte(Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public char getChar(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public double getDouble(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public float getFloat(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getInt(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public long getLong(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public short getShort(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public byte[] getBytes(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.math.BigDecimal getBigDecimal(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.math.BigInteger getBigInteger(Property property) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public SDODataObject getDataObject(Property property) throws java.lang.IllegalArgumentException, java.lang.ClassCastException
java.lang.IllegalArgumentException
java.lang.ClassCastException
public java.util.Date getDate(Property property)
public java.lang.String getString(Property property)
public java.util.List getList(Property property)
public void setBoolean(Property property, boolean value)
public void setByte(Property property, byte value)
public void setChar(Property property, char value)
public void setDouble(Property property, double value)
public void setFloat(Property property, float value)
public void setInt(Property property, int value)
public void setLong(Property property, long value)
public void setShort(Property property, short value)
public void setBytes(Property property, byte[] value)
public void setBigDecimal(Property property, java.math.BigDecimal value)
public void setBigInteger(Property property, java.math.BigInteger value)
public void setDataObject(Property property, DataObject value)
public void setDate(Property property, java.util.Date value)
public void setString(Property property, java.lang.String value)
public void setList(Property property, java.util.List value)
public DataObject createDataObject(java.lang.String propertyName)
public SDODataObject createDataObject(int propertyIndex)
public SDODataObject createDataObject(Property aProperty)
public SDODataObject createDataObject(java.lang.String propertyName, java.lang.String namespaceURI, java.lang.String typeName)
public SDODataObject createDataObject(int propertyIndex, java.lang.String namespaceURI, java.lang.String typeName)
public SDODataObject createDataObject(Property property, Type aType)
private void detach(Property property, java.lang.Object oldValue)
property
-oldValue
- (List or Object)fromDelete
-public void detachOrDelete(boolean fromDelete)
fromDelete
- (flag the action true = delete, false = detach)private void detachDeleteRecursivePrivate(boolean fromDelete, boolean clearCS, boolean isRootOfRecursiveLoop)
fromDelete
-clearCS
- (true = clear the cs field) = !(is root of the detach/delete subtree the CS root?)isRootOfRecursiveLoop
- (are we at the root of the detach/delete or inside the subtree)private void detachDeleteRecursivePrivateHelper(SDODataObject aDataObject, boolean fromDelete, boolean clearCS)
anObject
-isCSRoot
-fromDelete
-subTreeRootHasCS
-public void detach()
private void detachWithSequenceUpdate()
private void deleteWithSequenceUpdate()
private void detach(boolean fromDelete, boolean updateSequence)
fromDelete
- (true = delete action, false = detach/unset)updateSequence
-public void delete()
public SDODataObject getContainer()
public SDOProperty getContainmentProperty()
public DataGraph getDataGraph()
public void setDataGraph(DataGraph dataGraph)
public SDOType getType()
public java.util.List getInstanceProperties()
public SDOProperty getProperty(java.lang.String propertyName)
public SDOProperty getInstanceProperty(java.lang.String propertyName)
SDOProperty getInstanceProperty(java.lang.String propertyName, java.lang.Object value)
public SDOProperty getInstanceProperty(int propertyIndex) throws java.lang.IllegalArgumentException
propertyIndex
-SDOException
java.lang.IllegalArgumentException
public SDODataObject getRootObject()
public SDOChangeSummary getChangeSummary()
public void _setCreated(boolean created)
created
- flag created's new value.public void _setModified(boolean modified)
modified
- flag modified's new value.private void _setDeleted(boolean deleted)
deleted
- flag deleted's new value.private void setChangeSummaryNonRecursive(ChangeSummary csm)
csm
-public void _setChangeSummary(SDOChangeSummary aChangeSummary)
aChangeSummary
- the ChangeSummary taking this DataObject as root.private void updateChangeSummaryAndDataGraph(ChangeSummary aChangeSummary, DataGraph aDataGraph)
aDataGraph
-private void updateDataGraph(DataGraph aDataGraph)
aDataGraph
-private void setChangeSummaryProperty(SDOProperty property, ChangeSummary value)
property
-value
-public void undoChanges(boolean isCSRoot, ChangeSummary cs, SDODataObject origContainer, java.lang.String origContainmentPropName)
isCSRoot
-cs
-origContainer
-origContainmentPropName
-private void updateChangeSummaryWithOriginalValues()
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
-private SDOProperty createNewProperty(java.lang.String propertyName, java.lang.String propertyUri, Type theType)
public java.util.List _getOpenContentPropertiesWithXMLRoots()
public java.util.List _getOpenContentProperties()
private java.util.Map<java.lang.String,Property> _getOpenContentAliasNamesMap()
private void convertValueAndSet(Property property, java.lang.Object originalValue)
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
-private boolean isContainedByDataGraph(Property aProperty)
aProperty
-private boolean isContainedByDataGraph(DataGraph aDataGraph, SDOProperty aProperty)
aDataGraph
-aProperty
-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
-private boolean isLogging()
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.
SDOResolvable
private java.lang.String getPathPrivate(java.lang.String currentPath, SDODataObject targetObject, java.lang.String aSeparator)
currentPath
-targetObject
-aSeparator
- (XPath separator is written only between elements not for the first call)public java.lang.String _getPath()
private SDOProperty[] getInstancePropertiesArray()
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
-private void unsetInternal(Property property, boolean updateSequence)
property
-updateSequence
-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)
private java.lang.Object unwrapListValue(Property prop, java.lang.Object val)
prop
-val
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |