public class PrepareResultPacket extends Object implements com.singlestore.jdbc.client.Completion, Prepare
| Modifier and Type | Field and Description |
|---|---|
protected int |
statementId |
| Constructor and Description |
|---|
PrepareResultPacket(com.singlestore.jdbc.client.ReadableByteBuf buffer,
Reader reader,
com.singlestore.jdbc.client.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(com.singlestore.jdbc.client.Client con)
Close Prepared command
|
void |
decrementUse(com.singlestore.jdbc.client.Client con,
ServerPreparedStatement preparedStatement)
Decrement use of prepare.
|
com.singlestore.jdbc.client.Column[] |
getColumns() |
com.singlestore.jdbc.client.Column[] |
getParameters() |
int |
getStatementId()
Get current prepare statement id
|
void |
setColumns(com.singlestore.jdbc.client.Column[] columns) |
public PrepareResultPacket(com.singlestore.jdbc.client.ReadableByteBuf buffer,
Reader reader,
com.singlestore.jdbc.client.Context context)
throws IOException
IOExceptionpublic void close(com.singlestore.jdbc.client.Client con)
throws SQLException
Prepareclose in interface Preparecon - current connectionSQLException - if prepare close failspublic void decrementUse(com.singlestore.jdbc.client.Client con,
ServerPreparedStatement preparedStatement)
throws SQLException
PreparedecrementUse in interface Preparecon - connectionpreparedStatement - current prepared statement that was using prepare objectSQLException - if close failspublic int getStatementId()
PreparegetStatementId in interface Preparepublic com.singlestore.jdbc.client.Column[] getParameters()
getParameters in interface Preparepublic com.singlestore.jdbc.client.Column[] getColumns()
getColumns in interface Preparepublic void setColumns(com.singlestore.jdbc.client.Column[] columns)
setColumns in interface PrepareCopyright © 2023 SingleStore. All rights reserved.