public class GenericDbConfig extends AbstractAnnotatedObject implements DbConfig
PROPERTY_NAME
Constructor and Description |
---|
GenericDbConfig(DataSource dataSource,
String name,
DbTypeManager dbTypeManager,
DbConnectionFactory dbConnectionFactory) |
Modifier and Type | Method and Description |
---|---|
DbConnectionFactory |
getConnectionFactory() |
DataSource |
getDataSource() |
DbTypeManager |
getDbTypeManager() |
org.mule.common.Result<org.mule.common.metadata.MetaData> |
getMetaData(org.mule.common.metadata.MetaDataKey metaDataKey) |
org.mule.common.Result<List<org.mule.common.metadata.MetaDataKey>> |
getMetaDataKeys() |
String |
getName()
Gets the name of the object
|
org.mule.common.TestResult |
test() |
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, setAnnotations
public GenericDbConfig(DataSource dataSource, String name, DbTypeManager dbTypeManager, DbConnectionFactory dbConnectionFactory)
public String getName()
NamedObject
getName
in interface NamedObject
public DataSource getDataSource()
getDataSource
in interface DbConfig
DataSource
to access the databasepublic DbConnectionFactory getConnectionFactory()
getConnectionFactory
in interface DbConfig
DbConnectionFactory
used to create connections for the databasepublic DbTypeManager getDbTypeManager()
public org.mule.common.TestResult test()
test
in interface org.mule.common.Testable
public org.mule.common.Result<List<org.mule.common.metadata.MetaDataKey>> getMetaDataKeys()
getMetaDataKeys
in interface org.mule.common.metadata.ConnectorMetaDataEnabled
public org.mule.common.Result<org.mule.common.metadata.MetaData> getMetaData(org.mule.common.metadata.MetaDataKey metaDataKey)
getMetaData
in interface org.mule.common.metadata.ConnectorMetaDataEnabled
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.