IlsServerRelation
Category
Rogue Wave Views Script class (server side)
Description
This Rogue Wave Views Script class is a proxy for Rogue Wave Server n-ary relations.
Synopsis
Properties
name
owns
inverse
dynamic
length
Methods
add(IlsViewed)
remove(IlsViewed)
get(id)
clear()
object getElementAt(index)
boolean isIn(IlsViewed)
API
Properties
name
The name of the n-ary relation.
owns
This property is true if the relation is an ownership relation.
inverse
This property is true if the relation is an inverse relation.
dynamic
This property is true if the relation is dynamic.
length
This property returns the number of elements in the relation.
Methods
add(IlsViewed)
This method adds a target to the n-ary relation.
remove(IlsViewed)
This method removes the specified target from the n-ary relation.
Note: You cannot add or remove an object to or from the relation if an iterator has been opened on it. |
get(id)
This method returns the first object identified by
id that is stored in the relation. The method calls the C++ member function
IlsDynObject::getElementFromRel on the owner of the relation to retrieve the identified object, if it exists.
clear()
This method clears the contents of the relation. Note that there must not be any open iterator on this relation when the method is called.
object getElementAt(index)
This method returns the object located at position index if it exists.
boolean isIn(IlsViewed)
This method returns true if the relation contains the specified object.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.