Java SQL PreparedStatement prepareStatement(Connection connection, String line)

Here you can find the source of prepareStatement(Connection connection, String line)

Description

prepare Statement

License

Open Source License

Declaration

public static PreparedStatement prepareStatement(Connection connection, String line) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.Connection;

import java.sql.PreparedStatement;

import java.sql.SQLException;

public class Main {
    public static PreparedStatement prepareStatement(Connection connection, String line) {
        try {//from  ww w  .j ava  2 s  .com
            return connection.prepareStatement(line);
        } catch (SQLException e) {
            return null;
        }
    }
}

Related

  1. prepareStatement(Connection conn, Map psMap, String key, String sql)
  2. prepareStatement(Connection conn, String name, String sql)
  3. prepareStatement(Connection conn, String sql)
  4. prepareStatement(Connection conn, String sql, boolean isCallable)
  5. prepareStatement(Connection conn, String sql, Object... values)
  6. prepareStatement(Connection connection, String sql, boolean returnKeys, Object... values)
  7. prepareStatement(Connection connection, String sql, Object... values)
  8. prepareStatement(String parameterizedSQL, List values, Connection conn)
  9. prepareStatement(String parameterizedSQL, List values, Connection conn)

    HOME | Copyright © www.java2s.com 2016