Interface Persistable<T>

Type Parameters:
T - The type to persist
All Known Subinterfaces:
TransactionService
All Known Implementing Classes:
TransactionServiceImpl

public interface Persistable<T>
A Persistable is able to persist instances of type Persistable to a persistent storage.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    persist(@NotNull @Valid List<T> obj)
    Persists a list of given instances.
    persist(T obj)
    Persists the given instance.
  • Method Details

    • persist

      @NotNull T persist(@NotNull @Valid T obj)
      Persists the given instance.
      Parameters:
      obj - The instance to persist
      Returns:
      The persisted instance
    • persist

      void persist(@NotNull @Valid @NotNull @Valid List<T> obj)
      Persists a list of given instances.
      Parameters:
      obj - The instances to persist