public class PrepareResultPacket extends Object implements com.singlestore.jdbc.client.Completion, Prepare
| Modifier and Type | Field and Description |
|---|---|
protected int |
statementId
prepare statement id
|
| Constructor and Description |
|---|
PrepareResultPacket(com.singlestore.jdbc.client.ReadableByteBuf buffer,
Reader reader,
com.singlestore.jdbc.client.Context context)
Prepare packet constructor (parsing)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(com.singlestore.jdbc.client.Client con)
Close prepare packet
|
void |
decrementUse(com.singlestore.jdbc.client.Client con,
ServerPreparedStatement preparedStatement)
Decrement use of prepare packet, so closing it if last used
|
com.singlestore.jdbc.client.ColumnDecoder[] |
getColumns() |
com.singlestore.jdbc.client.ColumnDecoder[] |
getParameters() |
int |
getStatementId()
Get statement id
|
void |
setColumns(com.singlestore.jdbc.client.ColumnDecoder[] columns) |
public PrepareResultPacket(com.singlestore.jdbc.client.ReadableByteBuf buffer,
Reader reader,
com.singlestore.jdbc.client.Context context)
throws IOException
buffer - packet bufferreader - packet readercontext - connection contextIOException - if socket exception occurspublic void close(com.singlestore.jdbc.client.Client con)
throws SQLException
close in interface Preparecon - current connectionSQLException - if exception occurspublic void decrementUse(com.singlestore.jdbc.client.Client con,
ServerPreparedStatement preparedStatement)
throws SQLException
decrementUse in interface Preparecon - connectionpreparedStatement - current prepared statement that was using prepare objectSQLException - if exception occurspublic int getStatementId()
getStatementId in interface Preparepublic com.singlestore.jdbc.client.ColumnDecoder[] getParameters()
getParameters in interface Preparepublic com.singlestore.jdbc.client.ColumnDecoder[] getColumns()
getColumns in interface Preparepublic void setColumns(com.singlestore.jdbc.client.ColumnDecoder[] columns)
setColumns in interface PrepareCopyright © 2025 SingleStore. All rights reserved.