persistence.type
Class ObjectIDFactory.ObjectIDImpl

java.lang.Object
  extended bypersistence.type.ObjectIDFactory.ObjectIDImpl
All Implemented Interfaces:
java.lang.Comparable, ObjectID
Enclosing class:
ObjectIDFactory

public class ObjectIDFactory.ObjectIDImpl
extends java.lang.Object
implements ObjectID

Implementation of ObjectID.

Author:
bram 4-mei-2003

Field Summary
private  java.lang.String aClass
           
private  java.lang.String ip
           
private  java.util.Date time
           
 
Constructor Summary
ObjectIDFactory.ObjectIDImpl(java.util.Date time, java.lang.String ip, java.lang.String aClass)
          Creates instance of ObjectID.
ObjectIDFactory.ObjectIDImpl(java.lang.String aClass)
          Creates instance of ObjectID.
 
Method Summary
 int compareTo(java.lang.Object o)
          Current class distinguishes also!
 boolean equals(java.lang.Object o)
           
 java.lang.String getAClass()
          Get indication of actual class of object with this ObjectID, fixed at creation.
 java.lang.String getIp()
          Get IP address
 java.util.Date getTime()
          Get timestamp
 int hashCode()
           
 java.lang.String toString()
          Time, IP and actual class (NO current class).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

time

private java.util.Date time

ip

private java.lang.String ip

aClass

private java.lang.String aClass
Constructor Detail

ObjectIDFactory.ObjectIDImpl

public ObjectIDFactory.ObjectIDImpl(java.lang.String aClass)
Creates instance of ObjectID.


ObjectIDFactory.ObjectIDImpl

public ObjectIDFactory.ObjectIDImpl(java.util.Date time,
                                    java.lang.String ip,
                                    java.lang.String aClass)
Creates instance of ObjectID.

Method Detail

getAClass

public java.lang.String getAClass()
Description copied from interface: ObjectID
Get indication of actual class of object with this ObjectID, fixed at creation.

Specified by:
getAClass in interface ObjectID
Returns:
Indication of class of object with this ObjectID
See Also:
ObjectID.getAClass()

getTime

public java.util.Date getTime()
Description copied from interface: ObjectID
Get timestamp

Specified by:
getTime in interface ObjectID
Returns:
timestamp

getIp

public java.lang.String getIp()
Description copied from interface: ObjectID
Get IP address

Specified by:
getIp in interface ObjectID
Returns:
IP address

toString

public java.lang.String toString()
Time, IP and actual class (NO current class).

Specified by:
toString in interface ObjectID

compareTo

public int compareTo(java.lang.Object o)
Current class distinguishes also!

Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(java.lang.Object o)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()