public interface SimpleConfigBuilder
A builder interface for creating a
SimpleConfig instance with custom configuration
settings.
This builder provides a fluent API for specifying various settings required for database interaction such as dialect, logging behavior, transaction management, SQL behavior, entity listeners, and more. It allows customization of parameters such as fetch size, query timeout, and batch size, among others.
-
Method Summary
Modifier and TypeMethodDescriptionbatchSize(int batchSize) build()Builds and returns an instance ofSimpleConfigbased on the current builder configuration.classHelper(ClassHelper classHelper) commandImplementors(CommandImplementors commandImplementors) duplicateColumnHandler(DuplicateColumnHandler duplicateColumnHandler) entityListenerProvider(EntityListenerProvider entityListenerProvider) exceptionSqlLogType(SqlLogType exceptionSqlLogType) fetchSize(int fetchSize) jdbcLogger(JdbcLogger jdbcLogger) mapKeyNaming(MapKeyNaming mapKeyNaming) maxRows(int maxRows) queryImplementors(QueryImplementors queryImplementors) queryTimeout(int queryTimeout) Sets the query timeout duration for SQL queries.scriptFileLoader(ScriptFileLoader scriptFileLoader) sqlBuilderSettings(SqlBuilderSettings sqlBuilderSettings) sqlFileRepository(SqlFileRepository sqlFileRepository) statisticManager(StatisticManager statisticManager) transactionManagerFactory(BiFunction<LocalTransactionDataSource, JdbcLogger, LocalTransactionManager> transactionManagerFactory) unknownColumnHandler(UnknownColumnHandler unknownColumnHandler)
-
Method Details
-
dialect
-
jdbcLogger
-
sqlFileRepository
-
scriptFileLoader
-
classHelper
-
commandImplementors
-
queryImplementors
-
exceptionSqlLogType
-
unknownColumnHandler
-
duplicateColumnHandler
-
naming
-
mapKeyNaming
-
transactionManagerFactory
SimpleConfigBuilder transactionManagerFactory(BiFunction<LocalTransactionDataSource, JdbcLogger, LocalTransactionManager> transactionManagerFactory) -
commenter
-
entityListenerProvider
-
sqlBuilderSettings
-
statisticManager
-
maxRows
-
fetchSize
-
queryTimeout
Sets the query timeout duration for SQL queries.- Parameters:
queryTimeout- the query timeout in seconds- Returns:
- this builder instance for method chaining
-
batchSize
-
build
SimpleConfig build()Builds and returns an instance ofSimpleConfigbased on the current builder configuration.- Returns:
- a new
SimpleConfiginstance configured with the specified settings
-