wt.ufid
Class Ufid

java.lang.Object
  extended bywt.ufid.Ufid
All Implemented Interfaces:
Externalizable, Serializable

public class Ufid
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  int hashcode
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String REMOTE_OBJECT_ID_SEPARATOR
           
private  RemoteObjectInfo remoteInfo
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static String UFID_SEPARATOR
           
 
Constructor Summary
  Ufid()
          

Supported API: false
(package private) Ufid(Federatable localObject)
          The expectation is that this constructor will only be used by the Ufid Server Service for building Ufid's for objects that are "Purly" local.
  Ufid(Federatable childObject, Ufid parentUfid)
          This constructor is used to create a new Ufid based on another Ufid for the given local Federatable object.
  Ufid(String objectRef, Repository repository)
          This will construct a Ufid with the Birth Repository and Last known Repository are the same.
 
Method Summary
protected  ObjectIdentifier asObjectIdentifier()
           
 boolean equals(Object object)
          

Supported API: false
 String getDomain()
          Gets the value of the attribute: domain.
 String getGuid()
          Gets the value of the attribute: guid.
 String getObjectId()
          Gets the value of the attribute: objectId.
 RemoteObjectInfo getRemoteInfo()
          Gets the object for the association that plays role: remoteInfo.
 int hashCode()
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
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(Ufid thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
private  void remoteInfoValidate(RemoteObjectInfo a_RemoteInfo)
           
private  String remoteObjectId(Persistable object)
          This method is being used instead of the toString on the ObjectIdentifier to help in insulating the UFID implementation from the use of ObjectIdentifier as an URL.
 void setRemoteInfo(RemoteObjectInfo a_RemoteInfo)
          Sets the object for the association that plays role: remoteInfo.
 String toString()
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

hashcode

private int hashcode

remoteInfo

private RemoteObjectInfo remoteInfo

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

REMOTE_OBJECT_ID_SEPARATOR

private static final String REMOTE_OBJECT_ID_SEPARATOR
See Also:
Constant Field Values

UFID_SEPARATOR

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

Ufid

public Ufid()


Supported API: false


Ufid

Ufid(Federatable localObject)
throws UfidException
The expectation is that this constructor will only be used by the Ufid Server Service for building Ufid's for objects that are "Purly" local. That is, the object was born on the current repository.

Supported API: false

Parameters:
localObject -
Throws:
UfidException

Ufid

public Ufid(String objectRef,
            Repository repository)
     throws UfidException
This will construct a Ufid with the Birth Repository and Last known Repository are the same. This will only be true for construction of a Ufid on a Federatable that is being exported for the first time.

Supported API: false

Parameters:
objectRef - objectRef is a string that represents the unique identifier of the object on the remote system.
repository -
Throws:
UfidException

Ufid

public Ufid(Federatable childObject,
            Ufid parentUfid)
     throws UfidException
This constructor is used to create a new Ufid based on another Ufid for the given local Federatable object. This will be used where a Composite Federatable needs to set ufids in sub objects

Supported API: false

Parameters:
childObject -
parentUfid -
Throws:
UfidException
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
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
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(Ufid 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

getObjectId

public String getObjectId()
Gets the value of the attribute: objectId.

Supported API: false

Returns:
String

getGuid

public String getGuid()
Gets the value of the attribute: guid.

Supported API: false

Returns:
String

getDomain

public String getDomain()
Gets the value of the attribute: domain.

Supported API: false

Returns:
String

getRemoteInfo

public RemoteObjectInfo getRemoteInfo()
Gets the object for the association that plays role: remoteInfo.

Supported API: false

Returns:
RemoteObjectInfo

setRemoteInfo

public void setRemoteInfo(RemoteObjectInfo a_RemoteInfo)
                   throws WTPropertyVetoException
Sets the object for the association that plays role: remoteInfo.

Supported API: false

Parameters:
a_RemoteInfo -
Throws:
WTPropertyVetoException

remoteInfoValidate

private void remoteInfoValidate(RemoteObjectInfo a_RemoteInfo)
                         throws WTPropertyVetoException
Parameters:
a_RemoteInfo -
Throws:
WTPropertyVetoException

toString

public String toString()


Supported API: false

Returns:
String

hashCode

public int hashCode()


Supported API: false

Returns:
int

equals

public boolean equals(Object object)


Supported API: false

Parameters:
object -
Returns:
boolean

remoteObjectId

private String remoteObjectId(Persistable object)
This method is being used instead of the toString on the ObjectIdentifier to help in insulating the UFID implementation from the use of ObjectIdentifier as an URL.


asObjectIdentifier

protected ObjectIdentifier asObjectIdentifier()
                                       throws UfidException
Throws:
UfidException