This Rogue Wave Views Script class is a proxy for Rogue Wave Server n-ary relations. More...
#include <javascript/serverside.h>
Public Member Functions | |
| void | add (IlsViewed target) |
| Adds a target to the n-ary relation. More... | |
| void | clear () |
| Clears the contents of the relation. More... | |
| IlsViewed | get (String id) |
| Returns the first object identified by id that is stored in the relation. More... | |
| IlsViewed | getElementAt (Int index) |
| Returns the object located at position index if it exists. More... | |
| Boolean | isIn (IlsViewed obj) |
| Returns true if the relation contains the specified object. | |
| void | remove (IlsViewed target) |
| Removes the specified target from the n-ary relation. More... | |
Public Attributes | |
| 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.
IlsServerRelationIterator (script class). | void javascript::IlsServerRelation::add | ( | IlsViewed | target | ) |
Adds a target to the n-ary relation.
| target | target to be added. |
| 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.
| IlsViewed javascript::IlsServerRelation::get | ( | String | id | ) |
Returns the first object identified by id that is stored in the relation.
The method calls the C++ member function IlsDynObject::getElementFromRel(const IlsRelationDef*, const IlsString&) const on the owner of the relation to retrieve the identified object, if it exists.
| id | id of the object. |
| IlsViewed javascript::IlsServerRelation::getElementAt | ( | Int | index | ) |
Returns the object located at position index if it exists.
| index | position index. |
| void javascript::IlsServerRelation::remove | ( | IlsViewed | target | ) |
Removes the specified target from the n-ary relation.
| target | target to be removed. |
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.