Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.sdo
Class SDOSequence

java.lang.Object
  extended by org.eclipse.persistence.sdo.SDOSequence


public class SDOSequence
extends java.lang.Object

Nested Class Summary
private static class SDOSequence.Key
           

 

Field Summary
private  SDODataObject dataObject
           
private  java.util.List<Setting> settings
           
private static java.lang.String TEXT_XPATH
           
private  java.util.Map<SDOSequence.Key,Setting> valuesToSettings
           

 

Constructor Summary
SDOSequence(SDODataObject dataObject)
           

 

Method Summary
 void add(int index, int propertyIndex, java.lang.Object value)
           
 boolean add(int propertyIndex, java.lang.Object value)
           
 void add(int index, Property property, java.lang.Object value)
           
 void add(int index, java.lang.String text)
           
 boolean add(Property property, java.lang.Object value)
           
 void add(java.lang.String text)
           
 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)
           
 void addText(java.lang.String text)
           
 void addValueToSettings(Setting setting)
          INTERNAL:
 void afterUnmarshal()
          INTERNAL: Ensure that each Setting in the settings list is also present in the valuesToSettings map
private  Setting convertToSetting(Property property, java.lang.Object value)
           
private  Setting convertToSetting(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment, NamespaceResolver nsResolver)
           
 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
private  int getIndexInList(Property manyProp, java.lang.Object value)
          INTERNAL: Convenience method that, given a many property and a value, returns the associated Setting's index in the Settings list.
 SDOProperty getProperty(int 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)
           
private  java.lang.Object getValue(Setting setting)
           
protected  java.util.Map<SDOSequence.Key,Setting> getValuesToSettings()
           
private  boolean isAllowedInSequence(Property property)
           
 void move(int toIndex, int fromIndex)
           
 void remove(int index)
           
private  void remove(Setting setting)
           
 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)
           
private  java.lang.Object setValue(Setting setting, java.lang.Object value)
           
 int size()
           
 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

 

Field Detail

TEXT_XPATH

private static final java.lang.String TEXT_XPATH
See Also:
Constant Field Values

dataObject

private SDODataObject dataObject

settings

private java.util.List<Setting> settings

valuesToSettings

private java.util.Map<SDOSequence.Key,Setting> valuesToSettings

Constructor Detail

SDOSequence

public SDOSequence(SDODataObject dataObject)

Method Detail

getDataObject

public SDODataObject getDataObject()

getSettings

public java.util.List<Setting> getSettings()

getValuesToSettings

protected java.util.Map<SDOSequence.Key,Setting> getValuesToSettings()

add

public void add(int index,
                int propertyIndex,
                java.lang.Object value)

add

public boolean add(int propertyIndex,
                   java.lang.Object value)

add

public void add(int index,
                Property property,
                java.lang.Object value)

isAllowedInSequence

private boolean isAllowedInSequence(Property property)

add

public void add(int index,
                java.lang.String text)

add

public boolean add(Property property,
                   java.lang.Object value)

add

public void add(java.lang.String text)

addText

public void addText(int index,
                    java.lang.String text)

addText

public void addText(java.lang.String text)

getProperty

public SDOProperty getProperty(int index)

getProperty

public SDOProperty getProperty(Setting setting)

getValue

public java.lang.Object getValue(int index)

getValue

private java.lang.Object getValue(Setting setting)

move

public void move(int toIndex,
                 int fromIndex)

remove

public void remove(int index)

remove

private void remove(Setting setting)

addValueToSettings

public void addValueToSettings(Setting setting)
INTERNAL:
Parameters:
setting -

removeValueToSettings

public void removeValueToSettings(Setting setting)
INTERNAL:
Parameters:
setting -

setValue

public java.lang.Object setValue(int index,
                                 java.lang.Object value)

setValue

private java.lang.Object setValue(Setting setting,
                                  java.lang.Object value)

size

public int size()

convertToSetting

private Setting convertToSetting(Property property,
                                 java.lang.Object value)

convertToSetting

private Setting convertToSetting(org.eclipse.persistence.internal.oxm.XPathFragment xPathFragment,
                                 NamespaceResolver nsResolver)

copy

public SDOSequence copy()

addSettingWithoutModifyingDataObject

public boolean addSettingWithoutModifyingDataObject(int index,
                                                    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 list
property -
value -
Returns:
true if the a Setting was successfully added to the list, otherwise false

addSettingWithoutModifyingDataObject

public boolean addSettingWithoutModifyingDataObject(Property property,
                                                    java.lang.Object value)
INTERNAL:

addSettingWithoutModifyingDataObject

public boolean addSettingWithoutModifyingDataObject(Property property,
                                                    java.lang.Object value,
                                                    boolean checkAllowed)
INTERNAL:

updateSettingWithoutModifyingDataObject

public void updateSettingWithoutModifyingDataObject(Property property,
                                                    java.lang.Object oldValue,
                                                    java.lang.Object newValue)
INTERNAL:

removeSettingWithoutModifyingDataObject

public void removeSettingWithoutModifyingDataObject(Property property,
                                                    java.lang.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

getIndexInList

private int getIndexInList(Property manyProp,
                           java.lang.Object value)
INTERNAL: Convenience method that, given a many property and a value, returns the associated Setting's index in the Settings list. For example, if a sequence contains many properties "letters" and "numbers", such as [A, 1, C, 2, B, D], and we are looking for the letter B, this method will return 2. Although B is at index 4 of the Settings list, it is at index 2 of the list of "letters" - [A, C, B, D].
Parameters:
property -
Returns:
index of the value's Setting in the list relative to a given property or -1 if not found.

getRootSetting

public static Setting getRootSetting(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

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.