|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.opmath.test.j2ee.uid.UniqueIdGeneratorPK
The primary key class for the UniqueIdGenerator EJB. This is in fact a
simple primary key - this class simply delegates to String.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
UniqueIdGeneratorBean, Serialized Form| Field Summary | |
String |
name
The name of the key. |
| Constructor Summary | |
UniqueIdGeneratorPK(String name)
Constructs a new UniqueIdGeneratorPK. |
|
| Method Summary | |
boolean |
equals(Object o)
Returns true iff the given Object is the same class as this
instance, and has the same name. |
String |
getName()
Returns the name of this UniqueIdGeneratorPK. |
int |
hashCode()
Returns the hash code for this UniqueIdGeneratorPK. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public String name
The name of the key. This is the only instance variable for this class.
Note that it is declared as public to match EJB recommendations
[
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/CMP.html].
| Constructor Detail |
public UniqueIdGeneratorPK(String name)
Constructs a new UniqueIdGeneratorPK.
name - a String specifying the name of the new instance.| Method Detail |
public String getName()
Returns the name of this UniqueIdGeneratorPK.
String carrying the name of this UniqueIdGeneratorPK.public boolean equals(Object o)
Returns true iff the given Object is the same class as this
instance, and has the same name.
equals in class Objectboolean indicating equivalance.public int hashCode()
Returns the hash code for this UniqueIdGeneratorPK. The value returned is the hash code of the name of this UniqueIdGeneratorPK.
hashCode in class Objectint hash code.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||