Package org.eclipse.persistence.sdo
Class SDOSequence
- java.lang.Object
-
- org.eclipse.persistence.sdo.SDOSequence
-
- All Implemented Interfaces:
commonj.sdo.Sequence
public class SDOSequence extends Object implements commonj.sdo.Sequence
-
-
Constructor Summary
Constructors Constructor Description SDOSequence(SDODataObject dataObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, int propertyIndex, Object value)
void
add(int index, commonj.sdo.Property property, Object value)
boolean
add(int propertyIndex, Object value)
void
add(int index, String text)
void
add(int index, String propertyName, Object value)
boolean
add(commonj.sdo.Property property, Object value)
void
add(String text)
boolean
add(String propertyName, Object value)
boolean
addSettingWithoutModifyingDataObject(int index, commonj.sdo.Property property, Object value)
INTERNAL: Add a setting to the list at the specified index.boolean
addSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object value)
INTERNAL:boolean
addSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object value, boolean checkAllowed)
INTERNAL:void
addText(int index, String text)
void
addText(String text)
void
addValueToSettings(Setting setting)
INTERNAL:void
afterUnmarshal()
INTERNAL: Ensure that each Setting in the settings list is also present in the valuesToSettings mapSDOSequence
copy()
SDODataObject
getDataObject()
int
getIndexForProperty(commonj.sdo.Property property)
INTERNAL: Convenience method that returns the index of the Setting associated with a given property in the Settings listSDOProperty
getProperty(int index)
SDOProperty
getProperty(Setting setting)
static Setting
getRootSetting(Setting setting)
INTERNAL: Get the root Setting for a given Setting.List<Setting>
getSettings()
Object
getValue(int index)
void
move(int toIndex, int fromIndex)
void
remove(int index)
void
removeSettingWithoutModifyingDataObject(commonj.sdo.Property property)
INTERNAL:void
removeSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object value)
INTERNAL:void
removeValueToSettings(Setting setting)
INTERNAL:Object
setValue(int index, Object value)
int
size()
void
updateSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object oldValue, Object newValue)
INTERNAL:
-
-
-
Constructor Detail
-
SDOSequence
public SDOSequence(SDODataObject dataObject)
-
-
Method Detail
-
getDataObject
public SDODataObject getDataObject()
-
add
public void add(int index, int propertyIndex, Object value)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public boolean add(int propertyIndex, Object value)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public void add(int index, commonj.sdo.Property property, Object value)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public void add(int index, String propertyName, Object value)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public void add(int index, String text)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public boolean add(commonj.sdo.Property property, Object value)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public boolean add(String propertyName, Object value)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
add
public void add(String text)
- Specified by:
add
in interfacecommonj.sdo.Sequence
-
addText
public void addText(int index, String text)
- Specified by:
addText
in interfacecommonj.sdo.Sequence
-
addText
public void addText(String text)
- Specified by:
addText
in interfacecommonj.sdo.Sequence
-
getProperty
public SDOProperty getProperty(int index)
- Specified by:
getProperty
in interfacecommonj.sdo.Sequence
-
getProperty
public SDOProperty getProperty(Setting setting)
-
getValue
public Object getValue(int index)
- Specified by:
getValue
in interfacecommonj.sdo.Sequence
-
move
public void move(int toIndex, int fromIndex)
- Specified by:
move
in interfacecommonj.sdo.Sequence
-
remove
public void remove(int index)
- Specified by:
remove
in interfacecommonj.sdo.Sequence
-
addValueToSettings
public void addValueToSettings(Setting setting)
INTERNAL:- Parameters:
setting
-
-
removeValueToSettings
public void removeValueToSettings(Setting setting)
INTERNAL:- Parameters:
setting
-
-
setValue
public Object setValue(int index, Object value)
- Specified by:
setValue
in interfacecommonj.sdo.Sequence
-
size
public int size()
- Specified by:
size
in interfacecommonj.sdo.Sequence
-
copy
public SDOSequence copy()
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(int index, commonj.sdo.Property property, Object value)
INTERNAL: Add a setting to the list at the specified index. The owning DataObject will not be made aware of this addition.- Parameters:
index
- the index at which to add the new Setting in the Settings listproperty
-value
-- Returns:
- true if the a Setting was successfully added to the list, otherwise false
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object value)
INTERNAL:
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object value, boolean checkAllowed)
INTERNAL:
-
updateSettingWithoutModifyingDataObject
public void updateSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object oldValue, Object newValue)
INTERNAL:
-
removeSettingWithoutModifyingDataObject
public void removeSettingWithoutModifyingDataObject(commonj.sdo.Property property, Object value)
INTERNAL:
-
removeSettingWithoutModifyingDataObject
public void removeSettingWithoutModifyingDataObject(commonj.sdo.Property property)
INTERNAL:
-
getIndexForProperty
public int getIndexForProperty(commonj.sdo.Property property)
INTERNAL: Convenience method that returns the index of the Setting associated with a given property in the Settings list- Parameters:
property
-- Returns:
- index of the Setting associated with a given property in the Settings list or -1 if not found
-
getRootSetting
public static Setting getRootSetting(Setting setting)
INTERNAL: Get the root Setting for a given Setting.- Parameters:
setting
-- Returns:
- the root Setting or this Setting if it is a root
-
afterUnmarshal
public void afterUnmarshal()
INTERNAL: Ensure that each Setting in the settings list is also present in the valuesToSettings map
-
-