public class OAObjectInfoDelegate extends Object
Constructor and Description |
---|
OAObjectInfoDelegate() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addCalcInfo(OAObjectInfo thisOI,
OACalcInfo ci) |
static void |
addLinkInfo(OAObjectInfo thisOI,
OALinkInfo li) |
static boolean |
cacheHub(OALinkInfo li,
Hub hub)
Used by OAObject.getHub() to cache hubs for links that have
a weakreference only.
|
static Method[] |
getAllMethods(OAObjectInfo oi) |
static Class |
getHubPropertyClass(Class clazz,
String propertyName) |
static OALinkInfo |
getLinkInfo(Class fromClass,
Class toClass) |
static OALinkInfo |
getLinkInfo(Class clazz,
String propertyName) |
static OALinkInfo |
getLinkInfo(OAObjectInfo oi,
Class toClass) |
static OALinkInfo |
getLinkInfo(OAObjectInfo oi,
OAObject fromObject,
Hub hub)
Find the linkInfo for a refererenc.
|
static OALinkInfo |
getLinkInfo(OAObjectInfo oi,
String propertyName) |
static OALinkInfo |
getLinkToOwner(OAObjectInfo thisOI) |
static Method |
getMethod(Class clazz,
String methodName) |
static Method |
getMethod(OALinkInfo li) |
static Method |
getMethod(OAObjectInfo oi,
String methodName) |
static Method |
getMethod(OAObjectInfo oi,
String methodName,
int argumentCount) |
static byte[] |
getNullBitMask(OAObject oaObj) |
static OACalcInfo |
getOACalcInfo(OAObjectInfo thisOI,
String name) |
static OAObjectInfo |
getOAObjectInfo(Class clazz) |
static OAObjectInfo |
getOAObjectInfo(OAObject obj)
Return the OAObjectInfo for this object Class.
|
static OAObjectInfo |
getObjectInfo(Class clazz) |
static OAObjectInfo |
getObjectInfo(OAObject obj) |
static OALinkInfo[] |
getOwndedLinkInfos(OAObject obj) |
static OALinkInfo[] |
getOwndedLinkInfos(OAObjectInfo oi) |
static Class |
getPropertyClass(Class clazz,
String propertyName) |
static Class |
getPropertyClass(OAObjectInfo oi,
String propertyName) |
static Object[] |
getPropertyIdValues(OAObject oaObj) |
static OAPropertyInfo |
getPropertyInfo(OAObjectInfo oi,
String propertyName) |
static String[] |
getPropertyNames(Class clazzOrig,
boolean bIncludeSuperClasses) |
static OALinkInfo |
getRecursiveLinkInfo(OAObjectInfo thisOI,
int type) |
static OALinkInfo |
getReverseLinkInfo(OALinkInfo thisLi) |
static Hub |
getRootHub(OAObjectInfo thisOI) |
static void |
initialize(OAObjectInfo thisOI,
Class clazz) |
static boolean |
isCached(OALinkInfo li,
Hub hub) |
static boolean |
isHubProperty(OAObjectInfo oi,
String propertyName) |
static boolean |
isIdProperty(OAObjectInfo oi,
String propertyName) |
static boolean |
isMany2Many(OALinkInfo thisLi) |
static boolean |
isOne2One(OALinkInfo thisLi) |
static boolean |
isPrimitive(OAPropertyInfo pi) |
static boolean |
isPrimitiveNull(OAObject oaObj,
String propertyName) |
static boolean |
isPrimitiveProperty(OAObjectInfo oi,
String propertyName) |
static boolean |
isWeakReferenceable(OAObject oaObj)
Returns true if any of the parent links has type=Many and cacheSize & 0,
which means that this object can be GCd.
|
static boolean |
isWeakReferenceable(OAObjectInfo oi) |
static String |
reversePath(Class clazz,
String propertyPath)
20100930 I started this to use for reversing from TreeNode to get path to top/root
this wont work, unless the parent nodes are also used
Take a property path that is "to" a class, and reverse it.
|
static void |
setPrimitiveNull(OAObject oaObj,
String propertyName,
boolean bSetToNull) |
static void |
setRootHub(OAObjectInfo thisOI,
Hub h)
if this is a recursive object that does not have an owner, then the root hub can be set for all
hubs of this class.
|
protected static void |
storeMethod(Class clazz,
Method method) |
public static OAObjectInfo getOAObjectInfo(OAObject obj)
public static OAObjectInfo getObjectInfo(OAObject obj)
public static OAObjectInfo getOAObjectInfo(Class clazz)
public static OAObjectInfo getObjectInfo(Class clazz)
public static void initialize(OAObjectInfo thisOI, Class clazz)
public static String[] getPropertyNames(Class clazzOrig, boolean bIncludeSuperClasses)
public static void addLinkInfo(OAObjectInfo thisOI, OALinkInfo li)
protected static void addCalcInfo(OAObjectInfo thisOI, OACalcInfo ci)
public static OACalcInfo getOACalcInfo(OAObjectInfo thisOI, String name)
public static OALinkInfo getRecursiveLinkInfo(OAObjectInfo thisOI, int type)
public static OALinkInfo getLinkToOwner(OAObjectInfo thisOI)
public static void setRootHub(OAObjectInfo thisOI, Hub h)
public static Hub getRootHub(OAObjectInfo thisOI)
public static boolean cacheHub(OALinkInfo li, Hub hub)
public static boolean isCached(OALinkInfo li, Hub hub)
public static OALinkInfo getReverseLinkInfo(OALinkInfo thisLi)
public static boolean isMany2Many(OALinkInfo thisLi)
public static boolean isOne2One(OALinkInfo thisLi)
public static Method getMethod(OALinkInfo li)
public static Method getMethod(OAObjectInfo oi, String methodName)
public static Method getMethod(OAObjectInfo oi, String methodName, int argumentCount)
public static Method[] getAllMethods(OAObjectInfo oi)
public static Class getPropertyClass(OAObjectInfo oi, String propertyName)
public static OALinkInfo getLinkInfo(Class clazz, String propertyName)
public static OALinkInfo getLinkInfo(OAObjectInfo oi, String propertyName)
public static OALinkInfo[] getOwndedLinkInfos(OAObjectInfo oi)
public static OALinkInfo[] getOwndedLinkInfos(OAObject obj)
public static OALinkInfo getLinkInfo(OAObjectInfo oi, OAObject fromObject, Hub hub)
fromObject
- object to use to find the reference in.hub
- reference object to find linkInfo for.public static OALinkInfo getLinkInfo(Class fromClass, Class toClass)
public static OALinkInfo getLinkInfo(OAObjectInfo oi, Class toClass)
public static OAPropertyInfo getPropertyInfo(OAObjectInfo oi, String propertyName)
public static boolean isIdProperty(OAObjectInfo oi, String propertyName)
public static boolean isPrimitive(OAPropertyInfo pi)
public static boolean isPrimitiveProperty(OAObjectInfo oi, String propertyName)
public static boolean isHubProperty(OAObjectInfo oi, String propertyName)
public static byte[] getNullBitMask(OAObject oaObj)
public static void setPrimitiveNull(OAObject oaObj, String propertyName, boolean bSetToNull)
public static String reversePath(Class clazz, String propertyPath)
clazz
- propertyPath
- public static boolean isWeakReferenceable(OAObject oaObj)
public static boolean isWeakReferenceable(OAObjectInfo oi)
Copyright © 1999–2019 ViaOA. All rights reserved.