public class KeyImpl extends java.lang.Object implements Key
Constructor and Description |
---|
KeyImpl()
Creates a new, temporary key.
|
KeyImpl(java.lang.String pId)
Creates a new key, which resembles an object that exists in the database
with the given id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
Returns the ID of the key.
|
int |
hashCode() |
boolean |
isTemporary()
Returns, whether the key is temporary.
|
void |
setId(java.lang.String pId)
Sets the keys ID.
|
public KeyImpl()
public KeyImpl(java.lang.String pId)
pId
- the Key ID.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getId()
Key
public void setId(java.lang.String pId)
pId
- the key ID.public boolean isTemporary()
true
if it is temporary.