Interface Realm

All Known Subinterfaces:
RealmEclipseStore

public interface Realm
The realm is responsible for the handling of entities and value objects part of the domain model.

The realm abstracts the repository and factory concepts defined in the domain driven approach for small bounded domains.

One key feature of entities is their unique object identifier defined in the context of the bounded domain. The realm provides functions to generate unique object identifiers and set them in the entities in need of them. The object identifiers are created in the application.

  • Method Details

    • maxOid

      static <T extends HasOid> long maxOid(Provider<T> provider)
    • maxOid

      static <T extends HasOid> long maxOid(List<T> items)
    • checkEntities

      static <T extends Entity> void checkEntities(@NotNull @NotNull Provider<T> provider)
    • close

      default void close()