public class OAObjectKey extends Object implements Serializable, Comparable
OAObjectKey overwrites equals() to work the following way:
if guid is equal then objects are equal. If property key is equal,
then objects are equal, unless either of the objects being compared is new.
For more information about this package, see documentation.
Modifier and Type | Field and Description |
---|---|
protected boolean |
bEmpty |
protected boolean |
bNew |
protected int |
guid |
protected int |
hc |
Constructor and Description |
---|
OAObjectKey(int value) |
OAObjectKey(long value) |
OAObjectKey(OAObject obj) |
OAObjectKey(OAObject parent,
Object value)
create a key for an object that has a parent.
|
OAObjectKey(Object... ids) |
OAObjectKey(Object value) |
OAObjectKey(Object[] ids,
int guid,
boolean bNew) |
OAObjectKey(String value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
boolean |
exactEquals(OAObjectKey key) |
int |
getGuid() |
Object[] |
getObjectIds() |
int |
hashCode() |
boolean |
isNew() |
String |
toString() |
protected int hc
protected boolean bNew
protected int guid
protected boolean bEmpty
public OAObjectKey(Object... ids)
public OAObjectKey(Object[] ids, int guid, boolean bNew)
public OAObjectKey(OAObject obj)
public OAObjectKey(OAObject parent, Object value)
public OAObjectKey(Object value)
public OAObjectKey(int value)
public OAObjectKey(long value)
public OAObjectKey(String value)
public int getGuid()
public boolean isNew()
public boolean exactEquals(OAObjectKey key)
public int compareTo(Object obj)
compareTo
in interface Comparable
public Object[] getObjectIds()
Copyright © 1999–2019 ViaOA. All rights reserved.