public interface Config
The implementation must be thread safe.
Modifier and Type | Method and Description |
---|---|
static Config |
get(java.lang.Object provider)
Retrieves a
Config object from the provider parameter. |
default int |
getBatchSize()
Returns the batch size.
|
default ClassHelper |
getClassHelper()
Returns the class helper.
|
default CommandImplementors |
getCommandImplementors()
Returns the factory for
Command implementation classes. |
default Commenter |
getCommenter()
Returns the commenter for SQL strings.
|
javax.sql.DataSource |
getDataSource()
Returns the data source.
|
default java.lang.String |
getDataSourceName()
Returns the name of the data source.
|
Dialect |
getDialect()
Returns the SQL dialect.
|
default EntityListenerProvider |
getEntityListenerProvider()
Returns the provider for
EntityListener . |
default SqlLogType |
getExceptionSqlLogType()
Returns the SQL log type that determines the SQL log format in exceptions.
|
default int |
getFetchSize()
Returns the fetch size.
|
default JdbcLogger |
getJdbcLogger()
Returns the JDBC logger.
|
default MapKeyNaming |
getMapKeyNaming()
Returns a naming convention controller for keys contained in a
Map<String, Object>
object. |
default int |
getMaxRows()
Returns the maximum number of rows for a
ResultSet object. |
default Naming |
getNaming()
Returns the naming convention controller.
|
default QueryImplementors |
getQueryImplementors()
Returns the factory for
Query implementation classes. |
default int |
getQueryTimeout()
Returns the query timeout limit in seconds.
|
default RequiresNewController |
getRequiresNewController()
Returns the transaction controller whose transaction attribute is
REQUIRES_NEW . |
default ScriptFileLoader |
getScriptFileLoader()
Returns the Script file loader.
|
default SqlFileRepository |
getSqlFileRepository()
Returns the SQL file repository.
|
default TransactionManager |
getTransactionManager()
Returns the transaction manager.
|
default UnknownColumnHandler |
getUnknownColumnHandler()
Returns the unknown column handler.
|
javax.sql.DataSource getDataSource()
Dialect getDialect()
default java.lang.String getDataSourceName()
Each data source must have an unique name when multiple data sources are used in an application.
default SqlFileRepository getSqlFileRepository()
default ScriptFileLoader getScriptFileLoader()
default JdbcLogger getJdbcLogger()
default RequiresNewController getRequiresNewController()
REQUIRES_NEW
.REQUIRES_NEW
default ClassHelper getClassHelper()
default CommandImplementors getCommandImplementors()
Command
implementation classes.Command
implementation classesdefault QueryImplementors getQueryImplementors()
Query
implementation classes.Query
implementation classesdefault SqlLogType getExceptionSqlLogType()
default UnknownColumnHandler getUnknownColumnHandler()
default Naming getNaming()
default MapKeyNaming getMapKeyNaming()
Map<String, Object>
object.Map<String, Object>
objectdefault TransactionManager getTransactionManager()
java.lang.UnsupportedOperationException
- if this configuration does not support transactions by
the transaction managerdefault Commenter getCommenter()
default int getMaxRows()
ResultSet
object.
If the value is greater than or equal to 1, it is passed to Statement.setMaxRows(int)
.
Statement.setMaxRows(int)
default int getFetchSize()
If the value is greater than or equal to 1, it is passed to Statement.setFetchSize(int)
.
Statement.setFetchSize(int)
default int getQueryTimeout()
If the value is greater than or equal to 1, it is passed to Statement.setQueryTimeout(int)
.
Statement.setQueryTimeout(int)
default int getBatchSize()
If the value is less than 1, it is regarded as 1.
Statement.executeBatch()
,
PreparedStatement.addBatch()
default EntityListenerProvider getEntityListenerProvider()
EntityListener
.EntityListener
static Config get(java.lang.Object provider)
Config
object from the provider
parameter.provider
- the instance of ConfigProvider
DomaIllegalArgumentException
- if provider
is not ConfigProvider