public interface Parameter
| Modifier and Type | Method and Description |
|---|---|
String |
bestEffortStringValue(com.singlestore.jdbc.client.Context context)
Methods to return parameter as string if possible (Streaming parameter will return null)
|
boolean |
canEncodeLongData()
Can parameter be encoded in binary long format
|
void |
encodeBinary(Writer encoder)
Encode parameter in binary format
|
byte[] |
encodeData()
transform parameter in byte array
|
void |
encodeLongData(Writer encoder)
Encode parameter in binary long format
|
void |
encodeText(Writer encoder,
com.singlestore.jdbc.client.Context context)
Encode parameter in text format
|
int |
getApproximateTextProtocolLength()
Approximate length in bytes.
|
int |
getBinaryEncodeType()
return binary encoding type
|
boolean |
isNull()
is parameter null
|
void encodeText(Writer encoder, com.singlestore.jdbc.client.Context context) throws IOException, SQLException
encoder - packet writercontext - connection contextIOException - if socket error occursSQLException - if other kind of error occursvoid encodeBinary(Writer encoder) throws IOException, SQLException
encoder - packet writerIOException - if socket error occursSQLException - if other kind of error occursvoid encodeLongData(Writer encoder) throws IOException, SQLException
encoder - packet writerIOException - if socket error occursSQLException - if other kind of error occursbyte[] encodeData()
throws IOException,
SQLException
IOException - if socket error occursSQLException - if other kind of error occursboolean canEncodeLongData()
int getBinaryEncodeType()
int getApproximateTextProtocolLength()
throws IOException,
SQLException
IOExceptionSQLExceptionboolean isNull()
String bestEffortStringValue(com.singlestore.jdbc.client.Context context)
context - current connection contextCopyright © 2025 SingleStore. All rights reserved.