edu.rice.rubis.beans
Class IDManagerPK
java.lang.Object
|
+--edu.rice.rubis.beans.IDManagerPK
- All Implemented Interfaces:
- java.io.Serializable
- public class IDManagerPK
- extends java.lang.Object
- implements java.io.Serializable
IDManager Primary Key class
We should have only one instance of the IDManager bean so the value
of the primary key is 0.
- Version:
- 1.0
- Author:
- Emmanuel Cecchet and Julie Marguerite
- See Also:
- Serialized Form
Field Summary |
java.lang.Integer |
id
|
Constructor Summary |
IDManagerPK()
Creates a new IDManagerPK instance. |
IDManagerPK(java.lang.Integer uniqueId)
Creates a new IDManagerPK instance. |
Method Summary |
boolean |
equals(java.lang.Object other)
Specific equals method. |
int |
hashCode()
Specific hashCode just returning the id. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
id
public java.lang.Integer id
IDManagerPK
public IDManagerPK()
- Creates a new
IDManagerPK
instance.
- Parameters:
uniqueId
- an Integer
value
IDManagerPK
public IDManagerPK(java.lang.Integer uniqueId)
- Creates a new
IDManagerPK
instance.
- Parameters:
uniqueId
- an Integer
value
hashCode
public int hashCode()
- Specific
hashCode
just returning the id.
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- the hash code
equals
public boolean equals(java.lang.Object other)
- Specific
equals
method.
- Overrides:
equals
in class java.lang.Object
- Parameters:
other
- the Object
to compare with- Returns:
- true if both objects have the same primary key
Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.