|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PGBinaryObject
PGBinaryObject is a inteface that classes extending PGobject
can use to take advantage of
more optimal binary encoding of the data type.
Method Summary | |
---|---|
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. |
void |
setByteValue(byte[] value,
int offset)
This method is called to set the value of this object. |
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. |
Method Detail |
---|
void setByteValue(byte[] value, int offset) throws SQLException
value
- data containing the binary representation of the value of the objectoffset
- the offset in the byte array where object data starts
SQLException
- thrown if value is invalid for this typeint lengthInBytes()
void toBytes(byte[] bytes, int offset)
bytes
- the array to store the value, it is guaranteed to be at lest
lengthInBytes()
in size.offset
- the offset in the byte array where object must be stored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |