Package org.jruby.pg.internal.messages

Examples of org.jruby.pg.internal.messages.ProtocolMessage


      inProgress = null;
    }
  }

  private void processDescribeResponse() {
    ProtocolMessage message = currentInMessage.getMessage();
    if (inProgress == null)
      inProgress = new ResultSet();
    switch (message.getType()) {
    case ErrorResponse:
      inProgress.setErrorResponse((ErrorResponse) message);
      break;
    case RowDescription:
      inProgress.setDescription((RowDescription) message);
View Full Code Here


      break;
    }
  }

  private void processParseResponse() {
    ProtocolMessage message = currentInMessage.getMessage();
    if (inProgress == null)
      inProgress = new ResultSet();
    switch (message.getType()) {
    case ErrorResponse:
      inProgress.setErrorResponse((ErrorResponse) message);
      break;
    }
  }
View Full Code Here

  private void processBindResponse() {
    processParseResponse(); // same logic
  }

  private void processQueryResponse() {
    ProtocolMessage message = currentInMessage.getMessage();

    switch (message.getType()) {
    case CopyInResponse:
      if (inProgress == null)
        inProgress = new ResultSet();
      inProgress.setStatus(ResultStatus.PGRES_COPY_IN);
      lastResultSet.add(inProgress);
View Full Code Here

      break;
    }
  }

  private void processParameterStatusAndBackend() {
    ProtocolMessage message = currentInMessage.getMessage();
    switch (message.getType()) {
    case ParameterStatus:
      ParameterStatus parameterStatus = (ParameterStatus) message;
      parameterValues.put(parameterStatus.getName(), parameterStatus.getValue());
      break;
    case BackendKeyData:
View Full Code Here

TOP

Related Classes of org.jruby.pg.internal.messages.ProtocolMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.