本文整理汇总了Java中com.facebook.presto.plugin.jdbc.BaseJdbcConfig类的典型用法代码示例。如果您正苦于以下问题:Java BaseJdbcConfig类的具体用法?Java BaseJdbcConfig怎么用?Java BaseJdbcConfig使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseJdbcConfig类属于com.facebook.presto.plugin.jdbc包,在下文中一共展示了BaseJdbcConfig类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //导入依赖的package包/类
@Override
public void configure(Binder binder)
{
binder.bind(JdbcClient.class).to(MySqlClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
configBinder(binder).bindConfig(MySqlConfig.class);
}
示例2: MySqlClient
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //导入依赖的package包/类
@Inject
public MySqlClient(JdbcConnectorId connectorId, BaseJdbcConfig config, MySqlConfig mySqlConfig)
throws SQLException
{
super(connectorId, config, "`", new Driver());
connectionProperties.setProperty("nullCatalogMeansCurrent", "false");
if (mySqlConfig.isAutoReconnect()) {
connectionProperties.setProperty("autoReconnect", String.valueOf(mySqlConfig.isAutoReconnect()));
connectionProperties.setProperty("maxReconnects", String.valueOf(mySqlConfig.getMaxReconnects()));
}
if (mySqlConfig.getConnectionTimeout() != null) {
connectionProperties.setProperty("connectTimeout", String.valueOf(mySqlConfig.getConnectionTimeout().toMillis()));
}
}
示例3: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //导入依赖的package包/类
public void configure(Binder binder) {
binder.bind(JdbcClient.class).to(TemplateClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
configBinder(binder).bindConfig(TemplateConfig.class);
}
示例4: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //导入依赖的package包/类
public void configure(Binder binder) {
binder.bind(JdbcClient.class).to(TeradataClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
configBinder(binder).bindConfig(TeradataConfig.class);
}
示例5: configure
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //导入依赖的package包/类
@Override
public void configure(Binder binder)
{
binder.bind(JdbcClient.class).to(PostgreSqlClient.class).in(Scopes.SINGLETON);
configBinder(binder).bindConfig(BaseJdbcConfig.class);
}
示例6: PostgreSqlClient
import com.facebook.presto.plugin.jdbc.BaseJdbcConfig; //导入依赖的package包/类
@Inject
public PostgreSqlClient(JdbcConnectorId connectorId, BaseJdbcConfig config)
throws SQLException
{
super(connectorId, config, "\"", new Driver());
}