All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.postgresql.adba.communication.TableCell Maven / Gradle / Ivy

The newest version!
package org.postgresql.adba.communication;

import org.postgresql.adba.communication.packets.parts.ColumnDescription;

public class TableCell {
  private byte[] bytes;
  private int start;
  private int stop;
  private ColumnDescription columnDescription;

  /**
   * one cell in the returned result set.
   * @param bytes the payload
   * @param start where in the payload the information starts
   * @param stop where in the payload the information stops
   * @param columnDescription description of the data type for this cell
   */
  public TableCell(byte[] bytes, int start, int stop, ColumnDescription columnDescription) {
    this.bytes = bytes;
    this.start = start;
    this.stop = stop;
    this.columnDescription = columnDescription;
  }

  public byte[] getBytes() {
    return bytes;
  }

  public int getStart() {
    return start;
  }

  public int getStop() {
    return stop;
  }

  public ColumnDescription getColumnDescription() {
    return columnDescription;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy