Package com.qfs.snl.persistence
Interface IIdentifiable
- All Known Subinterfaces:
IAudit
,ILocatedResource
,IMonitor
,ISentinelAlert
,ISentinelEvent
- All Known Implementing Classes:
AAudit
,AlertDto
,Audit
,Audit
,AuditDto
,EventDto
,GroupedStreamInfo.PartialEvent
,Monitor
,MonitorDto
,SentinelAlert
,SentinelEvent
,SingleStreamInfo
public interface IIdentifiable
Base interface for all models having an id.
- Author:
- ActiveViam
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
Default id value (0L) given to an entity before being persisted. -
Method Summary
-
Field Details
-
NO_ID
static final long NO_IDDefault id value (0L) given to an entity before being persisted.A persisted resource must not have this id.
This is the lowest value (excluded) that an id can have:id > NO_ID
- See Also:
-
-
Method Details
-
getId
long getId()Gets the resource id.- Returns:
- the id
-