Codota Logo
AbstractJdbc2Statement$StatementResultHandler.<init>
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler.<init> (Showing top 9 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: 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

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

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

  flags |= QueryExecutor.QUERY_SUPPRESS_BEGIN;
StatementResultHandler handler = new StatementResultHandler();
result = null;
connection.getQueryExecutor().execute(queryToExecute,
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

/**
 * 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,
origin: org.ancoron.postgresql/org.postgresql.osgi

  flags |= QueryExecutor.QUERY_SUPPRESS_BEGIN;
StatementResultHandler handler = new StatementResultHandler();
result = null;
connection.getQueryExecutor().execute(queryToExecute,
org.postgresql.jdbc2AbstractJdbc2Statement$StatementResultHandler<init>

Popular methods of AbstractJdbc2Statement$StatementResultHandler

  • append
  • getResults
  • handleError

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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