wt.fc
Class IdentityHelper

java.lang.Object
  extended by wt.fc.IdentityHelper
All Implemented Interfaces:
Serializable

public class IdentityHelper
extends Object
implements Serializable

The IdentityHelper provides access to the identity service through its public 'service' member.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static IdentityService service
          

Supported API: true
 
Method Summary
static boolean isChangeable(Object obj)
          Used in conjunction with system generation's "Changeable ViaOtherMeans" property to restrict changes to the identity of persisted objects.
static void setIdentity(Identified obj, IdentificationObject identity)
          Sets the identity of the Identified object passed as argument to the one held by the IdentificationObject, also passed as argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

public static final IdentityService service


Supported API: true

Method Detail

setIdentity

public static void setIdentity(Identified obj,
                               IdentificationObject identity)
                        throws WTException
Sets the identity of the Identified object passed as argument to the one held by the IdentificationObject, also passed as argument. Throws WTexception if Identified object is persistent.

Supported API: true

Parameters:
obj -
identity -
Throws:
WTException

isChangeable

public static final boolean isChangeable(Object obj)
Used in conjunction with system generation's "Changeable ViaOtherMeans" property to restrict changes to the identity of persisted objects.

Supported API: true

Parameters:
obj -
Returns:
boolean