This Rogue Wave Views Script class is a proxy for Rogue Wave Server n-ary relations.
More...
#include <javascript/serverside.h>
|
Boolean | dynamic |
| True if the relation is dynamic.
|
|
Boolean | inverse |
| True if the relation is an inverse relation.
|
|
Boolean | length |
| The number of elements in the relation.
|
|
String | name |
| Name of the n-ary relation.
|
|
Boolean | owns |
| True if the relation is an ownership relation.
|
|
This Rogue Wave Views Script class is a proxy for Rogue Wave Server n-ary relations.
- Warning
- This class is a JavaScript class, not a C++ one.
- See also
IlsServerRelationIterator
(script class).
◆ add()
void javascript::IlsServerRelation::add |
( |
IlsViewed |
target | ) |
|
Adds a target to the n-ary relation.
- Note
- You cannot add an object to the relation if an iterator has been opened on it.
- Parameters
-
target | target to be added. |
◆ clear()
void javascript::IlsServerRelation::clear |
( |
| ) |
|
Clears the contents of the relation.
Note that there must not be any open iterator on this relation when the method is called.
◆ get()
IlsViewed javascript::IlsServerRelation::get |
( |
String |
id | ) |
|
◆ getElementAt()
IlsViewed javascript::IlsServerRelation::getElementAt |
( |
Int |
index | ) |
|
Returns the object located at position index if it exists.
- Parameters
-
◆ remove()
void javascript::IlsServerRelation::remove |
( |
IlsViewed |
target | ) |
|
Removes the specified target from the n-ary relation.
- Note
- You cannot remove an object from the relation if an iterator has been opened on it.
- Parameters
-
target | target to be removed. |