@Immutable @ParametersAreNonnullByDefault public interface Id extends Comparable<Id>, Serializable
PersistentEObject
s in datastores.
This is the primary key in datastores, so, each Id
must be unique at DataMapper
level to ensure data consistency. The unicity is not guaranteed
before adding a new PersistentEObject
to a database.
Modifier and Type | Field and Description |
---|---|
static Id |
UNDEFINED
An immutable undefined
Id . |
Modifier and Type | Method and Description |
---|---|
static IdProvider |
getProvider()
Returns the instance of the default
IdProvider . |
String |
toHexString()
Returns the
String representation of this Id , as an hexadecimal value. |
long |
toLong()
Returns the
Long representation of this Id . |
compareTo
@Nonnull static IdProvider getProvider()
IdProvider
.long toLong()
Long
representation of this Id
.Copyright © 2013–2019 Atlanmod. All rights reserved.