public class GenericDbConfigFactory extends Object implements ConfigurableDbConfigFactory
DbConfig for generic data bases| Constructor and Description |
|---|
GenericDbConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
DbConfig |
create(String name,
Map<QName,Object> annotations,
DataSource dataSource)
Creates a
DbConfig to access a given DataSource |
protected DbConfig |
doCreateDbConfig(DataSource datasource,
DbTypeManager dbTypeManager,
DbConnectionFactory dbConnectionFactory,
String name) |
protected DbTypeManager |
doCreateTypeManager() |
protected List<DbType> |
getVendorDataTypes() |
void |
setCustomDataTypes(List<DbType> customDataTypes)
Sets the list of custom types available for the created
DbConfig |
void |
setRetryPolicyTemplate(RetryPolicyTemplate retryPolicyTemplate)
Sets the retry policy template for the created
DbConfig |
public DbConfig create(String name, Map<QName,Object> annotations, DataSource dataSource)
DbConfigFactoryDbConfig to access a given DataSourcecreate in interface DbConfigFactoryname - name of the configdataSource - dataSource to access from the created DbConfigprotected DbConfig doCreateDbConfig(DataSource datasource, DbTypeManager dbTypeManager, DbConnectionFactory dbConnectionFactory, String name)
protected DbTypeManager doCreateTypeManager()
public void setCustomDataTypes(List<DbType> customDataTypes)
ConfigurableDbConfigFactoryDbConfigsetCustomDataTypes in interface ConfigurableDbConfigFactorycustomDataTypes - list of custom types. Non nullpublic void setRetryPolicyTemplate(RetryPolicyTemplate retryPolicyTemplate)
ConfigurableDbConfigFactoryDbConfigsetRetryPolicyTemplate in interface ConfigurableDbConfigFactoryretryPolicyTemplate - retry policety template. Can be null.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.