Constructor and Description |
---|
SDOSequence(SDODataObject dataObject) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
int propertyIndex,
java.lang.Object value)
Adds a new entry with the specified property index and value
at the specified entry index.
|
boolean |
add(int propertyIndex,
java.lang.Object value)
Adds a new entry with the specified property index and value
to the end of the entries.
|
void |
add(int index,
Property property,
java.lang.Object value)
Adds a new entry with the specified property and value
at the specified entry index.
|
void |
add(int index,
java.lang.String text) |
void |
add(int index,
java.lang.String propertyName,
java.lang.Object value)
Adds a new entry with the specified property name and value
at the specified entry index.
|
boolean |
add(Property property,
java.lang.Object value)
Adds a new entry with the specified property and value
to the end of the entries.
|
void |
add(java.lang.String text) |
boolean |
add(java.lang.String propertyName,
java.lang.Object value)
Adds a new entry with the specified property name and value
to the end of the entries.
|
boolean |
addSettingWithoutModifyingDataObject(int index,
Property property,
java.lang.Object value)
INTERNAL: Add a setting to the list at the specified index.
|
boolean |
addSettingWithoutModifyingDataObject(Property property,
java.lang.Object value)
INTERNAL:
|
boolean |
addSettingWithoutModifyingDataObject(Property property,
java.lang.Object value,
boolean checkAllowed)
INTERNAL:
|
void |
addText(int index,
java.lang.String text)
Adds a new text entry at the given index.
|
void |
addText(java.lang.String text)
Adds a new text entry to the end of the Sequence.
|
void |
addValueToSettings(Setting setting)
INTERNAL:
|
void |
afterUnmarshal()
INTERNAL: Ensure that each Setting in the settings list is also present
in the valuesToSettings map
|
SDOSequence |
copy() |
SDODataObject |
getDataObject() |
int |
getIndexForProperty(Property property)
INTERNAL: Convenience method that returns the index of the Setting
associated with a given property in the Settings list
|
SDOProperty |
getProperty(int index)
Returns the property for the given entry index.
|
SDOProperty |
getProperty(Setting setting) |
static Setting |
getRootSetting(Setting setting)
INTERNAL: Get the root Setting for a given Setting.
|
java.util.List<Setting> |
getSettings() |
java.lang.Object |
getValue(int index)
Returns the property value for the given entry index.
|
protected java.util.Map<org.eclipse.persistence.sdo.SDOSequence.Key,Setting> |
getValuesToSettings() |
void |
move(int toIndex,
int fromIndex)
Moves the entry at
fromIndex to toIndex . |
void |
remove(int index)
Removes the entry at the given entry index.
|
void |
removeSettingWithoutModifyingDataObject(Property property)
INTERNAL:
|
void |
removeSettingWithoutModifyingDataObject(Property property,
java.lang.Object value)
INTERNAL:
|
void |
removeValueToSettings(Setting setting)
INTERNAL:
|
java.lang.Object |
setValue(int index,
java.lang.Object value)
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,
java.lang.Object oldValue,
java.lang.Object newValue)
INTERNAL:
|
public SDOSequence(SDODataObject dataObject)
public SDODataObject getDataObject()
public java.util.List<Setting> getSettings()
protected java.util.Map<org.eclipse.persistence.sdo.SDOSequence.Key,Setting> getValuesToSettings()
public void add(int index, int propertyIndex, java.lang.Object value)
Sequence
public boolean add(int propertyIndex, java.lang.Object value)
Sequence
public void add(int index, Property property, java.lang.Object value)
Sequence
public void add(int index, java.lang.String propertyName, java.lang.Object value)
Sequence
public boolean add(Property property, java.lang.Object value)
Sequence
public boolean add(java.lang.String propertyName, java.lang.Object value)
Sequence
public void addText(int index, java.lang.String text)
Sequence
public void addText(java.lang.String text)
Sequence
public SDOProperty getProperty(int index)
Sequence
null
for mixed text entries.getProperty
in interface Sequence
index
- the index of the entry.null
for the given entry index.public SDOProperty getProperty(Setting setting)
public java.lang.Object getValue(int index)
Sequence
public void move(int toIndex, int fromIndex)
Sequence
fromIndex
to toIndex
.public void remove(int index)
Sequence
public void addValueToSettings(Setting setting)
setting
- public void removeValueToSettings(Setting setting)
setting
- public java.lang.Object setValue(int index, java.lang.Object value)
Sequence
public int size()
Sequence
public SDOSequence copy()
public boolean addSettingWithoutModifyingDataObject(int index, Property property, java.lang.Object value)
index
- the index at which to add the new Setting in the Settings listproperty
- value
- public boolean addSettingWithoutModifyingDataObject(Property property, java.lang.Object value)
public boolean addSettingWithoutModifyingDataObject(Property property, java.lang.Object value, boolean checkAllowed)
public void updateSettingWithoutModifyingDataObject(Property property, java.lang.Object oldValue, java.lang.Object newValue)
public void removeSettingWithoutModifyingDataObject(Property property, java.lang.Object value)
public void removeSettingWithoutModifyingDataObject(Property property)
public int getIndexForProperty(Property property)
property
- public static Setting getRootSetting(Setting setting)
setting
- public void afterUnmarshal()