提交 60b77e93 编写于 作者: J jurgen

Get rid of jdbc in cassandra

上级 7df53159
......@@ -37,19 +37,16 @@ import java.util.Properties;
/**
* JDBCDataSourceProvider
*/
public abstract class JDBCDataSourceProvider implements DBPDataSourceProvider
{
public abstract class JDBCDataSourceProvider implements DBPDataSourceProvider {
static final protected Log log = LogFactory.getLog(JDBCDataSourceProvider.class);
@Override
public void close()
{
public void close() {
}
@Override
public void init(DBPApplication application)
{
public void init(DBPApplication application) {
}
......@@ -58,8 +55,7 @@ public abstract class JDBCDataSourceProvider implements DBPDataSourceProvider
IRunnableContext runnableContext,
DBPDriver driver,
DBPConnectionInfo connectionInfo)
throws DBException
{
throws DBException {
Collection<IPropertyDescriptor> props = null;
Object driverInstance = driver.getDriverInstance(runnableContext);
if (driverInstance instanceof Driver) {
......@@ -74,8 +70,7 @@ public abstract class JDBCDataSourceProvider implements DBPDataSourceProvider
private Collection<IPropertyDescriptor> readDriverProperties(
DBPConnectionInfo connectionInfo,
Driver driver)
throws DBException
{
throws DBException {
Properties driverProps = new Properties();
//driverProps.putAll(connectionInfo.getProperties());
DriverPropertyInfo[] propDescs;
......@@ -110,8 +105,7 @@ public abstract class JDBCDataSourceProvider implements DBPDataSourceProvider
return properties;
}
protected String getConnectionPropertyDefaultValue(String name, String value)
{
protected String getConnectionPropertyDefaultValue(String name, String value) {
return value;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册