wt.fc
Class CachedObjectReference

java.lang.Object
  extended bywt.fc.ObjectReference
      extended bywt.fc.CachedObjectReference
All Implemented Interfaces:
Evolvable, Externalizable, NetFactor, ObjectMappable, Serializable, WTReference
Direct Known Subclasses:
AdminDomainRef, CabinetReference, ContainerTeamReference, DataFormatReference, EPMAuthAppVersionRef, LifeCycleTemplateMasterReference, LifeCycleTemplateReference, ProjectReference, SubFolderReference, TeamDistributionListReference, TeamTemplateReference, ViewReference, WfContainerReference, WfContainerTemplateReference, WfNodeTemplateReference, WfProcessTemplateMasterReference, WTContainerRef, WTContainerTemplateMasterReference, WTContainerTemplateRef

public abstract class CachedObjectReference
extends ObjectReference
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private) static class CachedObjectReference.Singleton
           
 
Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private static String FC_RESOURCE
           
private  boolean inflated
           
protected static String INFLATED
          Label for the attribute.
protected static long OLD_FORMAT_VERSION_UID
           
private  Persistable readOnlyObject
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
(package private) static boolean SERVER
           
 
Fields inherited from class wt.fc.ObjectReference
KEY, object, OBJECT_ID
 
Fields inherited from interface wt.fc.WTReference
OBJECT
 
Constructor Summary
CachedObjectReference()
           
 
Method Summary
 void deflate()
          

Supported API: false
 Persistable getObject()
          

Supported API: false
 Persistable getReadOnlyObject()
          

Supported API: false
 void inflate()
          

Supported API: false
abstract  void inflate(CachedObjectReference cor)
          

Supported API: false
abstract  void inflate(Persistable obj)
          

Supported API: false
protected  boolean isInflated()
          Gets the value of the attribute: INFLATED.
 boolean isObjectInflated()
          Returns true if the reference currently contains an inflated persistable
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(CachedObjectReference thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void refresh()
          obtains a new "copy" of the object held by the Cached object reference service

Supported API: false
 void reset()
          reset essentially nulls any reference that this CachedObjectReference holds

Supported API: false
protected  void setInflated(boolean a_Inflated)
          Sets the value of the attribute: INFLATED.
 void setObjectNull()
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class wt.fc.ObjectReference
equals, getClassInfo, getConceptualClassname, getKey, getObjectId, getReferencedClass, getReferencedClass, hashCode, hasPersistence, initialize, initialize, initialize, initialize, newObjectReference, newObjectReference, newObjectReference, newObjectReference, readVersion, references, setKey, setObject, setObjectId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

INFLATED

protected static final String INFLATED
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

inflated

private boolean inflated

readOnlyObject

private Persistable readOnlyObject

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values
Constructor Detail

CachedObjectReference

public CachedObjectReference()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class ObjectReference
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class ObjectReference
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(CachedObjectReference thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class ObjectReference
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class ObjectReference
Parameters:
input -
Throws:
SQLException
DatastoreException

isInflated

protected boolean isInflated()
Gets the value of the attribute: INFLATED.

Supported API: false

Returns:
boolean

setInflated

protected void setInflated(boolean a_Inflated)
Sets the value of the attribute: INFLATED.

Supported API: false

Parameters:
a_Inflated -

deflate

public void deflate()
             throws WTException


Supported API: false

Overrides:
deflate in class ObjectReference
Throws:
WTException

inflate

public final void inflate()
                   throws WTRuntimeException


Supported API: false

Throws:
WTRuntimeException

inflate

public abstract void inflate(Persistable obj)


Supported API: false

Parameters:
obj -

inflate

public abstract void inflate(CachedObjectReference cor)


Supported API: false

Parameters:
cor -

getObject

public Persistable getObject()
                      throws WTRuntimeException


Supported API: false

Specified by:
getObject in interface WTReference
Overrides:
getObject in class ObjectReference
Returns:
Persistable
Throws:
WTRuntimeException

getReadOnlyObject

public Persistable getReadOnlyObject()
                              throws WTRuntimeException


Supported API: false

Returns:
Persistable
Throws:
WTRuntimeException

refresh

public void refresh()
             throws WTException
obtains a new "copy" of the object held by the Cached object reference service

Supported API: false

Specified by:
refresh in interface WTReference
Overrides:
refresh in class ObjectReference
Throws:
WTException

reset

public void reset()
           throws WTException
reset essentially nulls any reference that this CachedObjectReference holds

Supported API: false

Throws:
WTException

setObjectNull

public void setObjectNull()

isObjectInflated

public boolean isObjectInflated()
Returns true if the reference currently contains an inflated persistable

Overrides:
isObjectInflated in class ObjectReference
Returns:
boolean