- java.lang.Object
-
- org.eclipse.persistence.sdo.DefaultValueStore
-
- All Implemented Interfaces:
ValueStore
public class DefaultValueStore extends Object implements 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
Constructors Constructor Description DefaultValueStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueStorecopy()Get a shallow copy of the original ValueStore.booleanequals(Object obj)Indicates if a given ValueStore is equal to this.ObjectgetDeclaredProperty(int propertyIndex)ObjectgetOpenContentProperty(Property property)MapgetOpenContentValues()INTERNAL:boolean[]getTypePropertiesIsSetStatus()INTERNAL:Object[]getTypePropertyValues()INTERNAL:inthashCode()voidinitialize(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.booleanisSetDeclaredProperty(int propertyIndex)booleanisSetOpenContentProperty(Property property)voidsetDeclaredProperty(int propertyIndex, Object value)voidsetManyProperty(Property property, Object value)voidsetOpenContentProperty(Property property, Object value)voidsetOpenContentValues(Map openContentValues)INTERNAL:voidsetTypePropertiesIsSetStatus(boolean[] typePropertiesIsSetStatusArray)INTERNAL:voidsetTypePropertyValues(Object[] typePropertyValuesArray)Set the values for declared propertiesvoidunsetDeclaredProperty(int propertyIndex)voidunsetOpenContentProperty(Property property)
-
-
-
Method Detail
-
getDeclaredProperty
public Object getDeclaredProperty(int propertyIndex)
- Specified by:
getDeclaredPropertyin interfaceValueStore
-
getOpenContentProperty
public Object getOpenContentProperty(Property property)
- Specified by:
getOpenContentPropertyin interfaceValueStore
-
setDeclaredProperty
public void setDeclaredProperty(int propertyIndex, Object value)- Specified by:
setDeclaredPropertyin interfaceValueStore
-
setOpenContentProperty
public void setOpenContentProperty(Property property, Object value)
- Specified by:
setOpenContentPropertyin interfaceValueStore
-
isSetDeclaredProperty
public boolean isSetDeclaredProperty(int propertyIndex)
- Specified by:
isSetDeclaredPropertyin interfaceValueStore
-
isSetOpenContentProperty
public boolean isSetOpenContentProperty(Property property)
- Specified by:
isSetOpenContentPropertyin interfaceValueStore
-
unsetDeclaredProperty
public void unsetDeclaredProperty(int propertyIndex)
- Specified by:
unsetDeclaredPropertyin interfaceValueStore
-
unsetOpenContentProperty
public void unsetOpenContentProperty(Property property)
- Specified by:
unsetOpenContentPropertyin interfaceValueStore
-
initialize
public 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.- Specified by:
initializein interfaceValueStore- Parameters:
aDataObject-
-
setTypePropertyValues
public void setTypePropertyValues(Object[] typePropertyValuesArray)
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
public Object[] getTypePropertyValues()
INTERNAL:- Returns:
- Object[] of the values of declared properties
-
getTypePropertiesIsSetStatus
public boolean[] getTypePropertiesIsSetStatus()
INTERNAL:- Returns:
- boolean[] of isSet values for declared properties
-
setOpenContentValues
public void setOpenContentValues(Map openContentValues)
INTERNAL:- Parameters:
openContentValues-
-
getOpenContentValues
public Map getOpenContentValues()
INTERNAL:- Returns:
- Non-null Map of values for open content properties
-
setManyProperty
public void setManyProperty(Property property, Object value)
- Specified by:
setManyPropertyin interfaceValueStore
-
copy
public ValueStore copy()
Get a shallow copy of the original ValueStore. Changes made to the copy must not impact the original ValueStore- Specified by:
copyin interfaceValueStore- Returns:
- ValueStore
-
equals
public boolean equals(Object obj)
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
-
-