wt.fc
Class IdentityMigrateHelper

java.lang.Object
  extended bywt.fc.IdentityMigrateHelper

public class IdentityMigrateHelper
extends Object

Provides migration with a way to assign values to restricted attributes


Constructor Summary
IdentityMigrateHelper()
           
 
Method Summary
static void changeIdentity(Identified obj, IdentificationObject identity)
           
static void setIdentity(Identified obj, IdentificationObject identity)
          Assigns the object the given identity, even if the object is persistent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityMigrateHelper

public IdentityMigrateHelper()
Method Detail

setIdentity

public static void setIdentity(Identified obj,
                               IdentificationObject identity)
                        throws WTException
Assigns the object the given identity, even if the object is persistent

Parameters:
obj - The object whose identity should be updated
identity - The object's new identity
Throws:
WTException

changeIdentity

public static void changeIdentity(Identified obj,
                                  IdentificationObject identity)
                           throws WTException
Throws:
WTException