|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sdo.SDOSequence
public class SDOSequence
Constructor Summary | |
---|---|
SDOSequence(SDODataObject dataObject)
|
Method Summary | |
---|---|
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: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SDOSequence(SDODataObject dataObject)
Method Detail |
---|
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
add
in interface Sequence
index
- the index at which to add the entry.propertyIndex
- the index of the entry's property.value
- the value for the entry.public boolean add(int propertyIndex, java.lang.Object value)
Sequence
add
in interface Sequence
propertyIndex
- the index of the entry's property.value
- the value for the entry.public void add(int index, Property property, java.lang.Object value)
Sequence
add
in interface Sequence
index
- the index at which to add the entry.property
- the property of the entry.value
- the value for the entry.public void add(int index, java.lang.String propertyName, java.lang.Object value)
Sequence
add
in interface Sequence
index
- the index at which to add the entry.propertyName
- the name of the entry's property.value
- the value for the entry.public void add(int index, java.lang.String text)
add
in interface Sequence
public boolean add(Property property, java.lang.Object value)
Sequence
add
in interface Sequence
property
- the property of the entry.value
- the value for the entry.public boolean add(java.lang.String propertyName, java.lang.Object value)
Sequence
add
in interface Sequence
propertyName
- the name of the entry's property.value
- the value for the entry.public void add(java.lang.String text)
add
in interface Sequence
public void addText(int index, java.lang.String text)
Sequence
addText
in interface Sequence
index
- the index at which to add the entry.text
- value of the entry.public void addText(java.lang.String text)
Sequence
addText
in interface Sequence
text
- value of the entry.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
getValue
in interface Sequence
index
- the index of the entry.
public void move(int toIndex, int fromIndex)
Sequence
fromIndex
to toIndex
.
move
in interface Sequence
toIndex
- the index of the entry destination.fromIndex
- the index of the entry to move.public void remove(int index)
Sequence
remove
in interface Sequence
index
- the index of the entry.public void addValueToSettings(Setting setting)
setting
- public void removeValueToSettings(Setting setting)
setting
- public java.lang.Object setValue(int index, java.lang.Object value)
Sequence
setValue
in interface Sequence
index
- the index of the entry.value
- the new value for the entry.public int size()
Sequence
size
in interface 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()
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |