wt.fc.collections
Class ReferenceUtility

java.lang.Object
  extended bywt.fc.collections.ReferenceUtility

final class ReferenceUtility
extends Object

Package-private class that provides helper methods for dealing with key masks, references, and QueryKeys.

Supported API: false

Extendable: false


Field Summary
(package private) static ReferenceResolver resolver
           
 
Constructor Summary
private ReferenceUtility()
           
 
Method Summary
(package private) static WTReference clone(WTReference r, int key_mask, boolean deep)
           
(package private) static QueryKey createQueryKey(int mask, String classname, long id)
           
(package private) static WTReference createReference(int mask, Persistable p)
           
(package private) static WTReference createReference(int mask, QueryKey query_key)
           
(package private) static void deflate(WTReference ref)
           
(package private) static Object getExternalizedForm(WTReference r, boolean deflate)
           
(package private) static long getId(QueryKey key)
           
(package private) static int getKeyType(int mask, Class c)
           
(package private) static Persistable getPersistable(WTReference r)
           
(package private) static QueryKey getQueryKey(int mask, Persistable p)
           
(package private) static QueryKey getQueryKey(WTReference r)
          Handle the case of an ObjectReference constructed with an unpersisted object that was created by duplicating a persisted object, in which case it has the previous object's oid but has deleted set to true r WTReference
(package private) static boolean hasObjectIdentifier(Persistable p)
          Return true if the persistable has a non-null, assigned oid and is either persisted or deleted
(package private) static void inflate(WTCollection source, Collection references)
           
(package private) static void inflate(WTCollection source, Collection references, RefreshSpec spec)
           
(package private) static void inflate(WTReference ref, Persistable p)
           
(package private) static boolean isEnabled(int mask, int flag)
           
(package private) static boolean isInflated(WTReference ref)
           
(package private) static boolean isPersisted(WTReference ref)
           
(package private) static void validate(int mask, QueryKey key)
           
(package private) static void validate(int mask, WTReference ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver

static final ReferenceResolver resolver
Constructor Detail

ReferenceUtility

private ReferenceUtility()
Method Detail

clone

static WTReference clone(WTReference r,
                         int key_mask,
                         boolean deep)

createQueryKey

static QueryKey createQueryKey(int mask,
                               String classname,
                               long id)

createReference

static WTReference createReference(int mask,
                                   Persistable p)

createReference

static WTReference createReference(int mask,
                                   QueryKey query_key)

deflate

static void deflate(WTReference ref)

getExternalizedForm

static Object getExternalizedForm(WTReference r,
                                  boolean deflate)

getId

static long getId(QueryKey key)

getKeyType

static int getKeyType(int mask,
                      Class c)

getQueryKey

static QueryKey getQueryKey(int mask,
                            Persistable p)

getPersistable

static Persistable getPersistable(WTReference r)

getQueryKey

static QueryKey getQueryKey(WTReference r)
Handle the case of an ObjectReference constructed with an unpersisted object that was created by duplicating a persisted object, in which case it has the previous object's oid but has deleted set to true r WTReference

Returns:
QueryKey

hasObjectIdentifier

static boolean hasObjectIdentifier(Persistable p)
Return true if the persistable has a non-null, assigned oid and is either persisted or deleted

Parameters:
p -
Returns:
boolean

inflate

static void inflate(WTCollection source,
                    Collection references)
             throws WTException
Throws:
WTException

inflate

static void inflate(WTCollection source,
                    Collection references,
                    RefreshSpec spec)
             throws WTException
Throws:
WTException

inflate

static void inflate(WTReference ref,
                    Persistable p)

isEnabled

static boolean isEnabled(int mask,
                         int flag)

isInflated

static boolean isInflated(WTReference ref)

isPersisted

static boolean isPersisted(WTReference ref)

validate

static void validate(int mask,
                     QueryKey key)

validate

static void validate(int mask,
                     WTReference ref)