|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.SDOSequence
public class SDOSequence
INTERNAL:
Purpose:dataObject
. Any change to the containing dataObject such as deletion of a
sequenced property will result in removal of the setting from this sequence.
The methods on XMLDescriptor -get/setGetSettingsMethodName are used to
get/set these settings on the sequence
.
SDODataObject
,
org.eclipse.persistence.internal.oxm.XMLSetting
Constructor Summary | |
---|---|
SDOSequence(SDODataObject aDataObject)
|
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,
java.lang.String text)
Deprecated. replaced by addText(int, String) in 2.1.0 |
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. |
void |
add(java.lang.String text)
Deprecated. replaced by addText(String) in 2.1.0 |
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. |
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. |
boolean |
addWithoutUpdate(Property aProperty,
java.lang.Object anObject)
INTERNAL: Adds a new entry with the specified property and value to the end of the entries. |
SDOSequence |
copy()
INTERNAL: Return a deep copy of the SDOSequence object. |
SDODataObject |
getDataObject()
INTERNAL: Return the SDODataObject that this sequence is associated with. |
int |
getIndex(Property aProperty,
java.lang.Object aValue,
int occurrencePosition)
INTERNAL: Return the index corresponding the the setting based on the property value pair. |
Property |
getProperty(int index)
Returns the property for the given entry index. |
java.util.List |
getSettings()
INTERNAL: Return the list of SDOSetting objects. |
java.lang.Object |
getValue(int index)
Returns the property value for the given entry index. |
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 |
remove(int index,
boolean updateContainer)
INTERNAL: Remove the entry at the given sequence index |
void |
remove(java.lang.String propertyName,
java.lang.String uri,
boolean updateContainer)
INTERNAL: Remove all entries at the indexes that correspond to the given propertyName. |
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. |
java.lang.String |
toString()
INTERNAL: Print out a String representation of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SDOSequence(SDODataObject aDataObject)
Method Detail |
---|
public int size()
public java.util.List getSettings()
SDOSetting
objects.
public SDODataObject getDataObject()
SDODataObject
that this sequence is associated with.
public Property getProperty(int index)
null
for mixed text entries.
index
- the index of the entry.
null
for the given entry index.public java.lang.Object getValue(int index)
index
- the index of the entry.
public java.lang.Object setValue(int index, java.lang.Object value)
index
- the index of the entry.value
- the new value for the entry.public boolean add(java.lang.String propertyName, java.lang.Object value)
propertyName
- the name of the entry's property.value
- the value for the entry.public boolean add(int propertyIndex, java.lang.Object value)
propertyIndex
- the index of the entry's property.value
- the value for the entry.public boolean addWithoutUpdate(Property aProperty, java.lang.Object anObject)
Does not do an update of the container dataObject. This function is used internally by the SDODataObject implementation.
aProperty
- the property of the entry.anObject
- the value for the entry.public void add(int index, java.lang.String propertyName, java.lang.Object value)
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, int propertyIndex, java.lang.Object value)
index
- the index at which to add the entry.propertyIndex
- the index of the entry's property.value
- the value for the entry.public int getIndex(Property aProperty, java.lang.Object aValue, int occurrencePosition)
aProperty
- aValue
- occurrencePosition
- 0=first, 1=second..
public void remove(int index)
index
- the index of the entry.public void remove(java.lang.String propertyName, java.lang.String uri, boolean updateContainer)
propertyName
- updateContainer
- unsetInternal()
public void remove(int index, boolean updateContainer)
index
- updateContainer
- public void move(int toIndex, int fromIndex)
fromIndex
to toIndex
.
toIndex
- the index of the entry destination.fromIndex
- the index of the entry to move.public void add(java.lang.String text)
addText(String)
in 2.1.0
public void add(int index, java.lang.String text)
addText(int, String)
in 2.1.0
public void addText(java.lang.String text)
text
- value of the entry.public void addText(int index, java.lang.String text)
index
- the index at which to add the entry.text
- value of the entry.public SDOSequence copy()
public java.lang.String toString()
toString
in class java.lang.Object
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |