public class CoreDataObject extends CoreNode implements PlasmaDataObject
data graph.
Each data object holds its data as a series of Properties.
Properties can be accessed by name, property index, or using the property
meta object itself. A data object can also contain references to other data
objects, through reference-type Properties.
A data object has a series of convenience accessors for its Properties. These
methods either use a path (String), a property index, or the property's meta object itself, to identify the property. Some examples of
the path-based accessors are as follows:
DataObject company = ...;
company.get("name"); is the same as company.get(company.getType().getProperty("name"))
company.set("name", "acme");
company.get("department.0/name") is the same as ((DataObject)((List)company.get("department")).get(0)).get("name")
.n indexes from 0 ... implies the name property of the first department
company.get("department[1]/name") [] indexes from 1 ... implies the name property of the first department
company.get("department[number=123]") returns the first department where number=123
company.get("..") returns the containing data object
company.get("/") returns the root containing data object
There are general accessors for Properties, i.e., get
and set, as well as specific accessors for the
primitive types and commonly used data types like String, Date, List,
BigInteger, and BigDecimal.
EMPTY_EDGE_LIST, valueObject| Modifier | Constructor and Description |
|---|---|
protected |
CoreDataObject()
Default No-arg constructor required for serialization operations.
|
|
CoreDataObject(commonj.sdo.Type type) |
protected |
CoreDataObject(commonj.sdo.Type type,
CoreObject values,
UUID uuid) |
|
CoreDataObject(commonj.sdo.Type type,
UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PlasmaDataGraphEventVisitor visitor)
Begin breadth-first traversal of a DataGraph with this DataObject as the
graph root, the given visitor receiving various events for each graph node
traversed.
|
void |
accept(PlasmaDataGraphVisitor visitor)
Begin breadth-first traversal of a DataGraph with this DataObject as the
graph root, the given visitor receiving "visit" events for each graph node
traversed.
|
void |
accept(PlasmaDataGraphVisitor visitor,
int maxLevel)
Begin breadth-first traversal of a DataGraph with this DataObject as the
graph root, the given visitor receiving "visit" events for each graph node
traversed.
|
void |
acceptDepthFirst(PlasmaDataGraphVisitor visitor)
Begin depth-first traversal of a DataGraph with this DataObject as the
graph root, the given visitor receiving "visit" events for each graph node
traversed.
|
void |
add(commonj.sdo.Property property,
Object value)
Adds the given value to the given multi=valued property.
|
boolean |
contains(commonj.sdo.DataObject dataObject)
Returns true if this data object is the container for the given data
object.
|
commonj.sdo.DataObject |
createDataObject(int propertyIndex)
Returns a new
data object contained by this object using
the specified property, which must be a containment property. |
commonj.sdo.DataObject |
createDataObject(int propertyIndex,
String namespaceURI,
String typeName)
Returns a new
data object contained by this object using
the specified property, which must be a containment property. |
commonj.sdo.DataObject |
createDataObject(commonj.sdo.Property property)
Returns a new
data object contained by this object using
the specified property, which must be a containment property. |
commonj.sdo.DataObject |
createDataObject(commonj.sdo.Property property,
commonj.sdo.Type type)
Returns a new
data object contained by this object using
the specified property, which must be of containment type. |
commonj.sdo.DataObject |
createDataObject(String propertyName)
Returns a new
data object contained by this object using
the specified property, which must be a containment property. |
commonj.sdo.DataObject |
createDataObject(String propertyName,
String namespaceURI,
String typeName)
Returns a new
data object contained by this object using
the specified property, which must be a containment property. |
void |
delete()
Remove this object from its container and then unset all its non-
readOnly properties. |
void |
detach()
Removes this DataObject from its data graph and container, if any.
|
String |
dump()
Produces a raw dump format
|
String |
dumpDepthFirst()
Produces a raw dump format using a depth first graph traversal
|
boolean |
equals(Object obj) |
commonj.sdo.DataObject |
find(String key)
Searches this data object graph returning the data object with a UUID
string matching the given key.
|
Object |
get(FunctionName func,
commonj.sdo.Property property)
Returns the scalar value for the given property associated with the given
scalar function.
|
Object |
get(int propertyIndex) |
Object |
get(commonj.sdo.Property property)
Returns the value of the given property of this object.
|
Object |
get(String path)
Returns the value of a property of either this object or an object
reachable from it, as identified by the specified path.
|
BigDecimal |
getBigDecimal(int propertyIndex) |
BigDecimal |
getBigDecimal(commonj.sdo.Property property) |
BigDecimal |
getBigDecimal(String path) |
BigInteger |
getBigInteger(int propertyIndex) |
BigInteger |
getBigInteger(commonj.sdo.Property property) |
BigInteger |
getBigInteger(String path) |
boolean |
getBoolean(int propertyIndex) |
boolean |
getBoolean(commonj.sdo.Property property) |
boolean |
getBoolean(String path) |
byte |
getByte(int propertyIndex) |
byte |
getByte(commonj.sdo.Property property) |
byte |
getByte(String path) |
byte[] |
getBytes(int propertyIndex) |
byte[] |
getBytes(commonj.sdo.Property property) |
byte[] |
getBytes(String path) |
commonj.sdo.ChangeSummary |
getChangeSummary() |
char |
getChar(int propertyIndex) |
char |
getChar(commonj.sdo.Property property) |
char |
getChar(String path) |
commonj.sdo.DataObject |
getContainer()
Returns the containing
data object or null
if there is no container. |
commonj.sdo.Property |
getContainmentProperty()
Return the Property of the
data object containing this
data object or null if there is no container. |
commonj.sdo.DataGraph |
getDataGraph()
Returns the
data graph for this object or
null if there isn't one. |
PlasmaDataObject |
getDataObject() |
commonj.sdo.DataObject |
getDataObject(int propertyIndex) |
commonj.sdo.DataObject |
getDataObject(commonj.sdo.Property property) |
commonj.sdo.DataObject |
getDataObject(String path) |
Date |
getDate(int propertyIndex) |
Date |
getDate(commonj.sdo.Property property) |
Date |
getDate(String path) |
double |
getDouble(int propertyIndex) |
double |
getDouble(commonj.sdo.Property property) |
double |
getDouble(String path) |
float |
getFloat(int propertyIndex) |
float |
getFloat(commonj.sdo.Property property) |
float |
getFloat(String path) |
List |
getInstanceProperties()
Returns a read-only List of the Properties currently used in this
DataObject.
|
commonj.sdo.Property |
getInstanceProperty(String propertyName)
Returns the named Property from the current instance properties, or null if
not found.
|
int |
getInt(int propertyIndex) |
int |
getInt(commonj.sdo.Property property) |
int |
getInt(String path) |
List |
getList(int propertyIndex)
Returns the value of a
List property identified by the
specified property index. |
List |
getList(commonj.sdo.Property property)
Returns the value of the specified
List property. |
List |
getList(String path)
Returns the value of a
List property identified by the
specified path. |
long |
getLong(int propertyIndex) |
long |
getLong(commonj.sdo.Property property) |
long |
getLong(String path) |
commonj.sdo.Property |
getProperty(String propertyName) |
commonj.sdo.DataObject |
getRootObject() |
commonj.sdo.Sequence |
getSequence()
Returns the
Sequence for this DataObject. |
commonj.sdo.Sequence |
getSequence(int propertyIndex)
Deprecated.
in 2.1.0.
|
commonj.sdo.Sequence |
getSequence(commonj.sdo.Property property)
Deprecated.
in 2.1.0.
|
commonj.sdo.Sequence |
getSequence(String path)
Deprecated.
in 2.1.0.
|
short |
getShort(int propertyIndex) |
short |
getShort(commonj.sdo.Property property) |
short |
getShort(String path) |
String |
getString(int propertyIndex) |
String |
getString(commonj.sdo.Property property) |
String |
getString(String path) |
commonj.sdo.Type |
getType() |
UUID |
getUUID()
Returns the UUID for this data object.
|
String |
getUUIDAsString()
Deprecated.
|
int |
hashCode() |
boolean |
isSet(int propertyIndex) |
boolean |
isSet(commonj.sdo.Property property) |
boolean |
isSet(String path) |
void |
remove() |
void |
remove(commonj.sdo.Property property,
Object value)
Removes the given value from this data object for the given multi-valued
property.
|
void |
reparent(PlasmaDataObject container,
commonj.sdo.Property containmentProperty)
Transfers this
data object to another data graph, makes
this data object to be contained by the given container data object using
the given containment property. |
void |
reset(SnapshotMap idMap,
String username)
Sync up the state of this data object to that of it's data store given the
map of UUID's and associated info resulting from a successful commit.
|
void |
resetUUID(UUID uuid)
Resets the UUID after creation for cases where the UUID is stored
externally and services creating data objects need to preserve the stored
UUIDs across service calls.
|
void |
set(FunctionName func,
commonj.sdo.Property property,
Object value)
Sets the scalar value for the given property associated with the given
scalar function.
|
void |
set(int propertyIndex,
Object value)
Conversions are specified in Java [6] and the DataHelper.
|
void |
set(commonj.sdo.Property property,
Object value)
Sets the value of the given property of the object to the new value.
|
void |
set(String path,
Object value)
Sets a property of either this object or an object or objects reachable
from it, as identified by the specified path.
|
void |
setBigDecimal(int propertyIndex,
BigDecimal value) |
void |
setBigDecimal(commonj.sdo.Property property,
BigDecimal value) |
void |
setBigDecimal(String path,
BigDecimal value) |
void |
setBigInteger(int propertyIndex,
BigInteger value) |
void |
setBigInteger(commonj.sdo.Property property,
BigInteger value) |
void |
setBigInteger(String path,
BigInteger value) |
void |
setBoolean(int propertyIndex,
boolean value) |
void |
setBoolean(commonj.sdo.Property property,
boolean value) |
void |
setBoolean(String path,
boolean value) |
void |
setByte(int propertyIndex,
byte value) |
void |
setByte(commonj.sdo.Property property,
byte value) |
void |
setByte(String path,
byte value) |
void |
setBytes(int propertyIndex,
byte[] value) |
void |
setBytes(commonj.sdo.Property property,
byte[] value) |
void |
setBytes(String path,
byte[] value) |
void |
setChar(int propertyIndex,
char value) |
void |
setChar(commonj.sdo.Property property,
char value) |
void |
setChar(String path,
char value) |
void |
setContainer(commonj.sdo.DataObject container)
Sets the current container for this DataObject
|
void |
setContainmentProperty(commonj.sdo.Property containmentProperty)
Sets the declared reference Property within the Type for the container
which is our current containment reference property
|
void |
setDataGraph(commonj.sdo.DataGraph dataGraph) |
void |
setDataObject(int propertyIndex,
commonj.sdo.DataObject value) |
void |
setDataObject(commonj.sdo.Property property,
commonj.sdo.DataObject value) |
void |
setDataObject(String path,
commonj.sdo.DataObject value) |
void |
setDate(int propertyIndex,
Date value) |
void |
setDate(commonj.sdo.Property property,
Date value) |
void |
setDate(String path,
Date value) |
void |
setDouble(int propertyIndex,
double value) |
void |
setDouble(commonj.sdo.Property property,
double value) |
void |
setDouble(String path,
double value) |
void |
setFloat(int propertyIndex,
float value) |
void |
setFloat(commonj.sdo.Property property,
float value) |
void |
setFloat(String path,
float value) |
void |
setInt(int propertyIndex,
int value) |
void |
setInt(commonj.sdo.Property property,
int value) |
void |
setInt(String path,
int value) |
void |
setList(int propertyIndex,
List value) |
void |
setList(commonj.sdo.Property property,
List value) |
void |
setList(String path,
List value) |
void |
setLong(int propertyIndex,
long value) |
void |
setLong(commonj.sdo.Property property,
long value) |
void |
setLong(String path,
long value) |
void |
setShort(int propertyIndex,
short value) |
void |
setShort(commonj.sdo.Property property,
short value) |
void |
setShort(String path,
short value) |
void |
setString(int propertyIndex,
String value) |
void |
setString(commonj.sdo.Property property,
String value) |
void |
setString(String path,
String value) |
String |
toString() |
void |
unset(int propertyIndex)
Unsets the property at the specified index in
property list of this object's type. |
void |
unset(commonj.sdo.Property property)
Unsets the property of the object.
|
void |
unset(String path)
Unsets a property of either this object or an object reachable from it, as
identified by the specified path.
|
String |
uuidFromBase64(String str) |
String |
uuidToBase64(String str) |
PlasmaValue[] |
values()
Returns the current set of values for the data object including all defined
and inherited properties, both singular and multi-valued data and reference
properties.
|
getEdges, getEntityName, getValue, getValueObject, removeValue, setValue, setValueObjectprotected CoreDataObject()
protected CoreDataObject(commonj.sdo.Type type,
CoreObject values,
UUID uuid)
public CoreDataObject(commonj.sdo.Type type)
public CoreDataObject(commonj.sdo.Type type,
UUID uuid)
public commonj.sdo.DataGraph getDataGraph()
data graph for this object or
null if there isn't one.getDataGraph in interface commonj.sdo.DataObjectnull.public void setDataGraph(commonj.sdo.DataGraph dataGraph)
setDataGraph in interface PlasmaDataObjectpublic commonj.sdo.ChangeSummary getChangeSummary()
getChangeSummary in interface commonj.sdo.DataObjectpublic commonj.sdo.DataObject getRootObject()
getRootObject in interface commonj.sdo.DataObjectpublic UUID getUUID()
PlasmaDataObjectgetUUID in interface PlasmaDataObjectgetUUID in interface PlasmaNodepublic void resetUUID(UUID uuid)
resetUUID in interface PlasmaDataObjectuuid - the UUID@Deprecated public String getUUIDAsString()
PlasmaDataObjectgetUUIDAsString in interface PlasmaDataObjectgetUUIDAsString in interface PlasmaNodegetUUIDAsString in class CoreNodepublic PlasmaDataObject getDataObject()
getDataObject in interface PlasmaDataObjectgetDataObject in interface PlasmaNodepublic commonj.sdo.DataObject createDataObject(String propertyName)
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 commonj.sdo.DataObjectpropertyName - the name of the specified containment property.createDataObject(String, String, String)public commonj.sdo.DataObject createDataObject(int propertyIndex)
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 commonj.sdo.DataObjectpropertyIndex - the index of the specified containment property.createDataObject(int, String, String)public commonj.sdo.DataObject createDataObject(commonj.sdo.Property property)
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 commonj.sdo.DataObjectproperty - the specified containment property.createDataObject(Property, Type)public commonj.sdo.DataObject createDataObject(String propertyName, String namespaceURI, String typeName)
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 commonj.sdo.DataObjectpropertyName - 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.createDataObject(String),
DataGraph.getType(java.lang.String, java.lang.String)public commonj.sdo.DataObject createDataObject(int propertyIndex,
String namespaceURI,
String typeName)
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 commonj.sdo.DataObjectpropertyIndex - 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.createDataObject(int),
DataGraph.getType(java.lang.String, java.lang.String)public commonj.sdo.DataObject createDataObject(commonj.sdo.Property property,
commonj.sdo.Type type)
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 specified property.createDataObject in interface commonj.sdo.DataObjectproperty - a containment property of this object.type - the type of object to be created.createDataObject(int)public void setContainer(commonj.sdo.DataObject container)
PlasmaDataObjectsetContainer in interface PlasmaDataObjectpublic void setContainmentProperty(commonj.sdo.Property containmentProperty)
PlasmaDataObjectsetContainmentProperty in interface PlasmaDataObjectcontainmentProperty - the containment property, which must be a declared property within
the type for the current container data object.public void reparent(PlasmaDataObject container, commonj.sdo.Property containmentProperty)
PlasmaDataObjectdata object to another data graph, makes
this data object to be contained by the given container data object using
the given containment property. The property and its opposite if exists,
are automatically set and flagged as modified in the change summary. This data object automatically becomes part of the
data graph of the given container.reparent in interface PlasmaDataObjectcontainer - the container data object.containmentProperty - the containment property, which must be a declared property within
the type for the given container data object.public void delete()
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 commonj.sdo.DataObjectpublic boolean contains(commonj.sdo.DataObject dataObject)
contains in interface PlasmaDataObjectdataObject - the data objectIllegalArgumentException - of the given data object has no containerpublic void detach()
detach in interface commonj.sdo.DataObjectpublic Object get(int propertyIndex)
get in interface commonj.sdo.DataObjectpublic Object get(commonj.sdo.Property property)
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 commonj.sdo.DataObjectproperty - the property of the value to fetch.set(Property, Object),
unset(Property),
isSet(Property)public Object get(String path)
get in interface commonj.sdo.DataObjectpath - the path to a valid object and property.get(Property)public void set(String path, Object value)
set in interface commonj.sdo.DataObjectpath - the path to a valid object or set of objects and property.value - the new value for the property.set(Property, Object)public void set(int propertyIndex,
Object value)
set in interface commonj.sdo.DataObjectpublic void set(commonj.sdo.Property property,
Object value)
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 commonj.sdo.DataObjectproperty - the property of the value to set.value - the new value for the property.unset(Property),
isSet(Property),
get(Property)public void add(commonj.sdo.Property property,
Object value)
add in interface PlasmaDataObjectproperty - the multi-valued propertyvalue - the value to add - can be a list of valuespublic void remove(commonj.sdo.Property property,
Object value)
remove in interface PlasmaDataObjectproperty - multi-valued the propertyvalue - the value to removeUnsupportedOperationException - if the given property is not multi-valuedpublic void unset(String path)
unset in interface commonj.sdo.DataObjectpath - the path to a valid object and property.unset(Property)public void unset(int propertyIndex)
property list of this object's type.unset in interface commonj.sdo.DataObjectpropertyIndex - the index of the property.unset(Property)public void unset(commonj.sdo.Property property)
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 commonj.sdo.DataObjectproperty - the property in question.isSet(Property),
set(Property, Object),
get(Property)public boolean isSet(String path)
isSet in interface commonj.sdo.DataObjectpublic boolean isSet(int propertyIndex)
isSet in interface commonj.sdo.DataObjectpublic boolean isSet(commonj.sdo.Property property)
isSet in interface commonj.sdo.DataObjectpublic BigDecimal getBigDecimal(String path)
getBigDecimal in interface commonj.sdo.DataObjectpublic BigDecimal getBigDecimal(int propertyIndex)
getBigDecimal in interface commonj.sdo.DataObjectpublic BigDecimal getBigDecimal(commonj.sdo.Property property)
getBigDecimal in interface commonj.sdo.DataObjectpublic BigInteger getBigInteger(String path)
getBigInteger in interface commonj.sdo.DataObjectpublic BigInteger getBigInteger(int propertyIndex)
getBigInteger in interface commonj.sdo.DataObjectpublic BigInteger getBigInteger(commonj.sdo.Property property)
getBigInteger in interface commonj.sdo.DataObjectpublic boolean getBoolean(String path)
getBoolean in interface commonj.sdo.DataObjectpublic boolean getBoolean(int propertyIndex)
getBoolean in interface commonj.sdo.DataObjectpublic boolean getBoolean(commonj.sdo.Property property)
getBoolean in interface commonj.sdo.DataObjectpublic byte getByte(String path)
getByte in interface commonj.sdo.DataObjectpublic byte getByte(int propertyIndex)
getByte in interface commonj.sdo.DataObjectpublic byte getByte(commonj.sdo.Property property)
getByte in interface commonj.sdo.DataObjectpublic byte[] getBytes(String path)
getBytes in interface commonj.sdo.DataObjectpublic byte[] getBytes(int propertyIndex)
getBytes in interface commonj.sdo.DataObjectpublic byte[] getBytes(commonj.sdo.Property property)
getBytes in interface commonj.sdo.DataObjectpublic char getChar(String path)
getChar in interface commonj.sdo.DataObjectpublic char getChar(int propertyIndex)
getChar in interface commonj.sdo.DataObjectpublic char getChar(commonj.sdo.Property property)
getChar in interface commonj.sdo.DataObjectpublic Date getDate(int propertyIndex)
getDate in interface commonj.sdo.DataObjectpublic Date getDate(commonj.sdo.Property property)
getDate in interface commonj.sdo.DataObjectpublic double getDouble(String path)
getDouble in interface commonj.sdo.DataObjectpublic double getDouble(int propertyIndex)
getDouble in interface commonj.sdo.DataObjectpublic double getDouble(commonj.sdo.Property property)
getDouble in interface commonj.sdo.DataObjectpublic float getFloat(String path)
getFloat in interface commonj.sdo.DataObjectpublic float getFloat(int propertyIndex)
getFloat in interface commonj.sdo.DataObjectpublic float getFloat(commonj.sdo.Property property)
getFloat in interface commonj.sdo.DataObjectpublic int getInt(String path)
getInt in interface commonj.sdo.DataObjectpublic int getInt(int propertyIndex)
getInt in interface commonj.sdo.DataObjectpublic int getInt(commonj.sdo.Property property)
getInt in interface commonj.sdo.DataObjectpublic List getList(String path)
List property identified by the
specified path.getList in interface commonj.sdo.DataObjectpath - the path to a valid object and property.List value of the specified property.get(String)public List getList(int propertyIndex)
List property identified by the
specified property index.getList in interface commonj.sdo.DataObjectpropertyIndex - the index of the property.List value of the specified property.get(int)public List getList(commonj.sdo.Property property)
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 commonj.sdo.DataObjectproperty - the property to get.List value of the specified property.get(Property)public long getLong(String path)
getLong in interface commonj.sdo.DataObjectpublic long getLong(int propertyIndex)
getLong in interface commonj.sdo.DataObjectpublic long getLong(commonj.sdo.Property property)
getLong in interface commonj.sdo.DataObjectpublic commonj.sdo.Property getProperty(String propertyName)
getProperty in interface commonj.sdo.DataObjectpublic short getShort(String path)
getShort in interface commonj.sdo.DataObjectpublic short getShort(int propertyIndex)
getShort in interface commonj.sdo.DataObjectpublic short getShort(commonj.sdo.Property property)
getShort in interface commonj.sdo.DataObjectpublic String getString(String path)
getString in interface commonj.sdo.DataObjectpublic String getString(int propertyIndex)
getString in interface commonj.sdo.DataObjectpublic String getString(commonj.sdo.Property property)
getString in interface commonj.sdo.DataObjectpublic commonj.sdo.Type getType()
getType in interface commonj.sdo.DataObjectpublic void setBigDecimal(String path, BigDecimal value)
setBigDecimal in interface commonj.sdo.DataObjectpublic void setBigDecimal(int propertyIndex,
BigDecimal value)
setBigDecimal in interface commonj.sdo.DataObjectpublic void setBigDecimal(commonj.sdo.Property property,
BigDecimal value)
setBigDecimal in interface commonj.sdo.DataObjectpublic void setBigInteger(String path, BigInteger value)
setBigInteger in interface commonj.sdo.DataObjectpublic void setBigInteger(int propertyIndex,
BigInteger value)
setBigInteger in interface commonj.sdo.DataObjectpublic void setBigInteger(commonj.sdo.Property property,
BigInteger value)
setBigInteger in interface commonj.sdo.DataObjectpublic void setBoolean(String path, boolean value)
setBoolean in interface commonj.sdo.DataObjectpublic void setBoolean(int propertyIndex,
boolean value)
setBoolean in interface commonj.sdo.DataObjectpublic void setBoolean(commonj.sdo.Property property,
boolean value)
setBoolean in interface commonj.sdo.DataObjectpublic void setByte(String path, byte value)
setByte in interface commonj.sdo.DataObjectpublic void setByte(int propertyIndex,
byte value)
setByte in interface commonj.sdo.DataObjectpublic void setByte(commonj.sdo.Property property,
byte value)
setByte in interface commonj.sdo.DataObjectpublic void setBytes(String path, byte[] value)
setBytes in interface commonj.sdo.DataObjectpublic void setBytes(int propertyIndex,
byte[] value)
setBytes in interface commonj.sdo.DataObjectpublic void setBytes(commonj.sdo.Property property,
byte[] value)
setBytes in interface commonj.sdo.DataObjectpublic void setChar(String path, char value)
setChar in interface commonj.sdo.DataObjectpublic void setChar(int propertyIndex,
char value)
setChar in interface commonj.sdo.DataObjectpublic void setChar(commonj.sdo.Property property,
char value)
setChar in interface commonj.sdo.DataObjectpublic void setDataObject(String path, commonj.sdo.DataObject value)
setDataObject in interface commonj.sdo.DataObjectpublic void setDataObject(int propertyIndex,
commonj.sdo.DataObject value)
setDataObject in interface commonj.sdo.DataObjectpublic void setDataObject(commonj.sdo.Property property,
commonj.sdo.DataObject value)
setDataObject in interface commonj.sdo.DataObjectpublic void setDate(String path, Date value)
setDate in interface commonj.sdo.DataObjectpublic void setDate(int propertyIndex,
Date value)
setDate in interface commonj.sdo.DataObjectpublic void setDate(commonj.sdo.Property property,
Date value)
setDate in interface commonj.sdo.DataObjectpublic void setDouble(String path, double value)
setDouble in interface commonj.sdo.DataObjectpublic void setDouble(int propertyIndex,
double value)
setDouble in interface commonj.sdo.DataObjectpublic void setDouble(commonj.sdo.Property property,
double value)
setDouble in interface commonj.sdo.DataObjectpublic void setFloat(String path, float value)
setFloat in interface commonj.sdo.DataObjectpublic void setFloat(int propertyIndex,
float value)
setFloat in interface commonj.sdo.DataObjectpublic void setFloat(commonj.sdo.Property property,
float value)
setFloat in interface commonj.sdo.DataObjectpublic void setInt(String path, int value)
setInt in interface commonj.sdo.DataObjectpublic void setInt(int propertyIndex,
int value)
setInt in interface commonj.sdo.DataObjectpublic void setInt(commonj.sdo.Property property,
int value)
setInt in interface commonj.sdo.DataObjectpublic void setList(String path, List value)
setList in interface commonj.sdo.DataObjectpublic void setList(int propertyIndex,
List value)
setList in interface commonj.sdo.DataObjectpublic void setList(commonj.sdo.Property property,
List value)
setList in interface commonj.sdo.DataObjectpublic void setLong(String path, long value)
setLong in interface commonj.sdo.DataObjectpublic void setLong(int propertyIndex,
long value)
setLong in interface commonj.sdo.DataObjectpublic void setLong(commonj.sdo.Property property,
long value)
setLong in interface commonj.sdo.DataObjectpublic void setShort(String path, short value)
setShort in interface commonj.sdo.DataObjectpublic void setShort(int propertyIndex,
short value)
setShort in interface commonj.sdo.DataObjectpublic void setShort(commonj.sdo.Property property,
short value)
setShort in interface commonj.sdo.DataObjectpublic void setString(String path, String value)
setString in interface commonj.sdo.DataObjectpublic void setString(int propertyIndex,
String value)
setString in interface commonj.sdo.DataObjectpublic void setString(commonj.sdo.Property property,
String value)
setString in interface commonj.sdo.DataObjectpublic commonj.sdo.DataObject getContainer()
data object or null
if there is no container.getContainer in interface commonj.sdo.DataObjectnull.public commonj.sdo.Property getContainmentProperty()
data object containing this
data object or null if there is no container.getContainmentProperty in interface commonj.sdo.DataObjectpublic commonj.sdo.DataObject getDataObject(String path)
getDataObject in interface commonj.sdo.DataObjectpublic commonj.sdo.DataObject getDataObject(int propertyIndex)
getDataObject in interface commonj.sdo.DataObjectpublic commonj.sdo.DataObject getDataObject(commonj.sdo.Property property)
getDataObject in interface commonj.sdo.DataObjectpublic List getInstanceProperties()
getInstanceProperties in interface commonj.sdo.DataObjectpublic commonj.sdo.Property getInstanceProperty(String propertyName)
getInstanceProperty in interface commonj.sdo.DataObjectpropertyName - the name of the Propertypublic commonj.sdo.Sequence getSequence(String path)
getSequence in interface commonj.sdo.DataObjectpath - 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.,
get(String)public commonj.sdo.Sequence getSequence(int propertyIndex)
getSequence in interface commonj.sdo.DataObjectpropertyIndex - 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.,
get(int)public commonj.sdo.Sequence getSequence(commonj.sdo.Property property)
getSequence in interface commonj.sdo.DataObjectproperty - the property to get.Sequence value of the specified property.Returns the value of the specified
Sequence property. An implementation may throw an
UnsupportedOperationException.,
get(Property)public commonj.sdo.Sequence getSequence()
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 commonj.sdo.DataObjectSequence or null.public void reset(SnapshotMap idMap, String username)
reset in interface PlasmaDataObjectidMap - - the hash of UUID's mapped to newly inserted pk'susername - - the user who committed the modifications.public void remove()
remove in interface PlasmaDataObjectpublic void accept(PlasmaDataGraphVisitor visitor)
accept in interface PlasmaDataObjectaccept in interface PlasmaNodevisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void accept(PlasmaDataGraphVisitor visitor, int maxLevel)
accept in interface PlasmaDataObjectvisitor - the graph visitor receiving traversal eventsmaxLevel - the maximum number of "hierarchical" levels to traverseDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void acceptDepthFirst(PlasmaDataGraphVisitor visitor)
acceptDepthFirst in interface PlasmaDataObjectacceptDepthFirst in interface PlasmaNodevisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void accept(PlasmaDataGraphEventVisitor visitor)
accept in interface PlasmaDataObjectaccept in interface PlasmaNodevisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public commonj.sdo.DataObject find(String key)
PlasmaDataObjectfind in interface PlasmaDataObjectkey - the UUID string keypublic String dump()
PlasmaDataObjectdump in interface PlasmaDataObjectpublic String dumpDepthFirst()
PlasmaDataObjectdumpDepthFirst in interface PlasmaDataObjectpublic PlasmaValue[] values()
PlasmaDataObjectThis method does not return values for instance properties, only defined and inherited properties.
values in interface PlasmaDataObjectpublic Object get(FunctionName func, commonj.sdo.Property property)
PlasmaDataObjectget in interface PlasmaDataObjectfunc - the scalar functionproperty - the propertypublic void set(FunctionName func, commonj.sdo.Property property, Object value)
PlasmaDataObjectset in interface PlasmaDataObjectfunc - the scalar functionproperty - the propertyCopyright © 2021. All rights reserved.