public class GenericDbConfigFactory extends Object implements ConfigurableDbConfigFactory
DbConfig
for generic data basesConstructor 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)
DbConfigFactory
DbConfig
to access a given DataSource
create
in interface DbConfigFactory
name
- 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)
ConfigurableDbConfigFactory
DbConfig
setCustomDataTypes
in interface ConfigurableDbConfigFactory
customDataTypes
- list of custom types. Non nullpublic void setRetryPolicyTemplate(RetryPolicyTemplate retryPolicyTemplate)
ConfigurableDbConfigFactory
DbConfig
setRetryPolicyTemplate
in interface ConfigurableDbConfigFactory
retryPolicyTemplate
- retry policety template. Can be null.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.