Class JdbcRepositorySettings
java.lang.Object
org.springframework.modulith.events.jdbc.JdbcRepositorySettings
Internal abstraction of customization options for
JdbcEventPublicationRepository.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Constructor Summary
ConstructorsConstructorDescriptionJdbcRepositorySettings(DatabaseType databaseType, CompletionMode completionMode, JdbcConfigurationProperties properties) -
Method Summary
Modifier and TypeMethodDescription(package private) StringReturns theDatabaseType.@Nullable StringReturn the schema to be used.(package private) JdbcRepositorySettings.SchemaVersion(package private) StringgetTable()booleanReturns whether we use the archiving completion mode.booleanReturns whether we use the deleting completion mode.booleanReturns whether we use the updating completion mode.loadSchema(Function<String, Resource> loader) Load the schemaResources to be used.
-
Constructor Details
-
JdbcRepositorySettings
JdbcRepositorySettings(DatabaseType databaseType, CompletionMode completionMode, JdbcConfigurationProperties properties) - Parameters:
databaseType- must not be null.completionMode- must not be null.properties- must not be null.
-
-
Method Details
-
getDatabaseType
Returns theDatabaseType.- Returns:
- will never be null.
-
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
Load the schemaResources to be used.- Parameters:
loader- must not be null.- Returns:
- will never be null.
- Since:
- 2.0
-
getSchemaVersion
JdbcRepositorySettings.SchemaVersion getSchemaVersion() -
getTable
String getTable() -
getArchiveTable
String getArchiveTable()
-