|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.DefaultValueStore
public class DefaultValueStore
Purpose:Default implementation of the ValueStore interface.
Responsibilities:
Constructor Summary | |
---|---|
DefaultValueStore()
|
Method Summary | |
---|---|
ValueStore |
copy()
Get a shallow copy of the original ValueStore. |
java.lang.Object |
getDeclaredProperty(int propertyIndex)
Get declared property by index. |
java.lang.Object |
getOpenContentProperty(Property property)
Get open-content property by name. |
java.util.Map |
getOpenContentValues()
INTERNAL: |
boolean[] |
getTypePropertiesIsSetStatus()
INTERNAL: |
java.lang.Object[] |
getTypePropertyValues()
INTERNAL: |
void |
initialize(DataObject aDataObject)
Perform any post-instantiation integrity operations that could not be done during ValueStore creation. |
boolean |
isSetDeclaredProperty(int propertyIndex)
Get isSet boolean status for declared property by index. |
boolean |
isSetOpenContentProperty(Property property)
Get isSet boolean status for open-content property by name. |
void |
setDeclaredProperty(int propertyIndex,
java.lang.Object value)
Set declared property by index. |
void |
setManyProperty(Property property,
java.lang.Object value)
Set 1-n many-valued property by name. |
void |
setOpenContentProperty(Property property,
java.lang.Object value)
Set open-content property by name. |
void |
setOpenContentValues(java.util.Map openContentValues)
INTERNAL: |
void |
setTypePropertiesIsSetStatus(boolean[] typePropertiesIsSetStatusArray)
INTERNAL: |
void |
setTypePropertyValues(java.lang.Object[] typePropertyValuesArray)
Set the values for declared properties |
void |
unsetDeclaredProperty(int propertyIndex)
Unset declared property by index position If the property is many-valued ,
the value must be an List
and that list is cleared. |
void |
unsetOpenContentProperty(Property property)
Unset open-content property by name If the property is many-valued ,
the value must be an List
and that list is cleared. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultValueStore()
Method Detail |
---|
public java.lang.Object getDeclaredProperty(int propertyIndex)
many-valued
,
the result will be a ListWrapper
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.
getDeclaredProperty
in interface ValueStore
propertyIndex
- the property index of the value to fetch.
#setDeclaredProperty(Property, Object)
,
#unsetDeclaredProperty(Property)
,
#isSetDeclaredProperty(Property)
public java.lang.Object getOpenContentProperty(Property property)
many-valued
,
the result will be a ListWrapper
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.
getOpenContentProperty
in interface ValueStore
property
- the property to fetch the value of.
ValueStore.setOpenContentProperty(Property, Object)
,
ValueStore.unsetOpenContentProperty(Property)
,
ValueStore.isSetOpenContentProperty(Property)
public void setDeclaredProperty(int propertyIndex, 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.
setDeclaredProperty
in interface ValueStore
propertyIndex
- the property name of the value to set.value
- the new value for the property.s#unsetDeclaredProperty(Property)
,
#isSetDeclaredProperty(Property)
,
#getDeclaredProperty(Property)
public void setOpenContentProperty(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.
setOpenContentProperty
in interface ValueStore
property
- the property to be set.value
- the new value for the property.ValueStore.unsetOpenContentProperty(Property)
,
ValueStore.isSetOpenContentProperty(Property)
,
ValueStore.getOpenContentProperty(Property)
public boolean isSetDeclaredProperty(int propertyIndex)
isSet() for many-valued Properties returns true if the List is not empty and false if the List is empty. For single-valued Properties:
isSetDeclaredProperty
in interface ValueStore
propertyIndex
- the property index in question.
#setDeclaredProperty(String, Object)
,
#unsetDeclaredProperty(String)
,
#getDeclaredProperty(String)
public boolean isSetOpenContentProperty(Property property)
isSet() for many-valued Properties returns true if the List is not empty and false if the List is empty. For single-valued Properties:
isSetOpenContentProperty
in interface ValueStore
property
- the property in question.
#setOpenContentProperty(String, Object)
,
#unsetOpenContentProperty(String)
,
#getOpenContentProperty(String)
public void unsetDeclaredProperty(int propertyIndex)
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
.
unsetDeclaredProperty
in interface ValueStore
propertyIndex
- isSetDeclaredProperty(int)
,
setDeclaredProperty(int, Object)
,
getDeclaredProperty(int)
public void unsetOpenContentProperty(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
.
unsetOpenContentProperty
in interface ValueStore
property
- isSetDeclaredProperty(int)
,
setDeclaredProperty(int, Object)
,
getDeclaredProperty(int)
public void initialize(DataObject aDataObject)
initialize
in interface ValueStore
dataObject
- public void setTypePropertyValues(java.lang.Object[] typePropertyValuesArray)
typePropertyValuesArray
- public void setTypePropertiesIsSetStatus(boolean[] typePropertiesIsSetStatusArray)
typePropertiesIsSetStatusArray
- boolean[] of isSet values for declared propertiespublic java.lang.Object[] getTypePropertyValues()
public boolean[] getTypePropertiesIsSetStatus()
public void setOpenContentValues(java.util.Map openContentValues)
Map
- openContentValuespublic java.util.Map getOpenContentValues()
public void setManyProperty(Property property, java.lang.Object value)
ValueStore
setManyProperty
in interface ValueStore
public ValueStore copy()
copy
in interface ValueStore
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |