public class ServerPrepareResult extends Object implements PrepareResult
| Constructor and Description |
|---|
ServerPrepareResult(String sql,
int statementId,
ColumnInformation[] columns,
ColumnInformation[] parameters,
Protocol unProxiedProtocol)
PrepareStatement Result object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeDeallocate()
Asked if can be deallocate (is not shared in other statement and not in cache) Set deallocate
flag to true if so.
|
void |
decrementShareCounter() |
void |
failover(int statementId,
Protocol unProxiedProtocol)
Update information after a failover.
|
ColumnInformation[] |
getColumns() |
int |
getParamCount() |
ColumnInformation[] |
getParameters() |
ColumnType[] |
getParameterTypeHeader() |
int |
getShareCounter() |
String |
getSql() |
int |
getStatementId() |
Protocol |
getUnProxiedProtocol() |
boolean |
incrementShareCounter()
Increment share counter.
|
void |
resetParameterTypeHeader() |
void |
setAddToCache() |
void |
setRemoveFromCache() |
public ServerPrepareResult(String sql, int statementId, ColumnInformation[] columns, ColumnInformation[] parameters, Protocol unProxiedProtocol)
sql - querystatementId - server statement Id.columns - columns informationparameters - parameters informationunProxiedProtocol - indicate the protocol on which the prepare has been donepublic void resetParameterTypeHeader()
public void failover(int statementId,
Protocol unProxiedProtocol)
statementId - new statement IdunProxiedProtocol - the protocol on which the prepare has been donepublic void setAddToCache()
public void setRemoveFromCache()
public boolean incrementShareCounter()
public void decrementShareCounter()
public boolean canBeDeallocate()
public int getParamCount()
getParamCount in interface PrepareResultpublic int getShareCounter()
public int getStatementId()
public ColumnInformation[] getColumns()
public ColumnInformation[] getParameters()
public Protocol getUnProxiedProtocol()
public String getSql()
getSql in interface PrepareResultpublic ColumnType[] getParameterTypeHeader()
Copyright © 2019 mariadb.org. All rights reserved.