public class OAObjectHubDelegate extends Object
Modifier and Type | Field and Description |
---|---|
static AtomicInteger |
aiReuseWeakRef |
static AtomicInteger |
aiReuseWeakRefArray |
static boolean |
ShowWarnings |
Constructor and Description |
---|
OAObjectHubDelegate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addHub(OAObject oaObj,
Hub hub) |
static boolean |
addHub(OAObject oaObj,
Hub hubOrig,
boolean bAlwaysAddIfM2M)
Called by Hub when an OAObject is added to a Hub.
|
protected static void |
deleteAll(Hub hub,
OACascade cascade) |
static void |
fireMasterObjectHubChangeEvent(Hub thisHub,
boolean bRefreshFlag) |
protected static boolean |
getChanged(Hub thisHub,
int changedRule,
OACascade cascade) |
static Hub |
getHub(OAObject oaObj,
OALinkInfo li) |
static int |
getHubReferenceCount(OAObject oaObj)
removed 20180613
// note: need to use HubDataDelegate.contains(..) instead, since a certain type of hub wont be stored in obj.weakrefs
public static boolean isInHub(OAObject oaObj, Hub hub) {
if (oaObj == null || hub == null) return false;
WeakReference
|
static Hub[] |
getHubReferences(OAObject oaObj)
Return all Hubs that this object is a member of.
|
static WeakReference<Hub<?>>[] |
getHubReferencesNoCopy(OAObject oaObj) |
static boolean |
isAlreadyInHub(OAObject oaObj,
Hub hubFind)
Used by Hub.add() before adding, quicker then checking array
|
static boolean |
isAlreadyInHub(OAObject oaObj,
OALinkInfo li)
Used by Hub to read serialized objects.
|
static boolean |
isInHub(OAObject oaObj) |
static boolean |
isInHubWithMaster(OAObject oaObj) |
static boolean |
isInHubWithMaster(OAObject oaObj,
Hub hubToIgnore) |
static void |
removeHub(OAObject oaObj,
Hub hub,
boolean bIsOnHubFinalize)
Called by Hub when an OAObject is removed from a Hub.
|
protected static void |
saveAll(Hub hub,
int iCascadeRule,
OACascade cascade) |
static void |
setMasterObject(Hub hub,
OAObject oaObj,
OALinkInfo liDetailToMaster) |
static void |
setMasterObject(Hub hub,
OAObject oaObj,
String nameFromMasterToDetail) |
public static boolean ShowWarnings
public static final AtomicInteger aiReuseWeakRefArray
public static final AtomicInteger aiReuseWeakRef
public static void fireMasterObjectHubChangeEvent(Hub thisHub, boolean bRefreshFlag)
public static boolean isInHub(OAObject oaObj)
public static boolean isInHubWithMaster(OAObject oaObj)
public static void removeHub(OAObject oaObj, Hub hub, boolean bIsOnHubFinalize)
public static Hub[] getHubReferences(OAObject oaObj)
public static WeakReference<Hub<?>>[] getHubReferencesNoCopy(OAObject oaObj)
public static int getHubReferenceCount(OAObject oaObj)
public static boolean addHub(OAObject oaObj, Hub hubOrig, boolean bAlwaysAddIfM2M)
public static boolean isAlreadyInHub(OAObject oaObj, OALinkInfo li)
public static Hub getHub(OAObject oaObj, OALinkInfo li)
public static boolean isAlreadyInHub(OAObject oaObj, Hub hubFind)
public static void setMasterObject(Hub hub, OAObject oaObj, OALinkInfo liDetailToMaster)
Copyright © 1999–2019 ViaOA. All rights reserved.