public interface Identifiable
Although the methods of this interface must be public to allow implementation classes to implement the interface, it is intended that these methods not be invoked directly upon DMO implementation instances from outside the persistence framework.
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getId()
Get the database identifier for this persistable object.
|
void |
setId(java.lang.Long id)
Set the database identifier for this persistable object (i.e., surrogate primary key).
|
java.lang.Long getId()
null
for DMO instances which have
not yet been persisted to the database.void setId(java.lang.Long id)
id
- Unique, database identifier to be associated with this object.