Interface HasOid
- All Known Subinterfaces:
Entity,EntityExtended,MutableEntity,MutableEntityExtended
- All Known Implementing Classes:
EntityExtendedImp,MutableEntityExtendedImp
public interface HasOid
Mixin indicating the class has the capability to be uniquely identified through an object identifier.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringString representation of the property associated with the mixin.static final longPlaceholder to identify an illegal or undefined internal identifier. -
Method Summary
Modifier and TypeMethodDescriptionlongoid()Return the unique internal identifier of the instance.
-
Field Details
-
OID
-
UNDEFINED_OID
static final long UNDEFINED_OIDPlaceholder to identify an illegal or undefined internal identifier. It is also the default value if a developer forgets to set the value.- See Also:
-
-
Method Details
-
oid
long oid()Return the unique internal identifier of the instance.- Returns:
- unique internal identifier
-