2 * Created on 2005-04-02
3 * This file is created 2005-04-02 and descripes OID
5 package drno
.server
.database
.persistence
;
14 public OID(Class cls
, String Key
) {
23 public OID(Class cls
, Integer Key
) {
24 this.key
= Key
.toString();
27 public OID(Class cls
, int Key
) {
28 this.key
= new Integer(Key
).toString();
32 public boolean equals(Object obj
) {
34 return (cls
.equals(ob
.cls
) && key
.equals(ob
.key
));
37 public String
toString() {
44 public boolean valid() {
45 if(key
== null) return false;
46 if(key
.length() == 0) return false;
47 if(key
.equals("0")) return false;