Package one.microstream.entity
Interface Entity
- All Known Subinterfaces:
Entity.Accessible
,ImmutableEntity
- All Known Implementing Classes:
Entity.AbstractAccessible
,EntityData
,EntityLayer
,EntityLayerIdentity
,EntityLayerLogging
,EntityLayerVersioning
public interface Entity
A mutable entity. Mutations of the entity's data only happen by providing another instance of that entity
that contains the desired new data.
, FH
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Entity.AbstractAccessible
Primary means to convenience-hide framework-internal methods from the user entity's public APIstatic interface
Entity.Accessible
Fallback means to convenience-hide framework-internal methods from the user entity's public API for classes that cannot extendEntity.AbstractAccessible
for whatever reasonstatic interface
Entity.Creator<E extends Entity,C extends Entity.Creator<E,C>>
static class
Entity.Static
static interface
Entity.Updater<E extends Entity,U extends Entity.Updater<E,U>>
-
Method Summary
Modifier and Type Method Description static <E extends Entity>
Edata(E instance)
static <E extends Entity>
Eidentity(E instance)
default boolean
isSameIdentity(Entity other)
static XGettingList<Entity>
layers(Entity entity)
static <E> E
searchLayer(Entity entity, Class<E> type)
static <E extends Entity>
booleanupdateData(E entity, E data)
default void
validateIdentity(Entity newData)