Persistence Service
PersistenceService allows a flow to insert, find, update and delete custom entities in the persistent store provided by the platform.
Corda provides an instance of PersistenceService to flows via property injection.
Functions
Link copied to clipboard
@Suspendable
@Nullable
Finds a single entity in the persistence context of the specified entity type [T] and with the specified
primaryKey.@Suspendable
@NotNull
Finds multiple entities of the same type with different primary keys in a single transaction.
Link copied to clipboard
Creates a PagedQuery to find all entities of the same type from the persistence context in a single transaction.
Link copied to clipboard