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

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

Best Java code snippets using org.postgresql.core.BaseStatement.getResultSet (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.coreBaseStatementgetResultSet

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
  • getMoreResults
  • getUpdateCount
  • getWarnings

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • 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.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JPanel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
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