Codota Logo
AbstractJdbc2Statement$StatementResultHandler
Code IndexAdd Codota 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)

  • Common ways to obtain AbstractJdbc2Statement$StatementResultHandler
private void myMethod () {
AbstractJdbc2Statement$StatementResultHandler a =
  • Codota Iconnew StatementResultHandler()
  • Smart code suggestions by Codota
}
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: 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);
  }
}
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: 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: 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: 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: 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.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

/**
 * 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.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

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

public void handleCommandStatus(String status, int updateCount, long insertOID) {
  append(new ResultWrapper(updateCount, insertOID));
}
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

public void handleCommandStatus(String status, int updateCount, long insertOID) {
  append(new ResultWrapper(updateCount, insertOID));
}
org.postgresql.jdbc2AbstractJdbc2Statement$StatementResultHandler

Most used methods

  • <init>
  • append
  • getResults
  • handleError

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BoxLayout (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now