public class HubRootDelegate extends Object
Constructor and Description |
---|
HubRootDelegate() |
Modifier and Type | Method and Description |
---|---|
static Hub |
getRootHub(Hub thisHub)
If this is a recursive hub with an owner, then the root hub will be returned, else null.
|
static void |
setRootHub(Hub thisHub,
boolean b)
Used for recursive object relationships, to set the root Hub.
|
public static Hub getRootHub(Hub thisHub)
public static void setRootHub(Hub thisHub, boolean b)
The root is the Hub that where the reference to a parent object is null. OAObject and Hub will automatically keep/put objects in the correct Hub based on the parent reference.
Note: the root Hub is automatically set when a master object owns a Hub.
Example:
If a Class "Test" is recursive and a Class Employee has many "Tests", then each Employee object
will own a recursive list of "Test" Hubs. Each "Test" object under the Employee object will
have a reference to the Employee object.
Calls OAObjectInfo to set this hub as the root hub for other recursive hubs in same object class. If this is not a recursive hub then an exception will be thrown.
b
- if true then set thisHub as the root, else remove as the rootHub.Copyright © 1999–2019 ViaOA. All rights reserved.