org.equanda.persistence
Class Uoid

java.lang.Object
  extended by org.equanda.persistence.Uoid
All Implemented Interfaces:
Serializable, HasId<Uoid>

public class Uoid
extends Object
implements HasId<Uoid>, Serializable

Uoid definition class. This is just a thin wrapper for String, as a Uoid in equanda is just a 14 character String, but it is represented in a different class to allow discrimination and better use of polymorphism.

Author:
Joachim Van der Auwera
See Also:
Serialized Form

Constructor Summary
Uoid()
           
Uoid(String str)
           
 
Method Summary
 boolean equals(Object obj)
           
 Uoid getId()
          Get unique object identifier for this object.
 String getString()
           
 int hashCode()
           
 void setString(String str)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Uoid

public Uoid()

Uoid

public Uoid(String str)
Method Detail

getId

public Uoid getId()
Description copied from interface: HasId
Get unique object identifier for this object.

Specified by:
getId in interface HasId<Uoid>
Returns:
id

getString

public String getString()

setString

public void setString(String str)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2007-2009. All Rights Reserved.