Java JDBC Connection Create getStatement(Map config)

Here you can find the source of getStatement(Map config)

Description

get Statement

License

Apache License

Declaration

private static Statement getStatement(Map<String, String> config)
            throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.*;

import java.util.Map;

public class Main {
    private static Statement getStatement(Map<String, String> config)
            throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
        Class.forName(config.get("driver")).newInstance();
        Connection connection = DriverManager.getConnection(config.get("url"), config.get("user"),
                config.get("password"));
        return connection.createStatement();
    }//from   www  . j  a v a  2s.co m
}

Related

  1. getDBConnection()
  2. getJdbcOdbcConnection()
  3. getNewConnection()
  4. getPhoenixConnection()
  5. getSourceConnection(final Hashtable env)
  6. getTargetConnection()
  7. getTestDBConnection()
  8. getTRECConnection()
  9. getUrlConnection()