Package org.eclipse.persistence.sdo
Class DefaultValueStore
java.lang.Object
org.eclipse.persistence.sdo.DefaultValueStore
- All Implemented Interfaces:
ValueStore
Purpose:Default implementation of the ValueStore interface.
Responsibilities:
- Provide get/set/isset/unset access to the values of a DataObject
- Store the values of the declared and open content propeties in memory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Get a shallow copy of the original ValueStore.boolean
Indicates if a given ValueStore is equal to this.getDeclaredProperty
(int propertyIndex) getOpenContentProperty
(Property property) INTERNAL:boolean[]
INTERNAL:Object[]
INTERNAL:int
hashCode()
void
initialize
(DataObject aDataObject) Perform any post-instantiation integrity operations that could not be done during ValueStore creation.
Since the dataObject reference passed in may be bidirectional or self-referencing - we cannot set this variable until the dataObject itself is finished instantiation - hence the 2-step initialization.boolean
isSetDeclaredProperty
(int propertyIndex) boolean
isSetOpenContentProperty
(Property property) void
setDeclaredProperty
(int propertyIndex, Object value) void
setManyProperty
(Property property, Object value) void
setOpenContentProperty
(Property property, Object value) void
setOpenContentValues
(Map openContentValues) INTERNAL:void
setTypePropertiesIsSetStatus
(boolean[] typePropertiesIsSetStatusArray) INTERNAL:void
setTypePropertyValues
(Object[] typePropertyValuesArray) Set the values for declared propertiesvoid
unsetDeclaredProperty
(int propertyIndex) void
unsetOpenContentProperty
(Property property)
-
Constructor Details
-
DefaultValueStore
public DefaultValueStore()
-
-
Method Details
-
getDeclaredProperty
- Specified by:
getDeclaredProperty
in interfaceValueStore
-
getOpenContentProperty
- Specified by:
getOpenContentProperty
in interfaceValueStore
-
setDeclaredProperty
- Specified by:
setDeclaredProperty
in interfaceValueStore
-
setOpenContentProperty
- Specified by:
setOpenContentProperty
in interfaceValueStore
-
isSetDeclaredProperty
public boolean isSetDeclaredProperty(int propertyIndex) - Specified by:
isSetDeclaredProperty
in interfaceValueStore
-
isSetOpenContentProperty
- Specified by:
isSetOpenContentProperty
in interfaceValueStore
-
unsetDeclaredProperty
public void unsetDeclaredProperty(int propertyIndex) - Specified by:
unsetDeclaredProperty
in interfaceValueStore
-
unsetOpenContentProperty
- Specified by:
unsetOpenContentProperty
in interfaceValueStore
-
initialize
Perform any post-instantiation integrity operations that could not be done during ValueStore creation.
Since the dataObject reference passed in may be bidirectional or self-referencing - we cannot set this variable until the dataObject itself is finished instantiation - hence the 2-step initialization.- Specified by:
initialize
in interfaceValueStore
- Parameters:
aDataObject
-
-
setTypePropertyValues
Set the values for declared properties- Parameters:
typePropertyValuesArray
-
-
setTypePropertiesIsSetStatus
public void setTypePropertiesIsSetStatus(boolean[] typePropertiesIsSetStatusArray) INTERNAL:- Parameters:
typePropertiesIsSetStatusArray
- boolean[] of isSet values for declared properties
-
getTypePropertyValues
INTERNAL:- Returns:
- Object[] of the values of declared properties
-
getTypePropertiesIsSetStatus
public boolean[] getTypePropertiesIsSetStatus()INTERNAL:- Returns:
- boolean[] of isSet values for declared properties
-
setOpenContentValues
INTERNAL:- Parameters:
openContentValues
-
-
getOpenContentValues
INTERNAL:- Returns:
- Non-null Map of values for open content properties
-
setManyProperty
- Specified by:
setManyProperty
in interfaceValueStore
-
copy
Get a shallow copy of the original ValueStore. Changes made to the copy must not impact the original ValueStore- Specified by:
copy
in interfaceValueStore
- Returns:
- ValueStore
-
equals
Indicates if a given ValueStore is equal to this. The following attributes are tested for equality: - data object - type property values - open content property values - property isSet values -
hashCode
public int hashCode()
-