Package org.eclipse.persistence.sdo
Class SDOSequence
java.lang.Object
org.eclipse.persistence.sdo.SDOSequence
- All Implemented Interfaces:
Sequence
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new entry with the specified property index and value at the specified entry index.void
Adds a new entry with the specified property and value at the specified entry index.boolean
Adds a new entry with the specified property index and value to the end of the entries.void
void
Adds a new entry with the specified property name and value at the specified entry index.boolean
Adds a new entry with the specified property and value to the end of the entries.void
boolean
Adds a new entry with the specified property name and value to the end of the entries.boolean
addSettingWithoutModifyingDataObject
(int index, Property property, Object value) INTERNAL: Add a setting to the list at the specified index.boolean
addSettingWithoutModifyingDataObject
(Property property, Object value) INTERNAL:boolean
addSettingWithoutModifyingDataObject
(Property property, Object value, boolean checkAllowed) INTERNAL:void
Adds a new text entry at the given index.void
Adds a new text entry to the end of the Sequence.void
addValueToSettings
(Setting setting) INTERNAL:void
INTERNAL: Ensure that each Setting in the settings list is also present in the valuesToSettings mapcopy()
int
getIndexForProperty
(Property property) INTERNAL: Convenience method that returns the index of the Setting associated with a given property in the Settings listgetProperty
(int index) Returns the property for the given entry index.getProperty
(Setting setting) static Setting
getRootSetting
(Setting setting) INTERNAL: Get the root Setting for a given Setting.getValue
(int index) Returns the property value for the given entry index.void
move
(int toIndex, int fromIndex) Moves the entry atfromIndex
totoIndex
.void
remove
(int index) Removes the entry at the given entry index.void
INTERNAL:void
removeSettingWithoutModifyingDataObject
(Property property, Object value) INTERNAL:void
removeValueToSettings
(Setting setting) INTERNAL:Sets the entry at a specified index to the new value.int
size()
Returns the number of entries in the sequence.void
updateSettingWithoutModifyingDataObject
(Property property, Object oldValue, Object newValue) INTERNAL:
-
Constructor Details
-
SDOSequence
-
-
Method Details
-
getDataObject
-
getSettings
-
getValuesToSettings
-
add
Description copied from interface:Sequence
Adds a new entry with the specified property index and value at the specified entry index. -
add
Description copied from interface:Sequence
Adds a new entry with the specified property index and value to the end of the entries. -
add
Description copied from interface:Sequence
Adds a new entry with the specified property and value at the specified entry index. -
add
Description copied from interface:Sequence
Adds a new entry with the specified property name and value at the specified entry index. -
add
-
add
Description copied from interface:Sequence
Adds a new entry with the specified property and value to the end of the entries. -
add
Description copied from interface:Sequence
Adds a new entry with the specified property name and value to the end of the entries. -
add
-
addText
Description copied from interface:Sequence
Adds a new text entry at the given index. -
addText
Description copied from interface:Sequence
Adds a new text entry to the end of the Sequence. -
getProperty
Description copied from interface:Sequence
Returns the property for the given entry index. Returnsnull
for mixed text entries.- Specified by:
getProperty
in interfaceSequence
- Parameters:
index
- the index of the entry.- Returns:
- the property or
null
for the given entry index.
-
getProperty
-
getValue
Description copied from interface:Sequence
Returns the property value for the given entry index. -
move
public void move(int toIndex, int fromIndex) Description copied from interface:Sequence
Moves the entry atfromIndex
totoIndex
. -
remove
public void remove(int index) Description copied from interface:Sequence
Removes the entry at the given entry index. -
addValueToSettings
INTERNAL:- Parameters:
setting
-
-
removeValueToSettings
INTERNAL:- Parameters:
setting
-
-
setValue
Description copied from interface:Sequence
Sets the entry at a specified index to the new value. -
size
public int size()Description copied from interface:Sequence
Returns the number of entries in the sequence. -
copy
-
addSettingWithoutModifyingDataObject
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
INTERNAL: -
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(Property property, Object value, boolean checkAllowed) INTERNAL: -
updateSettingWithoutModifyingDataObject
public void updateSettingWithoutModifyingDataObject(Property property, Object oldValue, Object newValue) INTERNAL: -
removeSettingWithoutModifyingDataObject
INTERNAL: -
removeSettingWithoutModifyingDataObject
INTERNAL: -
getIndexForProperty
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
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
-