Java SQL Query executeRetrievalByIDQuery(PreparedStatement theStatement, int theID)

Here you can find the source of executeRetrievalByIDQuery(PreparedStatement theStatement, int theID)

Description

execute Retrieval By ID Query

License

Open Source License

Declaration

protected static ResultSet executeRetrievalByIDQuery(PreparedStatement theStatement, int theID)
            throws SQLException 

Method Source Code

//package com.java2s;
/**//from  w ww .j  ava  2s. c  o  m
 * ClarescoExperienceAPI
 * Copyright 
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * Please contact Claresco, www.claresco.com, if you have any questions.
 **/

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    protected static ResultSet executeRetrievalByIDQuery(PreparedStatement theStatement, int theID)
            throws SQLException {
        theStatement.setInt(1, theID);
        return theStatement.executeQuery();
    }
}

Related

  1. ExecuteQuery(String command)
  2. executeQuery(String query)
  3. executeQuery(String sql, Connection conn, List param)
  4. executeQuery(String sql, String[] parameters)
  5. executeQuery2(java.sql.Connection con, String select, Object... pk)
  6. executeSafeQuery( Connection conn, String sql)
  7. executeStatement(Connection connection, String query)
  8. getSqlQuery(Statement statement, Object[] args)
  9. getStatement(Connection con, String query, Object... bits)

  10. HOME | Copyright © www.java2s.com 2016