Package org.jruby.pg.internal.messages

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


      List<DataRow> rows = jdbcResultSet.getRows();
      if (row >= rows.size()) {
        throw context.runtime.newIndexError("row " + row + " is out of range");
      }
      DataRow dataRow = rows.get(row);
      ByteBuffer[] columns = dataRow.getValues();
      if (column >= columns.length) {
        throw context.runtime.newIndexError("column " + column + " is out of range");
      }
      return valueAsString(context, row, column);
    }
View Full Code Here


      // fetch the row description
      RowDescription description = (RowDescription) message;
      inProgress.setDescription(description);
      break;
    case DataRow:
      DataRow dataRow = (DataRow) message;
      inProgress.appendRow(dataRow);
      break;
    case ErrorResponse:
      if (inProgress == null)
        inProgress = new ResultSet();
View Full Code Here

TOP

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

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.