Class SqlParticipantStore

java.lang.Object
org.eclipse.edc.sql.store.AbstractSqlStore
org.eclipse.edc.registration.store.sql.SqlParticipantStore
All Implemented Interfaces:
org.eclipse.edc.registration.store.spi.ParticipantStore

public class SqlParticipantStore extends org.eclipse.edc.sql.store.AbstractSqlStore implements org.eclipse.edc.registration.store.spi.ParticipantStore
SQL implementation for ParticipantStore
  • Field Summary

    Fields inherited from class org.eclipse.edc.sql.store.AbstractSqlStore

    queryExecutor, transactionContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqlParticipantStore(org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry dataSourceRegistry, String dataSourceName, org.eclipse.edc.transaction.spi.TransactionContext transactionContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ParticipantStatements participantStatements, org.eclipse.edc.sql.QueryExecutor queryExecutor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.eclipse.edc.registration.spi.model.Participant
     
    List<org.eclipse.edc.registration.spi.model.Participant>
     
    Collection<org.eclipse.edc.registration.spi.model.Participant>
    listParticipantsWithStatus(org.eclipse.edc.registration.spi.model.ParticipantStatus state)
     
    org.eclipse.edc.spi.result.StoreResult<org.eclipse.edc.registration.spi.model.Participant>
    save(org.eclipse.edc.registration.spi.model.Participant participant)
     

    Methods inherited from class org.eclipse.edc.sql.store.AbstractSqlStore

    fromJson, fromJson, getConnection, toJson, toJson

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SqlParticipantStore

      public SqlParticipantStore(org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry dataSourceRegistry, String dataSourceName, org.eclipse.edc.transaction.spi.TransactionContext transactionContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ParticipantStatements participantStatements, org.eclipse.edc.sql.QueryExecutor queryExecutor)
  • Method Details

    • findByDid

      @Nullable public @Nullable org.eclipse.edc.registration.spi.model.Participant findByDid(String did)
      Specified by:
      findByDid in interface org.eclipse.edc.registration.store.spi.ParticipantStore
    • listParticipants

      public List<org.eclipse.edc.registration.spi.model.Participant> listParticipants()
      Specified by:
      listParticipants in interface org.eclipse.edc.registration.store.spi.ParticipantStore
    • save

      public org.eclipse.edc.spi.result.StoreResult<org.eclipse.edc.registration.spi.model.Participant> save(org.eclipse.edc.registration.spi.model.Participant participant)
      Specified by:
      save in interface org.eclipse.edc.registration.store.spi.ParticipantStore
    • listParticipantsWithStatus

      public Collection<org.eclipse.edc.registration.spi.model.Participant> listParticipantsWithStatus(org.eclipse.edc.registration.spi.model.ParticipantStatus state)
      Specified by:
      listParticipantsWithStatus in interface org.eclipse.edc.registration.store.spi.ParticipantStore