|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.core.CoreNode
org.plasma.sdo.core.CoreDataObject
public class CoreDataObject
A data object is a representation of some structured data.
It is the fundamental component in the SDO (Service Data Objects) package.
Data objects support reflection, path-based accesss, convenience creation and deletion methods,
and the ability to be part of a 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.
| Field Summary |
|---|
| Fields inherited from class org.plasma.sdo.core.CoreNode |
|---|
EMPTY_EDGE_LIST, valueObject |
| Constructor Summary | |
|---|---|
protected |
CoreDataObject()
Default No-arg constructor required for serialization operations. |
|
CoreDataObject(Type type)
|
protected |
CoreDataObject(Type type,
CoreObject values)
|
| Method Summary | |
|---|---|
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(Property property,
java.lang.Object value)
Adds the given value to the given multi=valued property. |
boolean |
contains(DataObject dataObject)
Returns true if this data object is the container for the given data object. |
DataObject |
createDataObject(int propertyIndex)
Returns a new data object contained by this object using the specified property,
which must be a containment property. |
DataObject |
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. |
DataObject |
createDataObject(Property property)
Returns a new data object contained by this object using the specified property,
which must be a containment property. |
DataObject |
createDataObject(Property property,
Type type)
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. |
DataObject |
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. |
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. |
java.lang.String |
dump()
|
java.lang.String |
dumpDepthFirst()
|
boolean |
equals(java.lang.Object obj)
|
DataObject |
find(java.lang.String key)
|
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. |
ChangeSummary |
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. |
DataObject |
getContainer()
Returns the containing data object
or null if there is no container. |
Property |
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. |
PlasmaDataObject |
getDataObject()
|
DataObject |
getDataObject(int propertyIndex)
Returns the value of a DataObject property identified by the specified property index. |
DataObject |
getDataObject(Property property)
Returns the value of the specified DataObject property. |
DataObject |
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. |
Property |
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. |
Property |
getProperty(java.lang.String propertyName)
|
DataObject |
getRootObject()
Returns the root data object. |
Sequence |
getSequence()
Returns the Sequence for this DataObject. |
Sequence |
getSequence(int propertyIndex)
Deprecated. in 2.1.0. |
Sequence |
getSequence(Property property)
Deprecated. in 2.1.0. |
Sequence |
getSequence(java.lang.String path)
Deprecated. in 2.1.0. |
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. |
Type |
getType()
Returns the data object's type. |
java.util.UUID |
getUUID()
Returns the UUID for this data object. |
java.lang.String |
getUUIDAsString()
Deprecated. |
int |
hashCode()
|
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. |
void |
remove()
|
void |
remove(Property property,
java.lang.Object value)
Removes the given value from this data object for the given multi-valued property. |
void |
reset(SnapshotMap idMap,
java.lang.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(java.util.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(int propertyIndex,
java.lang.Object value)
Conversions are specified in Java [6] and the DataHelper. |
void |
set(Property property,
java.lang.Object value)
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 or objects reachable from it, as identified by the specified path. |
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 |
setContainer(DataObject container)
Sets the current container for this DataObject |
void |
setContainmentProperty(Property containmentProperty)
Sets the declared reference Property within the Type for the container which is our current containment reference property |
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 |
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 |
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. |
java.lang.String |
toString()
|
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(java.lang.String path)
Unsets a property of either this object or an object reachable from it, as identified by the specified path. |
java.lang.String |
uuidFromBase64(java.lang.String str)
|
java.lang.String |
uuidToBase64(java.lang.String str)
|
| Methods inherited from class org.plasma.sdo.core.CoreNode |
|---|
getEdges, getEntityName, getValue, getValueObject, removeValue, setValue, setValueObject |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CoreDataObject()
protected CoreDataObject(Type type,
CoreObject values)
public CoreDataObject(Type type)
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic DataGraph getDataGraph()
data graph for this object or
null if there isn't one.
getDataGraph in interface DataObjectnull.public void setDataGraph(DataGraph dataGraph)
setDataGraph in interface PlasmaDataObjectpublic ChangeSummary getChangeSummary()
DataObject
getChangeSummary in interface DataObjectpublic DataObject getRootObject()
DataObjectdata object.
getRootObject in interface DataObjectpublic java.util.UUID getUUID()
PlasmaDataObject
getUUID in interface PlasmaDataObjectgetUUID in interface PlasmaNodepublic void resetUUID(java.util.UUID uuid)
resetUUID in interface PlasmaDataObjectuuid - the UUID@Deprecated public java.lang.String getUUIDAsString()
PlasmaDataObject
getUUIDAsString in interface PlasmaDataObjectgetUUIDAsString in interface PlasmaNodegetUUIDAsString in class CoreNodepublic java.lang.String uuidToBase64(java.lang.String str)
public java.lang.String uuidFromBase64(java.lang.String str)
public PlasmaDataObject getDataObject()
getDataObject in interface PlasmaDataObjectgetDataObject in interface PlasmaNodepublic DataObject createDataObject(java.lang.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 DataObjectpropertyName - the name of the specified containment property.
createDataObject(String, String, String)public 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 DataObjectpropertyIndex - the index of the specified containment property.
createDataObject(int, String, String)public DataObject createDataObject(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 DataObjectproperty - the specified containment property.
createDataObject(Property, Type)
public DataObject createDataObject(java.lang.String propertyName,
java.lang.String namespaceURI,
java.lang.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 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 DataObject createDataObject(int propertyIndex,
java.lang.String namespaceURI,
java.lang.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 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 DataObject createDataObject(Property property,
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 DataObjectproperty - a containment property of this object.type - the type of object to be created.
createDataObject(int)public void setContainer(DataObject container)
PlasmaDataObject
setContainer in interface PlasmaDataObjectpublic void setContainmentProperty(Property containmentProperty)
PlasmaDataObject
setContainmentProperty in interface PlasmaDataObjectpublic 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 DataObjectpublic boolean contains(DataObject dataObject)
contains in interface PlasmaDataObjectdataObject - the data object
public void detach()
detach in interface DataObjectpublic java.lang.Object get(int propertyIndex)
DataObjectproperty list
of this object's type.
get in interface DataObjectpropertyIndex - the index of the property.
DataObject.get(Property)public java.lang.Object get(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 DataObjectproperty - the property of the value to fetch.
set(Property, Object),
unset(Property),
isSet(Property)public java.lang.Object get(java.lang.String path)
get in interface DataObjectpath - the path to a valid object and property.
get(Property)
public void set(java.lang.String path,
java.lang.Object value)
set in interface 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,
java.lang.Object value)
set in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(Property, Object)
public void set(Property property,
java.lang.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 DataObjectproperty - the property of the value to set.value - the new value for the property.unset(Property),
isSet(Property),
get(Property)
public void add(Property property,
java.lang.Object value)
add in interface PlasmaDataObjectproperty - the multi-valued propertyvalue - the value to add - can be a list of values
public void remove(Property property,
java.lang.Object value)
remove in interface PlasmaDataObjectproperty - multi-valued the propertyvalue - the value to remove
java.lang.UnsupportedOperationException - if the given property
is not multi-valuedpublic void unset(java.lang.String path)
unset in interface 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 DataObjectpropertyIndex - the index of the property.unset(Property)public void unset(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 DataObjectproperty - the property in question.isSet(Property),
set(Property, Object),
get(Property)public boolean isSet(java.lang.String path)
DataObject
isSet in interface DataObjectpath - the path to a valid object and property.DataObject.isSet(Property)public boolean isSet(int propertyIndex)
DataObjectproperty list of this object's
type, is considered to be set.
isSet in interface DataObjectpropertyIndex - the index of the property.
DataObject.isSet(Property)public boolean isSet(Property property)
DataObjectisSet() 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 DataObjectproperty - the property in question.
DataObject.set(Property, Object),
DataObject.unset(Property),
DataObject.get(Property)public java.math.BigDecimal getBigDecimal(java.lang.String path)
DataObjectBigDecimal property identified by the specified path.
getBigDecimal in interface DataObjectpath - the path to a valid object and property.
BigDecimal value of the specified property.DataObject.get(String)public java.math.BigDecimal getBigDecimal(int propertyIndex)
DataObjectBigDecimal property identified by the specified property index.
getBigDecimal in interface DataObjectpropertyIndex - the index of the property.
BigDecimal value of the specified property.DataObject.get(int)public java.math.BigDecimal getBigDecimal(Property property)
DataObjectBigDecimal property.
getBigDecimal in interface DataObjectproperty - the property to get.
BigDecimal value of the specified property.DataObject.get(Property)public java.math.BigInteger getBigInteger(java.lang.String path)
DataObjectBigInteger property identified by the specified path.
getBigInteger in interface DataObjectpath - the path to a valid object and property.
BigInteger value of the specified property.DataObject.get(String)public java.math.BigInteger getBigInteger(int propertyIndex)
DataObjectBigInteger property identified by the specified property index.
getBigInteger in interface DataObjectpropertyIndex - the index of the property.
BigInteger value of the specified property.DataObject.get(int)public java.math.BigInteger getBigInteger(Property property)
DataObjectBigInteger property.
getBigInteger in interface DataObjectproperty - the property to get.
BigInteger value of the specified property.DataObject.get(Property)public boolean getBoolean(java.lang.String path)
DataObjectboolean property identified by the specified path.
getBoolean in interface DataObjectpath - the path to a valid object and property.
boolean value of the specified property.DataObject.get(String)public boolean getBoolean(int propertyIndex)
DataObjectboolean property identified by the specified property index.
getBoolean in interface DataObjectpropertyIndex - the index of the property.
boolean value of the specified property.DataObject.get(int)public boolean getBoolean(Property property)
DataObjectboolean property.
getBoolean in interface DataObjectproperty - the property to get.
boolean value of the specified property.DataObject.get(Property)public byte getByte(java.lang.String path)
DataObjectbyte property identified by the specified path.
getByte in interface DataObjectpath - the path to a valid object and property.
byte value of the specified property.DataObject.get(String)public byte getByte(int propertyIndex)
DataObjectbyte property identified by the specified property index.
getByte in interface DataObjectpropertyIndex - the index of the property.
byte value of the specified property.DataObject.get(int)public byte getByte(Property property)
DataObjectbyte property.
getByte in interface DataObjectproperty - the property to get.
byte value of the specified property.DataObject.get(Property)public byte[] getBytes(java.lang.String path)
DataObjectbyte[] property identified by the specified path.
getBytes in interface DataObjectpath - the path to a valid object and property.
byte[] value of the specified property.DataObject.get(String)public byte[] getBytes(int propertyIndex)
DataObjectbyte[] property identified by the specified property index.
getBytes in interface DataObjectpropertyIndex - the index of the property.
byte[] value of the specified property.DataObject.get(int)public byte[] getBytes(Property property)
DataObjectbyte[] property.
getBytes in interface DataObjectproperty - the property to get.
byte[] value of the specified property.DataObject.get(Property)public char getChar(java.lang.String path)
DataObjectchar property identified by the specified path.
getChar in interface DataObjectpath - the path to a valid object and property.
char value of the specified property.DataObject.get(String)public char getChar(int propertyIndex)
DataObjectchar property identified by the specified property index.
getChar in interface DataObjectpropertyIndex - the index of the property.
char value of the specified property.DataObject.get(int)public char getChar(Property property)
DataObjectchar property.
getChar in interface DataObjectproperty - the property to get.
char value of the specified property.DataObject.get(Property)public java.util.Date getDate(java.lang.String path)
DataObjectDate property identified by the specified path.
getDate in interface DataObjectpath - the path to a valid object and property.
Date value of the specified property.DataObject.get(String)public java.util.Date getDate(int propertyIndex)
DataObjectDate property identified by the specified property index.
getDate in interface DataObjectpropertyIndex - the index of the property.
Date value of the specified property.DataObject.get(int)public java.util.Date getDate(Property property)
DataObjectDate property.
getDate in interface DataObjectproperty - the property to get.
Date value of the specified property.DataObject.get(Property)public double getDouble(java.lang.String path)
DataObjectdouble property identified by the specified path.
getDouble in interface DataObjectpath - the path to a valid object and property.
double value of the specified property.DataObject.get(String)public double getDouble(int propertyIndex)
DataObjectdouble property identified by the specified property index.
getDouble in interface DataObjectpropertyIndex - the index of the property.
double value of the specified property.DataObject.get(int)public double getDouble(Property property)
DataObjectdouble property.
getDouble in interface DataObjectproperty - the property to get.
double value of the specified property.DataObject.get(Property)public float getFloat(java.lang.String path)
DataObjectfloat property identified by the specified path.
getFloat in interface DataObjectpath - the path to a valid object and property.
float value of the specified property.DataObject.get(String)public float getFloat(int propertyIndex)
DataObjectfloat property identified by the specified property index.
getFloat in interface DataObjectpropertyIndex - the index of the property.
float value of the specified property.DataObject.get(int)public float getFloat(Property property)
DataObjectfloat property.
getFloat in interface DataObjectproperty - the property to get.
float value of the specified property.DataObject.get(Property)public int getInt(java.lang.String path)
DataObjectint property identified by the specified path.
getInt in interface DataObjectpath - the path to a valid object and property.
int value of the specified property.DataObject.get(String)public int getInt(int propertyIndex)
DataObjectint property identified by the specified property index.
getInt in interface DataObjectpropertyIndex - the index of the property.
int value of the specified property.DataObject.get(int)public int getInt(Property property)
DataObjectint property.
getInt in interface DataObjectproperty - the property to get.
int value of the specified property.DataObject.get(Property)public java.util.List getList(java.lang.String path)
List property identified by the specified path.
getList in interface DataObjectpath - the path to a valid object and property.
List value of the specified property.get(String)public java.util.List getList(int propertyIndex)
List property identified by the specified property index.
getList in interface DataObjectpropertyIndex - the index of the property.
List value of the specified property.get(int)public java.util.List getList(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 DataObjectproperty - the property to get.
List value of the specified property.get(Property)public long getLong(java.lang.String path)
DataObjectlong property identified by the specified path.
getLong in interface DataObjectpath - the path to a valid object and property.
long value of the specified property.DataObject.get(String)public long getLong(int propertyIndex)
DataObjectlong property identified by the specified property index.
getLong in interface DataObjectpropertyIndex - the index of the property.
long value of the specified property.DataObject.get(int)public long getLong(Property property)
DataObjectlong property.
getLong in interface DataObjectproperty - the property to get.
long value of the specified property.DataObject.get(Property)public Property getProperty(java.lang.String propertyName)
getProperty in interface DataObjectpublic short getShort(java.lang.String path)
DataObjectshort property identified by the specified path.
getShort in interface DataObjectpath - the path to a valid object and property.
short value of the specified property.DataObject.get(String)public short getShort(int propertyIndex)
DataObjectshort property identified by the specified property index.
getShort in interface DataObjectpropertyIndex - the index of the property.
short value of the specified property.DataObject.get(int)public short getShort(Property property)
DataObjectshort property.
getShort in interface DataObjectproperty - the property to get.
short value of the specified property.DataObject.get(Property)public java.lang.String getString(java.lang.String path)
DataObjectString property identified by the specified path.
getString in interface DataObjectpath - the path to a valid object and property.
String value of the specified property.DataObject.get(String)public java.lang.String getString(int propertyIndex)
DataObjectString property identified by the specified property index.
getString in interface DataObjectpropertyIndex - the index of the property.
String value of the specified property.DataObject.get(int)public java.lang.String getString(Property property)
DataObjectString property.
getString in interface DataObjectproperty - the property to get.
String value of the specified property.DataObject.get(Property)public Type getType()
DataObjectThe type defines the Properties available for reflective access.
getType in interface DataObject
public void setBigDecimal(java.lang.String path,
java.math.BigDecimal value)
DataObjectBigDecimal property identified by the specified path, to the specified value.
setBigDecimal in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setBigDecimal(int propertyIndex,
java.math.BigDecimal value)
DataObjectBigDecimal property identified by the specified property index, to the specified value.
setBigDecimal in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setBigDecimal(Property property,
java.math.BigDecimal value)
DataObjectBigDecimal property, to the specified value.
setBigDecimal in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setBigInteger(java.lang.String path,
java.math.BigInteger value)
DataObjectBigInteger property identified by the specified path, to the specified value.
setBigInteger in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setBigInteger(int propertyIndex,
java.math.BigInteger value)
DataObjectBigInteger property identified by the specified property index, to the specified value.
setBigInteger in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setBigInteger(Property property,
java.math.BigInteger value)
DataObjectBigInteger property, to the specified value.
setBigInteger in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setBoolean(java.lang.String path,
boolean value)
DataObjectboolean property identified by the specified path, to the specified value.
setBoolean in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setBoolean(int propertyIndex,
boolean value)
DataObjectboolean property identified by the specified property index, to the specified value.
setBoolean in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setBoolean(Property property,
boolean value)
DataObjectboolean property, to the specified value.
setBoolean in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setByte(java.lang.String path,
byte value)
DataObjectbyte property identified by the specified path, to the specified value.
setByte in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setByte(int propertyIndex,
byte value)
DataObjectbyte property identified by the specified property index, to the specified value.
setByte in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setByte(Property property,
byte value)
DataObjectbyte property, to the specified value.
setByte in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setBytes(java.lang.String path,
byte[] value)
DataObjectbyte[] property identified by the specified path, to the specified value.
setBytes in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setBytes(int propertyIndex,
byte[] value)
DataObjectbyte[] property identified by the specified property index, to the specified value.
setBytes in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setBytes(Property property,
byte[] value)
DataObjectbyte[] property, to the specified value.
setBytes in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setChar(java.lang.String path,
char value)
DataObjectchar property identified by the specified path, to the specified value.
setChar in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setChar(int propertyIndex,
char value)
DataObjectchar property identified by the specified property index, to the specified value.
setChar in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setChar(Property property,
char value)
DataObjectchar property, to the specified value.
setChar in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setDataObject(java.lang.String path,
DataObject value)
DataObjectDataObject property identified by the specified path, to the specified value.
setDataObject in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setDataObject(int propertyIndex,
DataObject value)
DataObjectDataObject property identified by the specified property index, to the specified value.
setDataObject in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setDataObject(Property property,
DataObject value)
DataObjectDataObject property, to the specified value.
setDataObject in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setDate(java.lang.String path,
java.util.Date value)
DataObjectDate property identified by the specified path, to the specified value.
setDate in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setDate(int propertyIndex,
java.util.Date value)
DataObjectDate property identified by the specified property index, to the specified value.
setDate in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setDate(Property property,
java.util.Date value)
DataObjectDate property, to the specified value.
setDate in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setDouble(java.lang.String path,
double value)
DataObjectdouble property identified by the specified path, to the specified value.
setDouble in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setDouble(int propertyIndex,
double value)
DataObjectdouble property identified by the specified property index, to the specified value.
setDouble in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setDouble(Property property,
double value)
DataObjectdouble property, to the specified value.
setDouble in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setFloat(java.lang.String path,
float value)
DataObjectfloat property identified by the specified path, to the specified value.
setFloat in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setFloat(int propertyIndex,
float value)
DataObjectfloat property identified by the specified property index, to the specified value.
setFloat in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setFloat(Property property,
float value)
DataObjectfloat property, to the specified value.
setFloat in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setInt(java.lang.String path,
int value)
DataObjectint property identified by the specified path, to the specified value.
setInt in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setInt(int propertyIndex,
int value)
DataObjectint property identified by the specified property index, to the specified value.
setInt in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setInt(Property property,
int value)
DataObjectint property, to the specified value.
setInt in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setList(java.lang.String path,
java.util.List value)
DataObjectList property identified by the specified path, to the specified value.
setList in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object),
DataObject.setList(Property, List)
public void setList(int propertyIndex,
java.util.List value)
DataObjectList property identified by the specified property index, to the specified value.
setList in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object),
DataObject.setList(Property, List)
public void setList(Property property,
java.util.List value)
DataObjectList 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 DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setLong(java.lang.String path,
long value)
DataObjectlong property identified by the specified path, to the specified value.
setLong in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setLong(int propertyIndex,
long value)
DataObjectlong property identified by the specified property index, to the specified value.
setLong in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setLong(Property property,
long value)
DataObjectlong property, to the specified value.
setLong in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setShort(java.lang.String path,
short value)
DataObjectshort property identified by the specified path, to the specified value.
setShort in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setShort(int propertyIndex,
short value)
DataObjectshort property identified by the specified property index, to the specified value.
setShort in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setShort(Property property,
short value)
DataObjectshort property, to the specified value.
setShort in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)
public void setString(java.lang.String path,
java.lang.String value)
DataObjectString property identified by the specified path, to the specified value.
setString in interface DataObjectpath - the path to a valid object and property.value - the new value for the property.#setProperty(String, Object)
public void setString(int propertyIndex,
java.lang.String value)
DataObjectString property identified by the specified property index, to the specified value.
setString in interface DataObjectpropertyIndex - the index of the property.value - the new value for the property.DataObject.set(int, Object)
public void setString(Property property,
java.lang.String value)
DataObjectString property, to the specified value.
setString in interface DataObjectproperty - the property to set.value - the new value for the property.DataObject.set(Property, Object)public DataObject getContainer()
data object
or null if there is no container.
getContainer in interface DataObjectnull.public Property getContainmentProperty()
data object containing this data object
or null if there is no container.
getContainmentProperty in interface DataObjectpublic DataObject getDataObject(java.lang.String path)
DataObjectDataObject property identified by the specified path.
getDataObject in interface DataObjectpath - the path to a valid object and property.
DataObject value of the specified property.DataObject.get(String)public DataObject getDataObject(int propertyIndex)
DataObjectDataObject property identified by the specified property index.
getDataObject in interface DataObjectpropertyIndex - the index of the property.
DataObject value of the specified property.DataObject.get(int)public DataObject getDataObject(Property property)
DataObjectDataObject property.
getDataObject in interface DataObjectproperty - the property to get.
DataObject value of the specified property.DataObject.get(Property)public java.util.List getInstanceProperties()
getInstanceProperties in interface DataObjectpublic Property getInstanceProperty(java.lang.String propertyName)
getInstanceProperty in interface DataObjectpropertyName - the name of the Property
public Sequence getSequence(java.lang.String path)
getSequence in interface 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 Sequence getSequence(int propertyIndex)
getSequence in interface 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 Sequence getSequence(Property property)
getSequence in interface 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 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 DataObjectSequence or null.
public void reset(SnapshotMap idMap,
java.lang.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 DataObject find(java.lang.String key)
find in interface PlasmaDataObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String dump()
dump in interface PlasmaDataObjectpublic java.lang.String dumpDepthFirst()
dumpDepthFirst in interface PlasmaDataObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||