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
Finds a single entity in the persistence context of the specified entity type T and with the specified primaryKey.
Finds multiple entities of the same type with different primary keys in a single transaction.
Creates a PagedQuery to find all entities of the same type from the persistence context in a single transaction.
Creates a ParameterizedQuery to support a named query to return a list of entities of the given type in a single transaction. Casts result set to the specified type T.
Extensions
Finds a single entity in the persistence context of the specified entity type T and with the specified primaryKey.
Finds multiple entities of the same type with different primary keys from the persistence context in a single transaction.
Finds all entities of the same type in a single transaction.