public class OAObjectPropertyDelegate extends Object
Constructor and Description |
---|
OAObjectPropertyDelegate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
attemptPropertyLock(OAObject oaObj,
String name) |
static void |
clearProperties(OAObject oaObj) |
static Object |
getProperty(OAObject oaObj,
String name) |
static Object |
getProperty(OAObject oaObj,
String name,
boolean bReturnNotExist,
boolean bConvertWeakRef) |
static String[] |
getPropertyNames(OAObject oaObj) |
static boolean |
isPropertyLoaded(OAObject oaObj,
String name) |
static boolean |
isPropertyLocked(OAObject oaObj,
String name) |
static boolean |
isReferenceNull(OAObject oaObj,
String name)
check to see if property does or will exist (if it is oaObjKey).
|
static void |
releasePropertyLock(OAObject oaObj,
String name) |
static void |
removeProperty(OAObject oaObj,
String name,
boolean bFirePropertyChange) |
static boolean |
removePropertyIfNull(OAObject oaObj,
String name,
boolean bFirePropertyChange) |
static void |
setProperty(OAObject oaObj,
String name,
Object value) |
static Object |
setPropertyCAS(OAObject oaObj,
String name,
Object newValue,
Object matchValue) |
static Object |
setPropertyCAS(OAObject oaObj,
String name,
Object newValue,
Object matchValue,
boolean bMustNotExist,
boolean bReturnNotExist)
Compare and swap a property.
|
static void |
setPropertyHubIfNotSet(OAObject oaObj,
String name,
Object value) |
static boolean |
setPropertyLock(OAObject oaObj,
String name) |
static boolean |
setPropertyWeakRef(OAObject oaObj,
String name,
boolean bToWeakRef,
Object value) |
static void |
setReferenceable(OAObject obj,
boolean bReferenceable)
Used on server, this will make sure that a Hub does not get GCd on the Server.
|
static void |
unsafeSetProperty(OAObject oaObj,
String name,
Object value) |
public static boolean isPropertyLoaded(OAObject oaObj, String name)
public static boolean isReferenceNull(OAObject oaObj, String name)
public static void removeProperty(OAObject oaObj, String name, boolean bFirePropertyChange)
public static boolean removePropertyIfNull(OAObject oaObj, String name, boolean bFirePropertyChange)
public static void setPropertyHubIfNotSet(OAObject oaObj, String name, Object value)
public static Object setPropertyCAS(OAObject oaObj, String name, Object newValue, Object matchValue)
public static Object setPropertyCAS(OAObject oaObj, String name, Object newValue, Object matchValue, boolean bMustNotExist, boolean bReturnNotExist)
name
- property name, not case sensitivenewValue
- new value to set, if matchValue matches current settingmatchValue
- value that it must currently be set tobMustNotExist
- only update if there is not a current valuebReturnNotExist
- if true, then return OANotExist.instance if value does not
match and the current value does not exist.public static Object getProperty(OAObject oaObj, String name, boolean bReturnNotExist, boolean bConvertWeakRef)
oaObj
- name
- name to find, not case sensitivebReturnNotExist
- if true and the property name does not exist or it's value has not been loaded, then OANotExist.instancebConvertWeakRef
- if true and the value is a WeakReference, then it's value will be checked and returned.
is returned.public static boolean setPropertyWeakRef(OAObject oaObj, String name, boolean bToWeakRef, Object value)
public static void setReferenceable(OAObject obj, boolean bReferenceable)
bReferenceable
- true to make sure that it has a hard ref, otherwise a weakRef will be usedpublic static void clearProperties(OAObject oaObj)
Copyright © 1999–2019 ViaOA. All rights reserved.