Package dev.fritz2.repository

Types

Link copied to clipboard
interface EntityRepository<T, I>

defines the interface that should be provided by all repositories dealing with a single Entity.

Link copied to clipboard
interface QueryRepository<T, I, Q>

defines the interface that should be provided by all repositories dealing with a list of Entities.

Link copied to clipboard
interface Resource<T, I>

interface that has to be implemented in order to use repositories with a given type T. It also defines how to serialize and deserialize the given type T to and from String. The functions serializeList and deserializeList must be implemented when using it within a QueryRepository.

Link copied to clipboard
class ResourceNotFoundException(id: String, throwable: Throwable?) : Exception

Gets thrown when load can't find the resource