Codota Logo
BaseStatement.getMoreResults
Code IndexAdd Codota to your IDE (free)

How to use
getMoreResults
method
in
org.postgresql.core.BaseStatement

Best Java code snippets using org.postgresql.core.BaseStatement.getMoreResults (Showing top 4 results out of 315)

  • Common ways to obtain BaseStatement
private void myMethod () {
BaseStatement b =
  • Codota IconBaseConnection baseConnection;(BaseStatement) baseConnection.createStatement(int1, int2)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

/**
 * Simple query execution.
 */
public ResultSet execSQLQuery(String s, int resultSetType, int resultSetConcurrency) throws SQLException {
  BaseStatement stat = (BaseStatement) createStatement(resultSetType, resultSetConcurrency);
  boolean hasResultSet = stat.executeWithFlags(s, QueryExecutor.QUERY_SUPPRESS_BEGIN);
  while (!hasResultSet && stat.getUpdateCount() != -1)
    hasResultSet = stat.getMoreResults();
  if (!hasResultSet)
    throw new PSQLException(GT.tr("No results were returned by the query."), PSQLState.NO_DATA);
  // Transfer warnings to the connection, since the user never
  // has a chance to see the statement itself.
  SQLWarning warnings = stat.getWarnings();
  if (warnings != null)
    addWarning(warnings);
  return stat.getResultSet();
}
origin: org.postgresql/postgresql

@Override
public ResultSet execSQLQuery(String s, int resultSetType, int resultSetConcurrency)
  throws SQLException {
 BaseStatement stat = (BaseStatement) createStatement(resultSetType, resultSetConcurrency);
 boolean hasResultSet = stat.executeWithFlags(s, QueryExecutor.QUERY_SUPPRESS_BEGIN);
 while (!hasResultSet && stat.getUpdateCount() != -1) {
  hasResultSet = stat.getMoreResults();
 }
 if (!hasResultSet) {
  throw new PSQLException(GT.tr("No results were returned by the query."), PSQLState.NO_DATA);
 }
 // Transfer warnings to the connection, since the user never
 // has a chance to see the statement itself.
 SQLWarning warnings = stat.getWarnings();
 if (warnings != null) {
  addWarning(warnings);
 }
 return stat.getResultSet();
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Simple query execution.
 */
public ResultSet execSQLQuery(String s, int resultSetType, int resultSetConcurrency) throws SQLException {
  BaseStatement stat = (BaseStatement) createStatement(resultSetType, resultSetConcurrency);
  boolean hasResultSet = stat.executeWithFlags(s, QueryExecutor.QUERY_SUPPRESS_BEGIN);
  while (!hasResultSet && stat.getUpdateCount() != -1)
    hasResultSet = stat.getMoreResults();
  if (!hasResultSet)
    throw new PSQLException(GT.tr("No results were returned by the query."), PSQLState.NO_DATA);
  // Transfer warnings to the connection, since the user never
  // has a chance to see the statement itself.
  SQLWarning warnings = stat.getWarnings();
  if (warnings != null)
    addWarning(warnings);
  return stat.getResultSet();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Simple query execution.
 */
public ResultSet execSQLQuery(String s, int resultSetType, int resultSetConcurrency) throws SQLException {
  BaseStatement stat = (BaseStatement) createStatement(resultSetType, resultSetConcurrency);
  boolean hasResultSet = stat.executeWithFlags(s, QueryExecutor.QUERY_SUPPRESS_BEGIN);
  while (!hasResultSet && stat.getUpdateCount() != -1)
    hasResultSet = stat.getMoreResults();
  if (!hasResultSet)
    throw new PSQLException(GT.tr("No results were returned by the query."), PSQLState.NO_DATA);
  // Transfer warnings to the connection, since the user never
  // has a chance to see the statement itself.
  SQLWarning warnings = stat.getWarnings();
  if (warnings != null)
    addWarning(warnings);
  return stat.getResultSet();
}
org.postgresql.coreBaseStatementgetMoreResults

Popular methods of BaseStatement

  • close
  • createDriverResultSet
    Create a synthetic resultset from data provided by the driver.
  • executeWithFlags
    Execute a query, passing additional query flags.
  • getConnection
  • getResultSet
  • getUpdateCount
  • getWarnings

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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