wt.vc.views
Class ViewReference

java.lang.Object
  extended by wt.fc.ObjectReference
      extended by wt.fc.CachedObjectReference
          extended by wt.vc.views.ViewReference
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable, WTReference, Evolvable

public final class ViewReference
extends wt.fc.CachedObjectReference
implements Externalizable

The ViewReference is an ObjectReference particular to Views. When getting the view object from the reference, it uses the ViewService rather than hitting the database directly.

Use the newViewReference static factory method(s), not the ViewReference constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 String getIdentity()
          Return the nice string of the referenced object's identity.
protected  void initialize(ObjectIdentifier objId)
          Supports initialization, following construction of an instance.
protected  void initialize(View obj)
          Supports initialization, following construction of an instance.
protected  void initialize(ViewReference viewReference)
          Supports initialization, following construction of an instance.
static ViewReference newViewReference()
          

Supported API: true
static ViewReference newViewReference(ObjectIdentifier objId)
          

Supported API: true
static ViewReference newViewReference(View obj)
          

Supported API: true
static ViewReference newViewReference(ViewReference viewReference)
          

Supported API: true
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

newViewReference

public static ViewReference newViewReference()
                                      throws WTException


Supported API: true

Returns:
ViewReference
Throws:
WTException

newViewReference

public static ViewReference newViewReference(View obj)
                                      throws WTException


Supported API: true

Parameters:
obj -
Returns:
ViewReference
Throws:
WTException

initialize

protected void initialize(View obj)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
obj -
Throws:
WTException

newViewReference

public static ViewReference newViewReference(ViewReference viewReference)
                                      throws WTException


Supported API: true

Parameters:
viewReference -
Returns:
ViewReference
Throws:
WTException

initialize

protected void initialize(ViewReference viewReference)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
viewReference -
Throws:
WTException

newViewReference

public static ViewReference newViewReference(ObjectIdentifier objId)
                                      throws WTException


Supported API: true

Parameters:
objId -
Returns:
ViewReference
Throws:
WTException

initialize

protected void initialize(ObjectIdentifier objId)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
objId -
Throws:
WTException

getIdentity

public String getIdentity()
Return the nice string of the referenced object's identity.

Supported API: true

Returns:
String