Package-level declarations

Types

Link copied to clipboard
class CordaPersistenceException(message: String, cause: Throwable?) : CordaRuntimeException

Exception that encapsulates errors during persistence.

Link copied to clipboard
interface PagedQuery<R>

Used to build a Query that supports limit and offset.

Link copied to clipboard

Used to build a Query that supports parameters.

Link copied to clipboard
@DoNotImplement
interface PersistenceService

PersistenceService allows a flow to insert, find, update and delete custom entities in the persistent store provided by the platform.

Functions

Link copied to clipboard
inline fun <T : Any> PersistenceService.find(primaryKey: Any): T?

Finds a single entity in the persistence context of the specified entity type T and with the specified primaryKey.

inline fun <T : Any> PersistenceService.find(primaryKeys: List<Any>): List<T>

Finds multiple entities of the same type with different primary keys from the persistence context in a single transaction.

Link copied to clipboard

Finds all entities of the same type in a single transaction.