public interface Persistable
Although this interface must be public to allow implementation classes to implement it, 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 |
primaryKey()
Get the database identifier for this persistable object.
|
void |
primaryKey(java.lang.Long id)
Set the database identifier for this persistable object.
|
java.lang.Long primaryKey()
null
for DMO instances which have
not yet been persisted to the database.void primaryKey(java.lang.Long id)
id
- Unique, database identifier to be associated with this object.