-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved the parsing logic into the get method based on advice from @cretz…
… in #10
- Loading branch information
1 parent
b74be5c
commit 9bf382d
Showing
5 changed files
with
136 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/org/postgresql/sql2/communication/TableCell.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.postgresql.sql2.communication; | ||
|
||
import org.postgresql.sql2.communication.packets.parts.ColumnDescription; | ||
|
||
public class TableCell { | ||
private byte[] bytes; | ||
private int start; | ||
private int stop; | ||
private ColumnDescription columnDescription; | ||
|
||
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.