Tabnine Logo
AbstractJdbc2Statement$StatementResultHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractJdbc2Statement$StatementResultHandler
in
org.postgresql.jdbc2

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler (Showing top 15 results out of 315)

origin: postgresql/postgresql

public ResultSetMetaData getMetaData() throws SQLException
{
  checkClosed();
  ResultSet rs = getResultSet();
  if (rs == null) {
    // OK, we haven't executed it yet, we've got to go to the backend
    // for more info.  We send the full query, but just don't
    // execute it.
    int flags = QueryExecutor.QUERY_ONESHOT | QueryExecutor.QUERY_DESCRIBE_ONLY | QueryExecutor.QUERY_SUPPRESS_BEGIN;
    StatementResultHandler handler = new StatementResultHandler();
    connection.getQueryExecutor().execute(preparedQuery, preparedParameters, handler, 0, 0, flags);
    ResultWrapper wrapper = handler.getResults();
    if (wrapper != null) {
      rs = wrapper.getResultSet();
    }
  }
  if (rs != null)
    return rs.getMetaData();
  return null;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

  flags |= QueryExecutor.QUERY_SUPPRESS_BEGIN;
StatementResultHandler handler = new StatementResultHandler();
result = null;
connection.getQueryExecutor().execute(queryToExecute,
                   fetchSize,
                   flags);
result = firstUnclosedResult = handler.getResults();
origin: org.ancoron.postgresql/org.postgresql

  flags |= QueryExecutor.QUERY_SUPPRESS_BEGIN;
StatementResultHandler handler = new StatementResultHandler();
result = null;
connection.getQueryExecutor().execute(queryToExecute,
                   fetchSize,
                   flags);
result = firstUnclosedResult = handler.getResults();
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Retrieves the number, types and properties of this
 * <code>PreparedStatement</code> object's parameters.
 *
 * @return a <code>ParameterMetaData</code> object that contains information
 *     about the number, types and properties of this
 *     <code>PreparedStatement</code> object's parameters
 * @exception SQLException if a database access error occurs
 * @see ParameterMetaData
 * @since 1.4
 */
public ParameterMetaData getParameterMetaData() throws SQLException
{
  int flags = QueryExecutor.QUERY_ONESHOT | QueryExecutor.QUERY_DESCRIBE_ONLY | QueryExecutor.QUERY_SUPPRESS_BEGIN;
  StatementResultHandler handler = new StatementResultHandler();
  connection.getQueryExecutor().execute(preparedQuery, preparedParameters, handler, 0, 0, flags);
  int oids[] = preparedParameters.getTypeOIDs();
  if (oids != null)
    return createParameterMetaData(connection, oids);
  return null;
}
origin: org.ancoron.postgresql/org.postgresql

public ResultSetMetaData getMetaData() throws SQLException
{
  checkClosed();
  ResultSet rs = getResultSet();
  if (rs == null) {
    // OK, we haven't executed it yet, we've got to go to the backend
    // for more info.  We send the full query, but just don't
    // execute it.
    int flags = QueryExecutor.QUERY_ONESHOT | QueryExecutor.QUERY_DESCRIBE_ONLY | QueryExecutor.QUERY_SUPPRESS_BEGIN;
    StatementResultHandler handler = new StatementResultHandler();
    connection.getQueryExecutor().execute(preparedQuery, preparedParameters, handler, 0, 0, flags);
    ResultWrapper wrapper = handler.getResults();
    if (wrapper != null) {
      rs = wrapper.getResultSet();
    }
  }
  if (rs != null)
    return rs.getMetaData();
  return null;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Retrieves the number, types and properties of this
 * <code>PreparedStatement</code> object's parameters.
 *
 * @return a <code>ParameterMetaData</code> object that contains information
 *     about the number, types and properties of this
 *     <code>PreparedStatement</code> object's parameters
 * @exception SQLException if a database access error occurs
 * @see ParameterMetaData
 * @since 1.4
 */
public ParameterMetaData getParameterMetaData() throws SQLException
{
  int flags = QueryExecutor.QUERY_ONESHOT | QueryExecutor.QUERY_DESCRIBE_ONLY | QueryExecutor.QUERY_SUPPRESS_BEGIN;
  StatementResultHandler handler = new StatementResultHandler();
  connection.getQueryExecutor().execute(preparedQuery, preparedParameters, handler, 0, 0, flags);
  int oids[] = preparedParameters.getTypeOIDs();
  if (oids != null)
    return createParameterMetaData(connection, oids);
  return null;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public ResultSetMetaData getMetaData() throws SQLException
{
  checkClosed();
  ResultSet rs = getResultSet();
  if (rs == null) {
    // OK, we haven't executed it yet, we've got to go to the backend
    // for more info.  We send the full query, but just don't
    // execute it.
    int flags = QueryExecutor.QUERY_ONESHOT | QueryExecutor.QUERY_DESCRIBE_ONLY | QueryExecutor.QUERY_SUPPRESS_BEGIN;
    StatementResultHandler handler = new StatementResultHandler();
    connection.getQueryExecutor().execute(preparedQuery, preparedParameters, handler, 0, 0, flags);
    ResultWrapper wrapper = handler.getResults();
    if (wrapper != null) {
      rs = wrapper.getResultSet();
    }
  }
  if (rs != null)
    return rs.getMetaData();
  return null;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void handleCommandStatus(String status, int updateCount, long insertOID) {
  append(new ResultWrapper(updateCount, insertOID));
}
origin: org.ancoron.postgresql/org.postgresql

public void handleCommandStatus(String status, int updateCount, long insertOID) {
  append(new ResultWrapper(updateCount, insertOID));
}
origin: org.ancoron.postgresql/org.postgresql

public void handleResultRows(Query fromQuery, Field[] fields, Vector tuples, ResultCursor cursor) {
  try
  {
    ResultSet rs = AbstractJdbc2Statement.this.createResultSet(fromQuery, fields, tuples, cursor);
    append(new ResultWrapper(rs));
  }
  catch (SQLException e)
  {
    handleError(e);
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void handleResultRows(Query fromQuery, Field[] fields, Vector tuples, ResultCursor cursor) {
  try
  {
    ResultSet rs = AbstractJdbc2Statement.this.createResultSet(fromQuery, fields, tuples, cursor);
    append(new ResultWrapper(rs));
  }
  catch (SQLException e)
  {
    handleError(e);
  }
}
origin: postgresql/postgresql

  flags |= QueryExecutor.QUERY_SUPPRESS_BEGIN;
StatementResultHandler handler = new StatementResultHandler();
result = null;
connection.getQueryExecutor().execute(queryToExecute,
                   fetchSize,
                   flags);
result = firstUnclosedResult = handler.getResults();
origin: postgresql/postgresql

/**
 * Retrieves the number, types and properties of this
 * <code>PreparedStatement</code> object's parameters.
 *
 * @return a <code>ParameterMetaData</code> object that contains information
 *     about the number, types and properties of this
 *     <code>PreparedStatement</code> object's parameters
 * @exception SQLException if a database access error occurs
 * @see ParameterMetaData
 * @since 1.4
 */
public ParameterMetaData getParameterMetaData() throws SQLException
{
  int flags = QueryExecutor.QUERY_ONESHOT | QueryExecutor.QUERY_DESCRIBE_ONLY | QueryExecutor.QUERY_SUPPRESS_BEGIN;
  StatementResultHandler handler = new StatementResultHandler();
  connection.getQueryExecutor().execute(preparedQuery, preparedParameters, handler, 0, 0, flags);
  int oids[] = preparedParameters.getTypeOIDs();
  if (oids != null)
    return createParameterMetaData(connection, oids);
  return null;
}
origin: postgresql/postgresql

public void handleCommandStatus(String status, int updateCount, long insertOID) {
  append(new ResultWrapper(updateCount, insertOID));
}
origin: postgresql/postgresql

public void handleResultRows(Query fromQuery, Field[] fields, Vector tuples, ResultCursor cursor) {
  try
  {
    ResultSet rs = AbstractJdbc2Statement.this.createResultSet(fromQuery, fields, tuples, cursor);
    append(new ResultWrapper(rs));
  }
  catch (SQLException e)
  {
    handleError(e);
  }
}
org.postgresql.jdbc2AbstractJdbc2Statement$StatementResultHandler

Most used methods

  • <init>
  • append
  • getResults
  • handleError

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now