code: public PreparedStatement prepareStatement(final String sql) throws SQLException {
      return internalPrepareStatement(sql,
          ResultSet.TYPE_FORWARD_ONLY,
          ResultSet.CONCUR_READ_ONLY,
          Statement.NO_GENERATED_KEYS);
    }
docs: creates a new prepared statement.
  
  @param sql the query.
  @return a prepared statement.
  @throws SQLException if there is a problem preparing the statement.