Codota Logo
ProtocolConnectionImpl.addWarning
Code IndexAdd Codota to your IDE (free)

How to use
addWarning
method
in
org.postgresql.core.v3.ProtocolConnectionImpl

Best Java code snippets using org.postgresql.core.v3.ProtocolConnectionImpl.addWarning (Showing top 12 results out of 315)

  • Common ways to obtain ProtocolConnectionImpl
private void myMethod () {
ProtocolConnectionImpl p =
  • Codota IconPGStream pgStream;String user;String database;Properties info;Logger logger;new ProtocolConnectionImpl(pgStream, user, database, info, logger)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: postgresql/postgresql

protoConnection.addWarning(warning);
break;
origin: postgresql/postgresql

  logger.debug(" <=BE NoticeResponse(" + l_warnMsg + ")");
protoConnection.addWarning(new PSQLWarning(l_warnMsg));
break;
origin: postgresql/postgresql

  logger.debug(" <=BE Notification while copying");
protoConnection.addWarning(receiveNoticeResponse());
break;
origin: org.ancoron.postgresql/org.postgresql

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.ancoron.postgresql/org.postgresql.osgi

protoConnection.addWarning(warning);
break;
origin: org.ancoron.postgresql/org.postgresql

protoConnection.addWarning(warning);
break;
origin: org.ancoron.postgresql/org.postgresql.osgi

  logger.debug(" <=BE Notification while copying");
protoConnection.addWarning(receiveNoticeResponse());
break;
origin: org.ancoron.postgresql/org.postgresql

  logger.debug(" <=BE NoticeResponse(" + l_warnMsg + ")");
protoConnection.addWarning(new PSQLWarning(l_warnMsg));
break;
origin: org.ancoron.postgresql/org.postgresql.osgi

  logger.debug(" <=BE NoticeResponse(" + l_warnMsg + ")");
protoConnection.addWarning(new PSQLWarning(l_warnMsg));
break;
origin: org.ancoron.postgresql/org.postgresql

  logger.debug(" <=BE Notification while copying");
protoConnection.addWarning(receiveNoticeResponse());
break;
org.postgresql.core.v3ProtocolConnectionImpladdWarning

Popular methods of ProtocolConnectionImpl

  • <init>
  • addNotification
  • close
  • getServerVersion
  • getStandardConformingStrings
  • getTransactionState
  • sendQueryCancel
  • setBackendKeyData
  • setServerVersion
  • setStandardConformingStrings
  • setTransactionState
  • setTransactionState

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • String (java.lang)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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