Class JdbcRepositorySettings

java.lang.Object
org.springframework.modulith.events.jdbc.JdbcRepositorySettings

public class JdbcRepositorySettings extends Object
Internal abstraction of customization options for JdbcEventPublicationRepository.
Since:
1.3
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • getDatabaseType

      public DatabaseType getDatabaseType()
      Returns the DatabaseType.
      Returns:
      will never be null.
    • getSchema

      public @Nullable String getSchema()
      Return the schema to be used.
      Returns:
      can be null.
    • isDeleteCompletion

      public boolean isDeleteCompletion()
      Returns whether we use the deleting completion mode.
    • isArchiveCompletion

      public boolean isArchiveCompletion()
      Returns whether we use the archiving completion mode.
    • isUpdateCompletion

      public boolean isUpdateCompletion()
      Returns whether we use the updating completion mode.
    • loadSchema

      List<Resource> loadSchema(Function<String,Resource> loader)
      Load the schema Resources to be used.
      Parameters:
      loader - must not be null.
      Returns:
      will never be null.
      Since:
      2.0
    • getSchemaVersion

    • getTable

      String getTable()
    • getArchiveTable

      String getArchiveTable()
    • getTargetTable

      String getTargetTable(EventPublication.Status status)
      Returns the table to read EventPublications with the given EventPublication.Status from, i.e. the archive table for terminal statuses if archiving is enabled, the regular table otherwise.
      Parameters:
      status - must not be null.
      Since:
      2.2