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 java.lang.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 voidadd(int index, int propertyIndex, java.lang.Object value)voidadd(int index, commonj.sdo.Property property, java.lang.Object value)booleanadd(int propertyIndex, java.lang.Object value)voidadd(int index, java.lang.String text)voidadd(int index, java.lang.String propertyName, java.lang.Object value)booleanadd(commonj.sdo.Property property, java.lang.Object value)voidadd(java.lang.String text)booleanadd(java.lang.String propertyName, java.lang.Object value)booleanaddSettingWithoutModifyingDataObject(int index, commonj.sdo.Property property, java.lang.Object value)INTERNAL: Add a setting to the list at the specified index.booleanaddSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.Object value)INTERNAL:booleanaddSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.Object value, boolean checkAllowed)INTERNAL:voidaddText(int index, java.lang.String text)voidaddText(java.lang.String text)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(commonj.sdo.Property property)INTERNAL: Convenience method that returns the index of the Setting associated with a given property in the Settings listSDOPropertygetProperty(int 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.java.util.List<org.eclipse.persistence.oxm.sequenced.Setting>getSettings()java.lang.ObjectgetValue(int index)protected java.util.Map<org.eclipse.persistence.sdo.SDOSequence.Key,org.eclipse.persistence.oxm.sequenced.Setting>getValuesToSettings()voidmove(int toIndex, int fromIndex)voidremove(int index)voidremoveSettingWithoutModifyingDataObject(commonj.sdo.Property property)INTERNAL:voidremoveSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.Object value)INTERNAL:voidremoveValueToSettings(org.eclipse.persistence.oxm.sequenced.Setting setting)INTERNAL:java.lang.ObjectsetValue(int index, java.lang.Object value)intsize()voidupdateSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.Object oldValue, java.lang.Object newValue)INTERNAL:
-
-
-
Constructor Detail
-
SDOSequence
public SDOSequence(SDODataObject dataObject)
-
-
Method Detail
-
getDataObject
public SDODataObject getDataObject()
-
getSettings
public java.util.List<org.eclipse.persistence.oxm.sequenced.Setting> getSettings()
-
getValuesToSettings
protected java.util.Map<org.eclipse.persistence.sdo.SDOSequence.Key,org.eclipse.persistence.oxm.sequenced.Setting> getValuesToSettings()
-
add
public void add(int index, int propertyIndex, java.lang.Object value)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public boolean add(int propertyIndex, java.lang.Object value)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public void add(int index, commonj.sdo.Property property, java.lang.Object value)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public void add(int index, java.lang.String propertyName, java.lang.Object value)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public void add(int index, java.lang.String text)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public boolean add(commonj.sdo.Property property, java.lang.Object value)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public boolean add(java.lang.String propertyName, java.lang.Object value)- Specified by:
addin interfacecommonj.sdo.Sequence
-
add
public void add(java.lang.String text)
- Specified by:
addin interfacecommonj.sdo.Sequence
-
addText
public void addText(int index, java.lang.String text)- Specified by:
addTextin interfacecommonj.sdo.Sequence
-
addText
public void addText(java.lang.String text)
- Specified by:
addTextin interfacecommonj.sdo.Sequence
-
getProperty
public SDOProperty getProperty(int index)
- Specified by:
getPropertyin interfacecommonj.sdo.Sequence
-
getProperty
public SDOProperty getProperty(org.eclipse.persistence.oxm.sequenced.Setting setting)
-
getValue
public java.lang.Object getValue(int index)
- Specified by:
getValuein interfacecommonj.sdo.Sequence
-
move
public void move(int toIndex, int fromIndex)- Specified by:
movein interfacecommonj.sdo.Sequence
-
remove
public void remove(int index)
- Specified by:
removein interfacecommonj.sdo.Sequence
-
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 java.lang.Object setValue(int index, java.lang.Object value)- Specified by:
setValuein interfacecommonj.sdo.Sequence
-
size
public int size()
- Specified by:
sizein interfacecommonj.sdo.Sequence
-
copy
public SDOSequence copy()
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(int index, commonj.sdo.Property property, java.lang.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, java.lang.Object value)INTERNAL:
-
addSettingWithoutModifyingDataObject
public boolean addSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.Object value, boolean checkAllowed)INTERNAL:
-
updateSettingWithoutModifyingDataObject
public void updateSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.Object oldValue, java.lang.Object newValue)INTERNAL:
-
removeSettingWithoutModifyingDataObject
public void removeSettingWithoutModifyingDataObject(commonj.sdo.Property property, java.lang.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 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
-
-