PGobject can use to take advantage
of more optimal binary encoding of the data type.
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of bytes needed to store this objectThis method is called to return the number of bytes needed to store this object in the binary form required by org.postgresql. |
| public void | setByteValue(byte[]
data containing the binary representation of the value of the object value, int the offset in the byte array where object data starts offset)This method is called to set the value of this object. |
| public void | toBytes(byte[]
the array to store the value, it is guaranteed to be at lest
bytes, int lengthInBytes in size.the offset in the byte array where object must be stored offset)This method is called the to store the value of the object, in the binary form required by org.postgresql. |
| lengthInBytes | back to summary |
|---|---|
| public int lengthInBytes() This method is called to return the number of bytes needed to store this object in the binary form required by org.postgresql.
| |
| setByteValue | back to summary |
|---|---|
| public void setByteValue(byte[] value, int offset) throws SQLException This method is called to set the value of this object.
| |
| toBytes | back to summary |
|---|---|
| public void toBytes(byte[] bytes, int offset) This method is called the to store the value of the object, in the binary form required by org.postgresql.
| |