public interface IRepositoryEntity
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGlobalId()
Global ID is unique cross repositories.
|
java.io.Serializable |
getInternalId()
Provides a common getter for the persistence layer to obtain an identity,
irrespective of the actual type of identity used.
|
IRepositoryEntity |
getParent()
This returns parent entity for any first or second class entity,
This allows the caller to construct a path that navigates from any entity back to its topmost container.
|
java.io.Serializable getInternalId()
Typically a subclass will delegate to a public
SomePrimitiveWrapper getId()
method. The necessity for the
getInternalId()
abstract method is solely because the
persistence layer needs a way of obtaining the identity irrespective of
the actual identity implementation choice.
Returning null
from this method will indicate the object has
never been saved. This will likely be relied on by some DAO
implementations.
java.lang.String getGlobalId()
IRepositoryEntity getParent()