|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mariadb.jdbc.internal.util.dao.ServerPrepareResult
public class ServerPrepareResult
| Constructor Summary | |
|---|---|
ServerPrepareResult(String sql,
int statementId,
ColumnInformation[] columns,
ColumnInformation[] parameters,
Protocol unProxiedProtocol)
PrepareStatement Result object. |
|
| Method Summary | |
|---|---|
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. |
void |
fetchAllOpenCursor()
if a new query will be done using this statementId and there is an open cursor, then fetch all results in resultSet (Cursor will be closed after executing a query). |
ColumnInformation[] |
getColumns()
|
int |
getParamCount()
|
ColumnInformation[] |
getParameters()
|
ColumnType[] |
getParameterTypeHeader()
|
int |
getShareCounter()
|
String |
getSql()
|
int |
getStatementId()
|
Protocol |
getUnProxiedProtocol()
|
boolean |
incrementShareCounter()
Increment share counter. |
void |
openCursor(Results result)
|
void |
resetParameterTypeHeader()
|
void |
setAddToCache()
|
void |
setRemoveFromCache()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 done| Method Detail |
|---|
public 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()
public void openCursor(Results result)
public void fetchAllOpenCursor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||