- java.lang.Object
-
- org.eclipse.persistence.sdo.SDOSequence
-
-
Constructor Summary
Constructors Constructor Description SDOSequence(SDODataObject dataObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, int propertyIndex, Object value)Adds a new entry with the specified property index and value at the specified entry index.voidadd(int index, Property property, Object value)Adds a new entry with the specified property and value at the specified entry index.booleanadd(int propertyIndex, Object value)Adds a new entry with the specified property index and value to the end of the entries.voidadd(int index, String text)voidadd(int index, String propertyName, Object value)Adds a new entry with the specified property name and value at the specified entry index.booleanadd(Property property, Object value)Adds a new entry with the specified property and value to the end of the entries.voidadd(String text)booleanadd(String propertyName, Object value)Adds a new entry with the specified property name and value to the end of the entries.booleanaddSettingWithoutModifyingDataObject(int index, Property property, Object value)INTERNAL: Add a setting to the list at the specified index.booleanaddSettingWithoutModifyingDataObject(Property property, Object value)INTERNAL:booleanaddSettingWithoutModifyingDataObject(Property property, Object value, boolean checkAllowed)INTERNAL:voidaddText(int index, String text)Adds a new text entry at the given index.voidaddText(String text)Adds a new text entry to the end of the Sequence.voidaddValueToSettings(org.eclipse.persistence.oxm.sequenced.Setting setting)INTERNAL:voidafterUnmarshal()INTERNAL: Ensure that each Setting in the settings list is also present in the valuesToSettings mapSDOSequencecopy()SDODataObjectgetDataObject()intgetIndexForProperty(Property property)INTERNAL: Convenience method that returns the index of the Setting associated with a given property in the Settings listSDOPropertygetProperty(int index)Returns the property for the given entry index.SDOPropertygetProperty(org.eclipse.persistence.oxm.sequenced.Setting setting)static org.eclipse.persistence.oxm.sequenced.SettinggetRootSetting(org.eclipse.persistence.oxm.sequenced.Setting setting)INTERNAL: Get the root Setting for a given Setting.List<org.eclipse.persistence.oxm.sequenced.Setting>getSettings()ObjectgetValue(int index)Returns the property value for the given entry index.voidmove(int toIndex, int fromIndex)Moves the entry atfromIndextotoIndex.voidremove(int index)Removes the entry at the given entry index.voidremoveSettingWithoutModifyingDataObject(Property property)INTERNAL:voidremoveSettingWithoutModifyingDataObject(Property property, Object value)INTERNAL:voidremoveValueToSettings(org.eclipse.persistence.oxm.sequenced.Setting setting)INTERNAL:ObjectsetValue(int index, Object value)Sets the entry at a specified index to the new value.intsize()Returns the number of entries in the sequence.voidupdateSettingWithoutModifyingDataObject(Property property, Object oldValue, Object newValue)INTERNAL:
-
-
-
Constructor Detail
-
SDOSequence
public SDOSequence(SDODataObject dataObject)
-
-
Method Detail
-
getDataObject
public SDODataObject getDataObject()
-
getSettings
public List<org.eclipse.persistence.oxm.sequenced.Setting> getSettings()
-
add
public void add(int index, int propertyIndex, Object value)Description copied from interface:SequenceAdds a new entry with the specified property index and value at the specified entry index.
-
add
public boolean add(int propertyIndex, Object value)Description copied from interface:SequenceAdds a new entry with the specified property index and value to the end of the entries.
-
add
public void add(int index, Property property, Object value)Description copied from interface:SequenceAdds a new entry with the specified property and value at the specified entry index.
-
add
public void add(int index, String propertyName, Object value)Description copied from interface:SequenceAdds a new entry with the specified property name and value at the specified entry index.
-
add
public boolean add(Property property, Object value)
Description copied from interface:SequenceAdds a new entry with the specified property and value to the end of the entries.
-
add
public boolean add(String propertyName, Object value)
Description copied from interface:SequenceAdds a new entry with the specified property name and value to the end of the entries.
-
addText
public void addText(int index, String text)Description copied from interface:SequenceAdds a new text entry at the given index.
-
addText
public void addText(String text)
Description copied from interface:SequenceAdds a new text entry to the end of the Sequence.
-
getProperty
public SDOProperty getProperty(int index)
Description copied from interface:SequenceReturns the property for the given entry index. Returnsnullfor mixed text entries.- Specified by:
getPropertyin interfaceSequence- Parameters:
index- the index of the entry.- Returns:
- the property or
nullfor the given entry index.
-
getProperty
public SDOProperty getProperty(org.eclipse.persistence.oxm.sequenced.Setting setting)
-
getValue
public Object getValue(int index)
Description copied from interface:SequenceReturns the property value for the given entry index.
-
move
public void move(int toIndex, int fromIndex)Description copied from interface:SequenceMoves the entry atfromIndextotoIndex.
-
remove
public void remove(int index)
Description copied from interface:SequenceRemoves the entry at the given entry index.
-
addValueToSettings
public void addValueToSettings(org.eclipse.persistence.oxm.sequenced.Setting setting)
INTERNAL:- Parameters:
setting-
-
removeValueToSettings
public void removeValueToSettings(org.eclipse.persistence.oxm.sequenced.Setting setting)
INTERNAL:- Parameters:
setting-
-
setValue
public Object setValue(int index, Object value)
Description copied from interface:SequenceSets the entry at a specified index to the new value.
-
size
public int size()
Description copied from interface:SequenceReturns the number of entries in the sequence.
-
copy
public SDOSequence copy()
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(int index, 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(Property property, Object value)
INTERNAL:
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(Property property, Object value, boolean checkAllowed)
INTERNAL:
-
updateSettingWithoutModifyingDataObject
public void updateSettingWithoutModifyingDataObject(Property property, Object oldValue, Object newValue)
INTERNAL:
-
removeSettingWithoutModifyingDataObject
public void removeSettingWithoutModifyingDataObject(Property property, Object value)
INTERNAL:
-
removeSettingWithoutModifyingDataObject
public void removeSettingWithoutModifyingDataObject(Property property)
INTERNAL:
-
getIndexForProperty
public int getIndexForProperty(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 org.eclipse.persistence.oxm.sequenced.Setting getRootSetting(org.eclipse.persistence.oxm.sequenced.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
-
-